|
||||||||||
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, 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 and updates the current active user count. |
void |
applyPermissionChanges(java.util.Collection<SpacePermission> oldPermissions,
java.util.Collection<SpacePermission> newPermissions)
Given the old permissions and new permissions, apply necessary permission changes to make old permissions the same as new permissions, then reset the current active user count. |
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 |
boolean |
canSetPermissionOnGroup(java.lang.String permission,
java.lang.String groupName)
Returns whether the remote user can set the required permission for the group(used by velocity) |
boolean |
canSetPermissionOnUser(java.lang.String permission,
ConfluenceUser user)
Returns whether the remote user can set the required permission for the user (used by velocity) |
boolean |
canSetPermissionOnUser(java.lang.String permission,
java.lang.String username)
Deprecated. Since 5.3 Use canSetPermissionOnUser(String, com.atlassian.confluence.user.ConfluenceUser) |
boolean |
canSetSystemAdministratorPermission()
Returns whether the user can set the administrator permissions (used by velocity) |
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 |
removePermission(SpacePermission permissionToRemove)
Removes the given permission if the current user has permission to do so and updates the current active user count. |
Methods inherited from class com.atlassian.confluence.security.administrators.AbstractEditPermissionsAdministrator |
---|
addAllPermissions, addGuardPermissionToGroups, addGuardPermissionToUsers, buildPermissionsFromWebForm, canAddPermission, denyAnonymousPermissions, getNumOfGroupEntries, getNumOfUserEntries, isGroupsToAddEmpty, isGroupsToAddTooLarge, isRemoveAllAdminPermissions, isUsersToAddEmpty, isUsersToAddTooLarge, removeAllPermissions, 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 EditGlobalPermissionsAdministrator(SpacePermissionManager spacePermissionManager, PermissionResolver permissionResolver, SetSpacePermissionChecker setSpacePermissionChecker, SearchEntitiesManager searchEntitiesManager, SettingsManager settingsManager, UserChecker userChecker)
EditGlobalPermissionsAdministrator(com.atlassian.confluence.security.SpacePermissionManager, PermissionResolver, com.atlassian.confluence.security.SetSpacePermissionChecker, com.atlassian.confluence.user.SearchEntitiesManager, com.atlassian.confluence.util.UserChecker, com.atlassian.confluence.user.UserAccessor)
@Deprecated protected EditGlobalPermissionsAdministrator(SpacePermissionManager spacePermissionManager, PermissionResolver permissionResolver, SetSpacePermissionChecker setSpacePermissionChecker, SearchEntitiesManager searchEntitiesManager, UserChecker userChecker)
EditGlobalPermissionsAdministrator(com.atlassian.confluence.security.SpacePermissionManager, PermissionResolver, com.atlassian.confluence.security.SetSpacePermissionChecker, com.atlassian.confluence.user.SearchEntitiesManager, com.atlassian.confluence.util.UserChecker, com.atlassian.confluence.user.UserAccessor)
protected EditGlobalPermissionsAdministrator(SpacePermissionManager spacePermissionManager, PermissionResolver permissionResolver, SetSpacePermissionChecker setSpacePermissionChecker, SearchEntitiesManager searchEntitiesManager, UserChecker userChecker, UserAccessor userAccessor)
Method Detail |
---|
public java.lang.String getAdministrativePermissionType()
public void addPermission(SpacePermission permissionToAdd)
permissionToAdd
- the permission you want to add.public void removePermission(SpacePermission permissionToRemove)
removePermission
in interface EditPermissionsAdministrator
removePermission
in class AbstractEditPermissionsAdministrator
permissionToRemove
- the permission you want rid of.@Deprecated public SpacePermission createUserGuardPermission(java.lang.String guardPermission, java.lang.String userName)
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)
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)
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)
public java.util.Collection<SpacePermission> getRequestedPermissionsFromForm(java.util.Map requestParams)
public java.util.Collection<SpacePermission> buildPermissionsFromWebForm(java.util.Map formParameters, java.lang.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(java.lang.String permission, java.lang.String username) throws EntityRuntimeException
canSetPermissionOnUser(String, com.atlassian.confluence.user.ConfluenceUser)
EntityRuntimeException
public boolean canSetPermissionOnUser(java.lang.String permission, ConfluenceUser user) throws EntityRuntimeException
EntityRuntimeException
public boolean canSetPermissionOnGroup(java.lang.String permission, java.lang.String groupName) throws EntityRuntimeException
EntityRuntimeException
public boolean canSetSystemAdministratorPermission()
public void applyPermissionChanges(java.util.Collection<SpacePermission> oldPermissions, java.util.Collection<SpacePermission> newPermissions) throws java.lang.IllegalArgumentException
applyPermissionChanges
in interface EditPermissionsAdministrator
applyPermissionChanges
in class AbstractEditPermissionsAdministrator
oldPermissions
- - initial permissionsnewPermissions
- - expected permissions
java.lang.IllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |