Interface AuthorizablePrivilegesInfo
public interface AuthorizablePrivilegesInfo
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumAn enumeration of the possible types of property changes -
Method Summary
Modifier and TypeMethodDescriptionbooleancanAddGroup(javax.jcr.Session jcrSession) Checks whether the current user has been granted privileges to add a new group.booleancanAddUser(javax.jcr.Session jcrSession) Checks whether the current user has been granted privileges to add a new user.default booleancanChangePassword(javax.jcr.Session jcrSession, String userId) Checks whether the current user has been granted privileges to change the password of the specified user.default booleancanChangePasswordWithoutOldPassword(@NotNull javax.jcr.Session jcrSession, @NotNull String userId) Checks whether the current user has been granted privileges to change the password of the specified user without knowing the current password of the user.default booleancanDisable(javax.jcr.Session jcrSession, String userId) Checks whether the current user has been granted privileges to disable the specified user.booleanChecks whether the current user has been granted privileges to remove the specified user or group.booleancanUpdateGroupMembers(javax.jcr.Session jcrSession, String groupId) Checks whether the current user has been granted privileges to update the membership of the specified group.booleancanUpdateProperties(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.default booleancanUpdateProperties(javax.jcr.Session jcrSession, String principalId, AuthorizablePrivilegesInfo.PropertyUpdateTypes... propertyUpdateTypes) Checks whether the current user has been granted privileges to update the properties of the specified user or group.
-
Method Details
-
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
Checks whether the current user has been granted privileges to update the properties of the specified user or group. Equivalent of: #canUpdateProperties(Session, String, PropertyUpdateTypes.addProperty, PropertyUpdateTypes.addNestedProperty, PropertyUpdateTypes.alterProperty, PropertyUpdateTypes.removeProperty)- Parameters:
jcrSession- the JCR session of the current userprincipalId- the user or group id to check- Returns:
- true if the current user has the privileges, false otherwise
-
canUpdateProperties
default boolean canUpdateProperties(javax.jcr.Session jcrSession, String principalId, AuthorizablePrivilegesInfo.PropertyUpdateTypes... propertyUpdateTypes) 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 userprincipalId- the user or group id to checkpropertyUpdateTypes- specify the types of property updates that may be supplied. See:AuthorizablePrivilegesInfo.PropertyUpdateTypes- Returns:
- true if the current user has the privileges, false otherwise
-
canRemove
Checks whether the current user has been granted privileges to remove the specified user or group.- Parameters:
jcrSession- the JCR session of the current userprincipalId- the user or group id to check- Returns:
- true if the current user has the privileges, false otherwise
-
canUpdateGroupMembers
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 usergroupId- the group id to check- Returns:
- true if the current user has the privileges, false otherwise
-
canDisable
Checks whether the current user has been granted privileges to disable the specified user.- Parameters:
jcrSession- the JCR session of the current useruserId- the user id to check- Returns:
- true if the current user has the privileges, false otherwise
-
canChangePassword
Checks whether the current user has been granted privileges to change the password of the specified user.- Parameters:
jcrSession- the JCR session of the current useruserId- the user id to check- Returns:
- true if the current user has the privileges, false otherwise
-
canChangePasswordWithoutOldPassword
default boolean canChangePasswordWithoutOldPassword(@NotNull @NotNull javax.jcr.Session jcrSession, @NotNull @NotNull String userId) Checks whether the current user has been granted privileges to change the password of the specified user without knowing the current password of the user.- Parameters:
jcrSession- the JCR session of the current useruserId- the user id to check- Returns:
- true if the current user has the privileges, false otherwise
-