|
abstract
void
|
addAllPermissions(Set<SpacePermission> permissionsToAdd)
Adds the given set of permissions if the current user has permission to do so, otherwise does nothing silently.
|
|
abstract
List<String>
|
addGuardPermissionToGroups(List<String> groupNames, UserAccessor userAccessor, String guardPermission)
Add the guard permissions for each group if they exist
|
|
abstract
List<String>
|
addGuardPermissionToUsers(List<String> userNames, UserAccessor userAccessor, String guardPermission)
Add the guard permissions for each user if they exist
|
|
abstract
void
|
addPermission(SpacePermission permissionToAdd)
Adds the given permission if the current user has permission to do so, otherwise does nothing silently.
|
|
abstract
void
|
applyPermissionChanges(Collection<SpacePermission> oldPermissions, Collection<SpacePermission> newPermissions)
Given the old permissions and new permissions, apply necessary permission
changes to make old permissions the same as new permissions
|
|
abstract
Collection<SpacePermission>
|
buildPermissionsFromWebForm(Map formParameters, String parameterQualifier)
Given a map containing the web form parameters from a permissions edit, return the list of global permissions
that are represented by the form
|
|
abstract
SpacePermission
|
createGroupGuardPermission(String guardPermission, String groupName)
Creates the relevant guard permission for the group
|
|
abstract
SpacePermission
|
createUserGuardPermission(String guardPermission, String userName)
Creates the relevant guard permission for the user
|
|
abstract
void
|
denyAnonymousPermissions(Collection<SpacePermission> currentPermissions, Set<SpacePermission> permissionsToAdd, Set<SpacePermission> permissionsToRemove)
Removes all anonymous permissions
|
|
abstract
String
|
getAdministrativePermissionType()
Returns the top level permission type applicable to the current scope.
|
|
abstract
Collection<SpacePermission>
|
getInitialPermissionsFromForm(Map requestParams)
Retrieve the permissions initial state
|
|
abstract
int
|
getNumOfGroupEntries()
Returns the number of group entries that are to be added.
|
|
abstract
int
|
getNumOfUserEntries()
Returns the number of user entries that are to be added.
|
|
abstract
Collection<SpacePermission>
|
getRequestedPermissionsFromForm(Map requestParams)
Retrieve the state of the permissions requested by
the user
|
|
abstract
boolean
|
isGroupsToAddEmpty(Map requestParams)
Validate if the number of groups to add is empty
Validation only occurs if the group add button is pressed
|
|
abstract
boolean
|
isGroupsToAddTooLarge(Map requestParams)
Validate if the number of groups to add is greater
than maximum allowed.
|
|
abstract
boolean
|
isRemoveAllAdminPermissions(Set<SpacePermission> permissionsToRemove)
Returns if all admin permissions would be removed by
the request.
|
|
abstract
boolean
|
isUsersToAddEmpty(Map requestParams)
Validate if the number of users to add is empty
Validation only occurs if the user add button is pressed
|
|
abstract
boolean
|
isUsersToAddTooLarge(Map requestParams)
Validate if the number of users to add is greater
than maximum allowed.
|
|
abstract
void
|
removeAllPermissions(Set<SpacePermission> permissionsToRemove)
Removes the given set of permissions if the current user has permission to do so, otherwise does nothing silently.
|
|
abstract
void
|
removePermission(SpacePermission permissionToRemove)
Removes the given permission if the current user has permission to do so, otherwise does nothing silently.
|
|
abstract
void
|
splitPermissions(Collection<SpacePermission> existingPermissions, Collection<SpacePermission> initialPermissions, Collection<SpacePermission> requestedPermissions, Set<SpacePermission> permissionsToAdd, Set<SpacePermission> permissionsToRemove)
Determine which permissions need to be added or removed.
|