public class EditGlobalPermissionsAction extends AbstractEditPermissionAction implements Evented<GlobalPermissionsUpdateEvent>
permissionsAdministrator, selectedGroup, selectedUsername
anonymousPermissionRow, groupPermissionRows, permissionsAdministratorBuilder, userPermissionRows
accessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
Constructor and Description |
---|
EditGlobalPermissionsAction() |
Modifier and Type | Method and Description |
---|---|
boolean |
canSetPermissionOnGroup(String permission,
String groupName)
Determines whether the logged in user can set the permission for the group.
|
boolean |
canSetPermissionOnUser(String permission,
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.
|
String |
execute()
Add and remove the permissions
|
GlobalPermissionsUpdateEvent |
getEventToPublish(String result)
Gets the event to publish.
|
String |
getGuardPermission()
Obtains the relevant guard permission for the action
|
boolean |
isAllowAnyLicensing() |
boolean |
isAllowPerGroupLicensing() |
boolean |
isAllowPerUserLicensing() |
boolean |
isConfluenceAdministratorsGroup(String groupName)
Determines whether the group is confluence administrators
|
boolean |
isPermitted() |
void |
populateAdministrator() |
void |
validate()
Validate the form
|
executeAction, getGroupsToAddAsList, getPermissionsAdministrator, getSelectedGroup, getSelectedUsername, getUsersToAddAsList, setGroupsToAdd, setSelectedGroup, setSelectedUsername, setUsersToAdd
bootstrap, getAnonymousPermissionRow, getGroupPermissionRows, getPermissions, getRequestParams, getUnlicensedAuthenticatedPermissionRow, getUserPermissionRows, isAdminUser, isShowGlobalUnlicensedUsersUI, isValidAnonymousPermission, isValidAuthenticatedUsersPermission, setPermissionsAdministratorBuilder
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getCancel, getCancelResult, getConfluenceAccessManager, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPersonService, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUserAccessor, getUserByName, getUserFullName, getUserHasBrowseUsersPermission, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setAccessModeService, setApiDateFormatService, setApiPersonService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSkipAccessCheck, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, withServletRequestSupplier
addActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnonymousPermissionRow, getGroupPermissionRows, getRequestParams, getUnlicensedAuthenticatedPermissionRow, getUserPermissionRows
public void validate()
EditPermissionsAware
validate
in interface EditPermissionsAware
validate
in interface MessageHolderAware
validate
in interface com.opensymphony.xwork.Validateable
validate
in class AbstractEditPermissionAction
public String execute() throws Exception
EditPermissionsAware
execute
in interface EditPermissionsAware
execute
in interface com.opensymphony.xwork.Action
execute
in class com.opensymphony.xwork.ActionSupport
Exception
public GlobalPermissionsUpdateEvent getEventToPublish(String result)
Evented
getEventToPublish
in interface Evented<GlobalPermissionsUpdateEvent>
result
- the result of the action executing.public boolean canSetPermissionOnUser(String permission, String username)
permission
- permission to be setusername
- user for permissionpublic boolean canSetPermissionOnGroup(String permission, String groupName)
permission
- permission to be setgroupName
- group for permissionpublic boolean isConfluenceAdministratorsGroup(String groupName)
groupName
- the group to checkpublic boolean canSetSystemAdministratorPermission()
public boolean isAllowAnyLicensing()
public boolean isAllowPerGroupLicensing()
public boolean isAllowPerUserLicensing()
public String getGuardPermission()
PermissionsAware
getGuardPermission
in interface PermissionsAware
public void populateAdministrator()
populateAdministrator
in interface PermissionsAware
public boolean isPermitted()
isPermitted
in class ConfluenceActionSupport
Copyright © 2003–2019 Atlassian. All rights reserved.