public class EditSpacePermissionDefaultsAction extends AbstractEditPermissionAction implements com.opensymphony.xwork.Preparable, SpaceAware
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 |
---|
EditSpacePermissionDefaultsAction() |
Modifier and Type | Method and Description |
---|---|
String |
execute()
Add and remove the permissions
|
String |
getExistingGroups() |
String |
getGuardPermission()
Obtains the relevant guard permission for the action
|
PermissionsAdministrator |
getPermissionsAdministrator() |
Space |
getSpace() |
String |
grantPermission() |
boolean |
isPermitted() |
boolean |
isSpaceRequired()
If the action requires that the space be set before being run, then it should
return true to this method.
|
boolean |
isViewPermissionRequired() |
void |
populateAdministrator() |
void |
prepare() |
void |
setPermissionsAdministratorBuilder(PermissionsAdministratorBuilder permissionsAdministratorBuilder) |
void |
setSpace(Space space)
IOC method for setting the space on the action.
|
void |
setSpacePermissionDefaultsStoreFactory(SpacePermissionDefaultsStoreFactory spacePermissionDefaultsStoreFactory) |
executeAction, getGroupsToAddAsList, getSelectedGroup, getSelectedUsername, getUsersToAddAsList, setGroupListToAdd, setGroupsToAdd, setSelectedGroup, setSelectedUsername, setUsersToAdd, validate
bootstrap, getAnonymousPermissionRow, getGroupPermissionRows, getPermissions, getRequestParams, getUnlicensedAuthenticatedPermissionRow, getUserPermissionRows, isAdminUser, isShowGlobalUnlicensedUsersUI, isValidAnonymousPermission, isValidAuthenticatedUsersPermission
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 PermissionsAdministrator getPermissionsAdministrator()
getPermissionsAdministrator
in interface PermissionsAware
getPermissionsAdministrator
in class AbstractEditPermissionAction
public void populateAdministrator()
populateAdministrator
in interface PermissionsAware
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 String grantPermission()
public boolean isPermitted()
isPermitted
in class ConfluenceActionSupport
public String getGuardPermission()
PermissionsAware
getGuardPermission
in interface PermissionsAware
public String getExistingGroups()
public void setPermissionsAdministratorBuilder(PermissionsAdministratorBuilder permissionsAdministratorBuilder)
setPermissionsAdministratorBuilder
in class AbstractPermissionsAction
public void setSpacePermissionDefaultsStoreFactory(SpacePermissionDefaultsStoreFactory spacePermissionDefaultsStoreFactory)
public void prepare() throws Exception
prepare
in interface com.opensymphony.xwork.Preparable
Exception
public void setSpace(Space space)
SpaceAware
setSpace
in interface SpaceAware
space
- the space that the action will be working on.public boolean isSpaceRequired()
SpaceAware
isSpaceRequired
in interface SpaceAware
public boolean isViewPermissionRequired()
isViewPermissionRequired
in interface SpaceAware
Copyright © 2003–2020 Atlassian. All rights reserved.