org.apache.sling.jackrabbit.usermanager
Interface AuthorizablePrivilegesInfo


public interface AuthorizablePrivilegesInfo


Method Summary
 boolean canAddGroup(javax.jcr.Session jcrSession)
          Checks whether the current user has been granted privileges to add a new group.
 boolean canAddUser(javax.jcr.Session jcrSession)
          Checks whether the current user has been granted privileges to add a new user.
 boolean canRemove(javax.jcr.Session jcrSession, String principalId)
          Checks whether the current user has been granted privileges to remove the specified user or group.
 boolean canUpdateGroupMembers(javax.jcr.Session jcrSession, String groupId)
          Checks whether the current user has been granted privileges to update the membership of the specified group.
 boolean canUpdateProperties(javax.jcr.Session jcrSession, String principalId)
          Checks whether the current user has been granted privileges to update the properties of the specified user or group.
 

Method Detail

canAddUser

boolean canAddUser(javax.jcr.Session jcrSession)
Checks whether the current user has been granted privileges to add a new user.

Parameters:
jcrSession - the JCR session of the current user
Returns:
true if the current user has the privileges, false otherwise

canAddGroup

boolean canAddGroup(javax.jcr.Session jcrSession)
Checks whether the current user has been granted privileges to add a new group.

Parameters:
jcrSession - the JCR session of the current user
Returns:
true if the current user has the privileges, false otherwise

canUpdateProperties

boolean canUpdateProperties(javax.jcr.Session jcrSession,
                            String principalId)
Checks whether the current user has been granted privileges to update the properties of the specified user or group.

Parameters:
jcrSession - the JCR session of the current user
principalId - the user or group id to check
Returns:
true if the current user has the privileges, false otherwise

canRemove

boolean canRemove(javax.jcr.Session jcrSession,
                  String principalId)
Checks whether the current user has been granted privileges to remove the specified user or group.

Parameters:
jcrSession - the JCR session of the current user
principalId - the user or group id to check
Returns:
true if the current user has the privileges, false otherwise

canUpdateGroupMembers

boolean canUpdateGroupMembers(javax.jcr.Session jcrSession,
                              String groupId)
Checks whether the current user has been granted privileges to update the membership of the specified group.

Parameters:
jcrSession - the JCR session of the current user
groupId - the group id to check
Returns:
true if the current user has the privileges, false otherwise


Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.