|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.security.administrators.DefaultPermissionsAdministrator com.atlassian.confluence.security.administrators.AbstractEditPermissionsAdministrator com.atlassian.confluence.security.administrators.EditSpacePermissionsAdministrator
public class EditSpacePermissionsAdministrator
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.atlassian.confluence.security.administrators.DefaultPermissionsAdministrator |
---|
DefaultPermissionsAdministrator.AnonymousPermissionRow, DefaultPermissionsAdministrator.GroupPermissionRow, DefaultPermissionsAdministrator.UserPermissionRow |
Field Summary |
---|
Fields inherited from class com.atlassian.confluence.security.administrators.AbstractEditPermissionsAdministrator |
---|
PARAMETER_PREFIX, remoteUser, searchEntitiesManager, setSpacePermissionChecker, userAccessor |
Fields inherited from class com.atlassian.confluence.security.administrators.DefaultPermissionsAdministrator |
---|
permissions, spacePermissionManager |
Fields inherited from interface com.atlassian.confluence.security.administrators.EditPermissionsAdministrator |
---|
MAX_ENTRIES |
Method Summary | |
---|---|
void |
addPermission(SpacePermission permissionToAdd)
Adds the given permission if the current user has permission to do so, otherwise does nothing silently. |
java.util.Collection<SpacePermission> |
buildPermissionsFromWebForm(java.util.Map formParameters,
java.lang.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(java.lang.String guardPermission,
java.lang.String groupName)
Creates the relevant guard permission for the group |
SpacePermission |
createUserGuardPermission(java.lang.String guardPermission,
ConfluenceUser user)
Creates the relevant guard permission for the user |
SpacePermission |
createUserGuardPermission(java.lang.String guardPermission,
java.lang.String userName)
Deprecated. |
java.lang.String |
getAdministrativePermissionType()
Returns the top level permission type applicable to the current scope. |
java.util.Collection<SpacePermission> |
getInitialPermissionsFromForm(java.util.Map requestParams)
Retrieve the permissions initial state |
java.util.Collection<SpacePermission> |
getRequestedPermissionsFromForm(java.util.Map requestParams)
Retrieve the state of the permissions requested by the user |
void |
removeAllPermissions(java.util.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)
|
Methods inherited from class com.atlassian.confluence.security.administrators.AbstractEditPermissionsAdministrator |
---|
addAllPermissions, addGuardPermissionToGroups, addGuardPermissionToUsers, applyPermissionChanges, buildPermissionsFromWebForm, canAddPermission, denyAnonymousPermissions, getNumOfGroupEntries, getNumOfUserEntries, isGroupsToAddEmpty, isGroupsToAddTooLarge, isRemoveAllAdminPermissions, isUsersToAddEmpty, isUsersToAddTooLarge, removePermission, setGroupsToAdd, setRemoteUser, setUsersToAdd, splitPermissions |
Methods inherited from class com.atlassian.confluence.security.administrators.DefaultPermissionsAdministrator |
---|
buildAnonymousPermissionRow, buildGroupPermissionTable, buildUserPermissionTable, getPermissions, resetPermissions |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.confluence.security.administrators.PermissionsAdministrator |
---|
buildAnonymousPermissionRow, buildGroupPermissionTable, buildUserPermissionTable, getPermissions |
Constructor Detail |
---|
@Deprecated protected EditSpacePermissionsAdministrator(SpacePermissionManager spacePermissionManager, PermissionResolver permissionResolver, SetSpacePermissionChecker setSpacePermissionChecker, SearchEntitiesManager searchEntitiesManager, SettingsManager settingsManager)
EditSpacePermissionsAdministrator(com.atlassian.confluence.security.SpacePermissionManager, PermissionResolver, com.atlassian.confluence.security.SetSpacePermissionChecker, com.atlassian.confluence.user.SearchEntitiesManager, com.atlassian.confluence.user.UserAccessor)
@Deprecated protected EditSpacePermissionsAdministrator(SpacePermissionManager spacePermissionManager, PermissionResolver permissionResolver, SetSpacePermissionChecker setSpacePermissionChecker, SearchEntitiesManager searchEntitiesManager)
EditSpacePermissionsAdministrator(com.atlassian.confluence.security.SpacePermissionManager, PermissionResolver, com.atlassian.confluence.security.SetSpacePermissionChecker, com.atlassian.confluence.user.SearchEntitiesManager, com.atlassian.confluence.user.UserAccessor)
protected EditSpacePermissionsAdministrator(SpacePermissionManager spacePermissionManager, PermissionResolver permissionResolver, SetSpacePermissionChecker setSpacePermissionChecker, SearchEntitiesManager searchEntitiesManager, UserAccessor userAccessor)
Method Detail |
---|
public java.lang.String getAdministrativePermissionType()
EditPermissionsAdministrator
public void removeAllPermissions(java.util.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(java.lang.String guardPermission, java.lang.String userName)
EditPermissionsAdministrator
guardPermission
- - the name of the guard permission to createuserName
- - name of the user to add the permission to
public SpacePermission createUserGuardPermission(java.lang.String guardPermission, ConfluenceUser user)
EditPermissionsAdministrator
guardPermission
- - the name of the guard permission to createuser
- - name of the user to add the permission to
public SpacePermission createGroupGuardPermission(java.lang.String guardPermission, java.lang.String groupName)
EditPermissionsAdministrator
guardPermission
- - the name of the guard permission to creategroupName
- - name of group to add the permission to
public java.util.Collection<SpacePermission> getInitialPermissionsFromForm(java.util.Map requestParams)
EditPermissionsAdministrator
public java.util.Collection<SpacePermission> getRequestedPermissionsFromForm(java.util.Map requestParams)
EditPermissionsAdministrator
public java.util.Collection<SpacePermission> buildPermissionsFromWebForm(java.util.Map formParameters, java.lang.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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |