|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.opensymphony.xwork.ActionSupport com.atlassian.confluence.core.ConfluenceActionSupport com.atlassian.confluence.security.actions.AbstractPermissionsAction com.atlassian.confluence.security.actions.AbstractEditPermissionAction com.atlassian.confluence.security.actions.EditGlobalPermissionsAction
public class EditGlobalPermissionsAction
Field Summary |
---|
Fields inherited from class com.atlassian.confluence.security.actions.AbstractEditPermissionAction |
---|
permissionsAdministrator, selectedGroup, selectedUsername |
Fields inherited from class com.atlassian.confluence.security.actions.AbstractPermissionsAction |
---|
anonymousPermissionRow, groupPermissionRows, permissionsAdministratorBuilder, userPermissionRows |
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport |
---|
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager |
Fields inherited from class com.opensymphony.xwork.ActionSupport |
---|
LOG |
Fields inherited from interface com.opensymphony.xwork.Action |
---|
ERROR, INPUT, LOGIN, NONE, SUCCESS |
Constructor Summary | |
---|---|
EditGlobalPermissionsAction()
|
Method Summary | |
---|---|
boolean |
canSetPermissionOnGroup(java.lang.String permission,
java.lang.String groupName)
Determines whether the logged in user can set the permission for the group. |
boolean |
canSetPermissionOnUser(java.lang.String permission,
java.lang.String username)
Determines whether the logged in user can set the permission for the user. |
boolean |
canSetSystemAdministratorPermission()
Determines whether the logged in user can set the system admin permission. |
java.lang.String |
execute()
Add and remove the permissions |
GlobalPermissionsUpdateEvent |
getEventToPublish(java.lang.String result)
Gets the event to publish. |
java.lang.String |
getGuardPermission()
Obtains the relevant guard permission for the action |
boolean |
isPermitted()
|
void |
populateAdministrator()
|
void |
validate()
Validate the form |
Methods inherited from class com.atlassian.confluence.security.actions.AbstractEditPermissionAction |
---|
executeAction, getGroupsToAddAsList, getPermissionCheckDispatcherResultCache, getPermissionsAdministrator, getSelectedGroup, getSelectedUsername, getUsersToAddAsList, setGroupsToAdd, setPermissionCheckDispatcherResultCache, setSelectedGroup, setSelectedUsername, setUsersToAdd |
Methods inherited from class com.atlassian.confluence.security.actions.AbstractPermissionsAction |
---|
bootstrap, getAnonymousPermissionRow, getGroupPermissionRows, getPermissions, getRequestParams, getUserPermissionRows, isAdminUser, setPermissionsAdministratorBuilder |
Methods inherited from class com.opensymphony.xwork.ActionSupport |
---|
addActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors |
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.actions.PermissionsAware |
---|
getAnonymousPermissionRow, getGroupPermissionRows, getRequestParams, getUserPermissionRows, isSharedMode |
Constructor Detail |
---|
public EditGlobalPermissionsAction()
Method Detail |
---|
public void validate()
EditPermissionsAware
validate
in interface EditPermissionsAware
validate
in interface MessageHolderAware
validate
in interface com.opensymphony.xwork.Validateable
validate
in class AbstractEditPermissionAction
public java.lang.String execute() throws java.lang.Exception
EditPermissionsAware
execute
in interface EditPermissionsAware
execute
in interface com.opensymphony.xwork.Action
execute
in class com.opensymphony.xwork.ActionSupport
java.lang.Exception
public GlobalPermissionsUpdateEvent getEventToPublish(java.lang.String result)
Evented
getEventToPublish
in interface Evented<GlobalPermissionsUpdateEvent>
result
- the result of the action executing.
public boolean canSetPermissionOnUser(java.lang.String permission, java.lang.String username)
permission
- permission to be setusername
- user for permission
public boolean canSetPermissionOnGroup(java.lang.String permission, java.lang.String groupName)
permission
- permission to be setgroupName
- user for permission
public boolean canSetSystemAdministratorPermission()
public java.lang.String getGuardPermission()
PermissionsAware
getGuardPermission
in interface PermissionsAware
public void populateAdministrator()
populateAdministrator
in interface PermissionsAware
public boolean isPermitted()
isPermitted
in class ConfluenceActionSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |