public class AuthorizablePrivilegesInfoImpl extends Object implements AuthorizablePrivilegesInfo
Constructor and Description |
---|
AuthorizablePrivilegesInfoImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.framework.BundleContext bundleContext,
Map<String,Object> properties) |
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.
|
public boolean canAddGroup(javax.jcr.Session jcrSession)
AuthorizablePrivilegesInfo
canAddGroup
in interface AuthorizablePrivilegesInfo
jcrSession
- the JCR session of the current userpublic boolean canAddUser(javax.jcr.Session jcrSession)
AuthorizablePrivilegesInfo
canAddUser
in interface AuthorizablePrivilegesInfo
jcrSession
- the JCR session of the current userpublic 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 checkpublic 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 checkpublic 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 checkprotected void activate(org.osgi.framework.BundleContext bundleContext, Map<String,Object> properties) throws InvalidKeyException, NoSuchAlgorithmException, IllegalStateException, UnsupportedEncodingException
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.