public class ConfigureGlobalPermissions extends AbstractPermissionAction implements GlobalAdminSecurityAware, com.atlassian.struts.Preparable
BambooActionSupport.JSONStatus
acl, aclService, aclUpdateHelper, addGroupPrincipal, addUserPrincipal, entityId, grantedGroups, grantedPermissions, grantedUsers, newGroup, newUser, nonProcessedGrantedPermissions, principalType, userManager
ACCESS_DENIED, administrationConfigurationManager, AGGREGATE_URL_PATTERN, bambooPermissionManager, bambooUserManager, BUILD_KEY_CONTEXT, buildDefinitionManager, cachedPlanManager, CONFIRM, cookieCutter, dashboardCachingManager, featureManager, PAGE_NOT_FOUND, PLAN_KEY_CONTEXT, planExecutionManager, planManager, pluginAccessor, projectManager, webInterfaceManager
Constructor and Description |
---|
ConfigureGlobalPermissions() |
Modifier and Type | Method and Description |
---|---|
String |
doSave() |
String |
execute() |
org.acegisecurity.acls.MutableAcl |
getAcl() |
String |
getAnonymousUsersPrincipal() |
Map<String,String> |
getEditablePermissions() |
Map<String,String> |
getEditablePermissionsForAnonymousUsers() |
Map<String,String> |
getEditablePermissionsForLoggedInUsers() |
String |
getEntityName() |
String |
getLoggedInUsersPrincipal() |
Object |
getSecuredDomainObject() |
boolean |
hasEditPermissionForUser(BambooUser user) |
boolean |
hasEditPermissionForUserName(String userName) |
void |
prepare() |
protected String |
saveAllPermissions() |
void |
validateSaveAllPermissions(List<String> permissions) |
String |
view() |
bulkUpdateAcls, doAddGroupPrincipal, doAddUserPrincipal, doCreatePrincipal, doInputPrincipal, getAddGroupPrincipal, getAddUserPrincipal, getEntityId, getGrantedGroups, getGrantedPermissions, getGrantedUsers, getGrantedUsersDisplayNames, getNewGroup, getNewUser, getPrincipalType, hasEditPermissionForGroup, hasParameters, populatePermissionLists, save, setAcl, setAclService, setAclUpdateHelper, setAddGroupPrincipal, setAddUserPrincipal, setEntityId, setGrantedGroups, setGrantedPermissions, setGrantedUsers, setNewGroup, setNewUser, setPrincipalType, setUserManager, showAdminPermissions, updateAcl, updatePermissions
addActionError, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addFieldErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, buildWebPanelContext, checkFieldXssSafety, createFieldValidator, doDefault, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, doInput, forceRelativeReturnUrl, getActionWarnings, getAdministrationConfiguration, getAvailableCategoryJson, getBamboo, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUrl, getBambooUserManager, getBaseUrl, getBestBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentFormTheme, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDescriptionFromLabelKey, getElasticConfig, getErrorMessages, getErrors, getFeatureManager, getFieldErrorAccessTracker, getFieldErrors, getFlushedErrorMessages, getFormattedActionErrors, getFormattedActionMessages, getFormattedActionWarnings, getHelpPanels, getInstanceName, getJobEquiv, getJsonObject, getNavigationContext, getNavigationUrl, getNumberOfCurrentlyBuildingPlans, getPlan, getPlanManager, getPluginAccessor, getReturnUrl, getServerLifecycleState, getSessionUser, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTextProvider, getTexts, getTexts, getTextWithArgs, getTotalErrors, getUser, getValidatorContext, getWebFragmentsContextMap, getWebItemsForSection, getWebPanelContext, getWebSectionsForLocation, hasActionWarnings, hasAdminPermission, hasAnyErrors, hasBuilds, hasEntityPermission, hasGlobalAdminPermission, hasGlobalPermission, hasGlobalPermission, hasKey, hasPlanPermission, hasPlanPermission, hasRestrictedAdminPermission, isCheckboxSetInAction, isEc2ConfigurationWarningRequired, isEnableJavascript, isEnableSignup, isInlineDialog, isRestrictedAdminEnabled, isSelectFieldAndNull, isViewContactDetailsEnabled, renderFreemarkerTemplate, setAdministrationConfigurationAccessor, setAdministrationConfigurationManager, setAdministrationConfigurationPersister, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setCachedPlanManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDashboardCachingManager, setDecorator, setDocumentationLinkProvider, setEnableJavascript, setErrorMessages, setFeatureManager, setI18nBeanFactory, setJobEquiv, setJsonator, setNavigationContext, setPlanExecutionManager, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setServerLifecycleProvider, setWebInterfaceManager, toJson, toJson
addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getFormatted, getLocale, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAllErrorMessages
public void prepare() throws Exception
prepare
in interface com.opensymphony.xwork2.Preparable
Exception
@Nullable public org.acegisecurity.acls.MutableAcl getAcl()
getAcl
in class AbstractPermissionAction
@NotNull public String getEntityName()
getEntityName
in class AbstractPermissionAction
@NotNull public Map<String,String> getEditablePermissions()
getEditablePermissions
in class AbstractPermissionAction
public Map<String,String> getEditablePermissionsForLoggedInUsers()
public String getLoggedInUsersPrincipal()
public Map<String,String> getEditablePermissionsForAnonymousUsers()
public String getAnonymousUsersPrincipal()
public boolean hasEditPermissionForUserName(String userName)
hasEditPermissionForUserName
in class AbstractPermissionAction
public boolean hasEditPermissionForUser(BambooUser user)
hasEditPermissionForUser
in class AbstractPermissionAction
public Object getSecuredDomainObject()
getSecuredDomainObject
in interface DomainObjectSecurityAware
getSecuredDomainObject
in class BambooActionSupport
public String execute() throws Exception
execute
in interface com.opensymphony.xwork2.Action
execute
in class com.opensymphony.xwork2.ActionSupport
Exception
protected String saveAllPermissions()
saveAllPermissions
in class AbstractPermissionAction
public void validateSaveAllPermissions(List<String> permissions)
validateSaveAllPermissions
in class AbstractPermissionAction
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.