|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sling.jackrabbit.usermanager.impl.AuthorizablePrivilegesInfoImpl
public class AuthorizablePrivilegesInfoImpl
Helper class to assist in the usage of access control of users/groups from scripts. The default access control policy defined by this provider has the following characteristics:
Constructor Summary | |
---|---|
AuthorizablePrivilegesInfoImpl()
|
Method Summary | |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext componentContext)
Called by SCR to activate the component. |
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. |
protected void |
deactivate(org.osgi.service.component.ComponentContext componentContext)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AuthorizablePrivilegesInfoImpl()
Method Detail |
---|
public boolean canAddGroup(javax.jcr.Session jcrSession)
AuthorizablePrivilegesInfo
canAddGroup
in interface AuthorizablePrivilegesInfo
jcrSession
- the JCR session of the current user
public boolean canAddUser(javax.jcr.Session jcrSession)
AuthorizablePrivilegesInfo
canAddUser
in interface AuthorizablePrivilegesInfo
jcrSession
- the JCR session of the current user
public boolean canRemove(javax.jcr.Session jcrSession, String principalId)
AuthorizablePrivilegesInfo
canRemove
in interface AuthorizablePrivilegesInfo
jcrSession
- the JCR session of the current userprincipalId
- the user or group id to check
public boolean canUpdateGroupMembers(javax.jcr.Session jcrSession, String groupId)
AuthorizablePrivilegesInfo
canUpdateGroupMembers
in interface AuthorizablePrivilegesInfo
jcrSession
- the JCR session of the current usergroupId
- the group id to check
public boolean canUpdateProperties(javax.jcr.Session jcrSession, String principalId)
AuthorizablePrivilegesInfo
canUpdateProperties
in interface AuthorizablePrivilegesInfo
jcrSession
- the JCR session of the current userprincipalId
- the user or group id to check
protected void activate(org.osgi.service.component.ComponentContext componentContext) throws InvalidKeyException, NoSuchAlgorithmException, IllegalStateException, UnsupportedEncodingException
InvalidKeyException
NoSuchAlgorithmException
IllegalStateException
UnsupportedEncodingException
protected void deactivate(org.osgi.service.component.ComponentContext componentContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |