public class EditSpacePermissionDefaultsAction extends AbstractEditPermissionAction implements com.opensymphony.xwork.Preparable, SpaceAware
permissionsAdministrator, selectedGroup, selectedUsername
anonymousPermissionRow, groupPermissionRows, permissionsAdministratorBuilder, userPermissionRows
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, 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, setGroupsToAdd, setSelectedGroup, setSelectedUsername, setUsersToAdd, validate
bootstrap, getAnonymousPermissionRow, getGroupPermissionRows, getPermissions, getRequestParams, getUnlicensedAuthenticatedPermissionRow, getUserPermissionRows, isAdminUser, isShowGlobalUnlicensedUsersUI, isValidAnonymousPermission, isValidAuthenticatedUsersPermission
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, 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, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserByName, getUserFullName, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSharedMode, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setApiDateFormatService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSkipAccessCheck, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager
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, isSharedMode
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–2017 Atlassian. All rights reserved.