public class EditSpacePermissionsAdministrator extends AbstractEditPermissionsAdministrator
DefaultPermissionsAdministrator.GroupPermissionRow, DefaultPermissionsAdministrator.UnlicensedPermissionRow, DefaultPermissionsAdministrator.UserPermissionRow
PARAMETER_PREFIX, remoteUser, searchEntitiesManager, setSpacePermissionChecker, userAccessor
permissions, spacePermissionManager
MAX_ENTRIES
Modifier | Constructor and Description |
---|---|
protected |
EditSpacePermissionsAdministrator(SpacePermissionManager spacePermissionManager,
PermissionResolver permissionResolver,
SetSpacePermissionChecker setSpacePermissionChecker,
SearchEntitiesManager searchEntitiesManager)
|
protected |
EditSpacePermissionsAdministrator(SpacePermissionManager spacePermissionManager,
PermissionResolver permissionResolver,
SetSpacePermissionChecker setSpacePermissionChecker,
SearchEntitiesManager searchEntitiesManager,
SettingsManager settingsManager)
|
protected |
EditSpacePermissionsAdministrator(SpacePermissionManager spacePermissionManager,
PermissionResolver permissionResolver,
SetSpacePermissionChecker setSpacePermissionChecker,
SearchEntitiesManager searchEntitiesManager,
UserAccessor userAccessor)
|
protected |
EditSpacePermissionsAdministrator(SpacePermissionManager spacePermissionManager,
PermissionResolver permissionResolver,
SetSpacePermissionChecker setSpacePermissionChecker,
UserAccessor userAccessor) |
Modifier and Type | Method and Description |
---|---|
void |
addPermission(SpacePermission permissionToAdd)
Adds the given permission if the current user has permission to do so, otherwise does nothing silently.
|
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
|
SpacePermission |
createGroupGuardPermission(String guardPermission,
String groupName)
Creates the relevant guard permission for the group
|
SpacePermission |
createUserGuardPermission(String guardPermission,
ConfluenceUser user)
Creates the relevant guard permission for the user
|
SpacePermission |
createUserGuardPermission(String guardPermission,
String userName)
Deprecated.
|
String |
getAdministrativePermissionType()
Returns the top level permission type applicable to the current scope.
|
Collection<SpacePermission> |
getInitialPermissionsFromForm(Map requestParams)
Retrieve the permissions initial state
|
Collection<SpacePermission> |
getRequestedPermissionsFromForm(Map requestParams)
Retrieve the state of the permissions requested by
the user
|
void |
removeAllPermissions(Set<SpacePermission> permissionsToRemove)
Removes the given set of permissions if the current user has permission to do so, otherwise does nothing silently.
|
void |
setSpace(Space space) |
addAllPermissions, addGuardPermissionToGroups, addGuardPermissionToUsers, applyPermissionChanges, buildPermissionsFromWebForm, canAddPermission, denyAnonymousPermissions, getNumOfGroupEntries, getNumOfUserEntries, isGroupsToAddEmpty, isGroupsToAddTooLarge, isRemoveAllAdminPermissions, isUsersToAddEmpty, isUsersToAddTooLarge, removePermission, setGroupsToAdd, setRemoteUser, setUsersToAdd, splitPermissions
buildAnonymousPermissionRow, buildGroupPermissionTable, buildUnlicensedAuthenticatedPermissionRow, buildUserPermissionTable, getPermissions, resetPermissions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
buildAnonymousPermissionRow, buildGroupPermissionTable, buildUnlicensedAuthenticatedPermissionRow, buildUserPermissionTable, getPermissions
@Deprecated protected EditSpacePermissionsAdministrator(SpacePermissionManager spacePermissionManager, PermissionResolver permissionResolver, SetSpacePermissionChecker setSpacePermissionChecker, SearchEntitiesManager searchEntitiesManager, SettingsManager settingsManager)
@Deprecated protected EditSpacePermissionsAdministrator(SpacePermissionManager spacePermissionManager, PermissionResolver permissionResolver, SetSpacePermissionChecker setSpacePermissionChecker, SearchEntitiesManager searchEntitiesManager)
@Deprecated protected EditSpacePermissionsAdministrator(SpacePermissionManager spacePermissionManager, PermissionResolver permissionResolver, SetSpacePermissionChecker setSpacePermissionChecker, SearchEntitiesManager searchEntitiesManager, UserAccessor userAccessor)
protected EditSpacePermissionsAdministrator(SpacePermissionManager spacePermissionManager, PermissionResolver permissionResolver, SetSpacePermissionChecker setSpacePermissionChecker, UserAccessor userAccessor)
public String getAdministrativePermissionType()
EditPermissionsAdministrator
public void removeAllPermissions(Set<SpacePermission> permissionsToRemove)
AbstractEditPermissionsAdministrator
removeAllPermissions
in interface EditPermissionsAdministrator
removeAllPermissions
in class AbstractEditPermissionsAdministrator
permissionsToRemove
- the permission you want rid of.public void addPermission(SpacePermission permissionToAdd)
EditPermissionsAdministrator
permissionToAdd
- the permission you want rid of.@Deprecated public SpacePermission createUserGuardPermission(String guardPermission, String userName)
EditPermissionsAdministrator
guardPermission
- - the name of the guard permission to createuserName
- - name of the user to add the permission topublic SpacePermission createUserGuardPermission(String guardPermission, ConfluenceUser user)
EditPermissionsAdministrator
guardPermission
- - the name of the guard permission to createuser
- - name of the user to add the permission topublic SpacePermission createGroupGuardPermission(String guardPermission, String groupName)
EditPermissionsAdministrator
guardPermission
- - the name of the guard permission to creategroupName
- - name of group to add the permission topublic Collection<SpacePermission> getInitialPermissionsFromForm(Map requestParams)
EditPermissionsAdministrator
public Collection<SpacePermission> getRequestedPermissionsFromForm(Map requestParams)
EditPermissionsAdministrator
public Collection<SpacePermission> buildPermissionsFromWebForm(Map formParameters, String parameterQualifier)
EditPermissionsAdministrator
formParameters
- the map of form parametersparameterQualifier
- distinguishes the set of parameters from other sets of parameters used to represent
permissions in the same form.public void setSpace(Space space)
Copyright © 2003–2018 Atlassian. All rights reserved.