public interface AuthorizablePrivilegesInfo
Modifier and Type | Interface and Description |
---|---|
static class |
AuthorizablePrivilegesInfo.PropertyUpdateTypes
An enumeration of the possible types of property changes
|
Modifier and Type | Method and Description |
---|---|
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.
|
default boolean |
canChangePassword(javax.jcr.Session jcrSession,
java.lang.String userId)
Checks whether the current user has been granted privileges
to change the password of the specified user.
|
default boolean |
canDisable(javax.jcr.Session jcrSession,
java.lang.String userId)
Checks whether the current user has been granted privileges
to disable the specified user.
|
boolean |
canRemove(javax.jcr.Session jcrSession,
java.lang.String principalId)
Checks whether the current user has been granted privileges
to remove the specified user or group.
|
boolean |
canUpdateGroupMembers(javax.jcr.Session jcrSession,
java.lang.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,
java.lang.String principalId)
Checks whether the current user has been granted privileges
to update the properties of the specified user or group.
|
default boolean |
canUpdateProperties(javax.jcr.Session jcrSession,
java.lang.String principalId,
AuthorizablePrivilegesInfo.PropertyUpdateTypes... propertyUpdateTypes)
Checks whether the current user has been granted privileges
to update the properties of the specified user or group.
|
boolean canAddUser(javax.jcr.Session jcrSession)
jcrSession
- the JCR session of the current userboolean canAddGroup(javax.jcr.Session jcrSession)
jcrSession
- the JCR session of the current userboolean canUpdateProperties(javax.jcr.Session jcrSession, java.lang.String principalId)
jcrSession
- the JCR session of the current userprincipalId
- the user or group id to checkdefault boolean canUpdateProperties(javax.jcr.Session jcrSession, java.lang.String principalId, AuthorizablePrivilegesInfo.PropertyUpdateTypes... propertyUpdateTypes)
jcrSession
- the JCR session of the current userprincipalId
- the user or group id to checkpropertyUpdateTypes
- specify the types of property updates that may be supplied. See: AuthorizablePrivilegesInfo.PropertyUpdateTypes
boolean canRemove(javax.jcr.Session jcrSession, java.lang.String principalId)
jcrSession
- the JCR session of the current userprincipalId
- the user or group id to checkboolean canUpdateGroupMembers(javax.jcr.Session jcrSession, java.lang.String groupId)
jcrSession
- the JCR session of the current usergroupId
- the group id to checkdefault boolean canDisable(javax.jcr.Session jcrSession, java.lang.String userId)
jcrSession
- the JCR session of the current useruserId
- the user id to checkdefault boolean canChangePassword(javax.jcr.Session jcrSession, java.lang.String userId)
jcrSession
- the JCR session of the current useruserId
- the user id to checkCopyright © 2022 The Apache Software Foundation. All rights reserved.