canAccess() should be called during init() when logging into the repository. At this time a new access manager is created the access manager checks if access is allowed.
-- Toby On 3/31/08, Sushil Vegad <[EMAIL PROTECTED]> wrote: > > Hello, > We want to implement a custom access manager to check user permissions when > a user accesses the repository through Webdav. We wrote a class > MyAccessManager that implements > org.apache.jackrabbit.core.security.AccessManager and declared it in the > repository.xml > > What I see is only three callback methods are getting called: init(AMContext > context), isGranted(ItemId id, int permissions) and close(). Also, init is > getting called twice (and sometimes even more) and isGranted is called > multiple times every time init is called. > > checkPermission(ItemId id, int permissions) and canAccess(String > workspaceName) are not called at all. We were hoping to use canAccess to > check if the user has permission for the repository? > > Am I missing something here? How can I authorize the user? > > Thanks a lot, > Sushil > > > > -- > View this message in context: > http://www.nabble.com/Webdav-AccessManager%2C-canAccess%28String-workspaceName%29-tp16399087p16399087.html > Sent from the Jackrabbit - Users mailing list archive at Nabble.com. > >
