|
||||||||||
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.EditGlobalPermissionsAdministrator
public class EditGlobalPermissionsAdministrator
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 |
Fields inherited from class com.atlassian.confluence.security.administrators.DefaultPermissionsAdministrator |
---|
permissions, spacePermissionManager |
Fields inherited from interface com.atlassian.confluence.security.administrators.EditPermissionsAdministrator |
---|
MAX_ENTRIES |
Constructor Summary | |
---|---|
protected |
EditGlobalPermissionsAdministrator(SpacePermissionManager spacePermissionManager,
PermissionResolver permissionResolver,
SetSpacePermissionChecker setSpacePermissionChecker,
SearchEntitiesManager searchEntitiesManager,
SettingsManager settingsManager)
|
Method Summary | |
---|---|
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 |
boolean |
canSetPermissionOnGroup(String permission,
String groupName)
Returns whether the remote user can set the required permission for the group(used by velocity) |
boolean |
canSetPermissionOnUser(String permission,
String username)
Returns whether the remote user can set the required permission for the user (used by velocity) |
boolean |
canSetSystemAdministratorPermission()
Returns whether the user can set the administrator permissions (used by velocity) |
SpacePermission |
createGroupGuardPermission(String guardPermission,
String groupName)
Creates the relevant guard permission for the group |
SpacePermission |
createUserGuardPermission(String guardPermission,
String userName)
Creates the relevant guard permission for the user |
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 |
Methods inherited from class com.atlassian.confluence.security.administrators.AbstractEditPermissionsAdministrator |
---|
addAllPermissions, addGuardPermissionToGroups, addGuardPermissionToUsers, applyPermissionChanges, buildPermissionsFromWebForm, canAddPermission, denyAnonymousPermissions, getNumOfGroupEntries, getNumOfUserEntries, isGroupsToAddEmpty, isGroupsToAddTooLarge, isRemoveAllAdminPermissions, isUsersToAddEmpty, isUsersToAddTooLarge, removeAllPermissions, 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 |
---|
protected EditGlobalPermissionsAdministrator(SpacePermissionManager spacePermissionManager, PermissionResolver permissionResolver, SetSpacePermissionChecker setSpacePermissionChecker, SearchEntitiesManager searchEntitiesManager, SettingsManager settingsManager)
Method Detail |
---|
public String getAdministrativePermissionType()
public void addPermission(SpacePermission permissionToAdd)
permissionToAdd
- the permission you want rid of.public SpacePermission createUserGuardPermission(String guardPermission, String userName)
guardPermission
- - the name of the guard permission to createuserName
- - name of the user to add the permission to
public SpacePermission createGroupGuardPermission(String guardPermission, String groupName)
guardPermission
- - the name of the guard permission to creategroupName
- - name of group to add the permission to
public Collection<SpacePermission> getInitialPermissionsFromForm(Map requestParams)
public Collection<SpacePermission> getRequestedPermissionsFromForm(Map requestParams)
public Collection<SpacePermission> buildPermissionsFromWebForm(Map formParameters, String parameterQualifier)
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 boolean canSetPermissionOnUser(String permission, String username) throws EntityRuntimeException
EntityRuntimeException
public boolean canSetPermissionOnGroup(String permission, String groupName) throws EntityRuntimeException
EntityRuntimeException
public boolean canSetSystemAdministratorPermission()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |