public class BulkEditBuildPermissions extends AbstractPermissionAction implements GlobalAdminSecurityAware, BulkActionScope
BambooActionSupport.JSONStatus
acl, aclService, aclUpdateHelper, addGroupPrincipal, addUserPrincipal, entityId, grantedGroups, grantedPermissions, grantedUsers, newGroup, newUser, nonProcessedGrantedPermissions, principalType, userManager
ACCESS_DENIED, administrationConfigurationAccessor, administrationConfigurationManager, administrationConfigurationPersister, AGGREGATE_URL_PATTERN, authenticationContext, bambooPermissionManager, bambooUserManager, BUILD_KEY_CONTEXT, buildDefinitionManager, cachedPlanManager, CONFIRM, cookieCutter, deploymentProjectService, featureManager, PAGE_NOT_FOUND, PLAN_KEY_CONTEXT, planExecutionManager, planManager, pluginAccessor, projectManager, webInterfaceManager
Constructor and Description |
---|
BulkEditBuildPermissions() |
bulkUpdateAcls, doCreatePrincipal, doInputPrincipal, getAddGroupPrincipal, getAddUserPrincipal, getEntityAclType, getEntityId, getGrantedGroups, getGrantedPermissions, getGrantedUsers, getGrantedUsersDisplayNames, getMinimalPermission, getNewGroup, getNewUser, getPrincipalType, hasEditPermissionForGroup, hasEditPermissionForUser, hasEditPermissionForUserName, hasParameters, populatePermissionLists, save, saveAllPermissions, setAcl, setAclService, setAclUpdateHelper, setAddGroupPrincipal, setAddUserPrincipal, setEntityId, setGrantedGroups, setGrantedPermissions, setGrantedUsers, setNewGroup, setNewUser, setPrincipalType, setUserManager, showAdminPermissions, updateAcl, updatePermissions
addActionError, 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, hasResultKeyReadPermission, isCheckboxSetInAction, isEc2ConfigurationWarningRequired, isEnableJavascript, isEnableSignup, isInlineDialog, isRestrictedAdminEnabled, isSelectFieldAndNull, isViewContactDetailsEnabled, renderFreemarkerTemplate, setAdministrationConfigurationAccessor, setAdministrationConfigurationManager, setAdministrationConfigurationPersister, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setCachedPlanManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDecorator, setDeploymentProjectService, setDocumentationLinkProvider, setEnableJavascript, setEnvironmentService, setErrorMessages, setFeatureManager, setI18nBeanFactory, setJobEquiv, setJsonator, setLocalizedTextProvider, setNavigationContext, setPlanExecutionManager, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setServerLifecycleProvider, setWebInterfaceManager, streamJson, toJson, toJson
addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, execute, getActionErrors, getActionMessages, getContainer, getFormatted, getLocale, getLocaleProvider, 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 String doAddUserPrincipal() throws Exception
doAddUserPrincipal
in class AbstractPermissionAction
Exception
public String doAddGroupPrincipal() throws Exception
doAddGroupPrincipal
in class AbstractPermissionAction
Exception
public String specifyPermissions()
public String confirmBulkEditPermissions() throws Exception
Exception
@Nullable public org.acegisecurity.acls.MutableAcl getAcl()
getAcl
in class AbstractPermissionAction
@NotNull public String getEntityName()
getEntityName
in class AbstractPermissionAction
@NotNull public Class<?> getEntityType()
AbstractPermissionAction
ObjectIdentity
.
This method doesn't need to return the effective ACL entity class, as it will be proxied via
ObjectIdentityUtils.getAclClassForEntityClass(Class)
.
getEntityType
in class AbstractPermissionAction
@NotNull public Map<String,String> getEditablePermissions()
getEditablePermissions
in class AbstractPermissionAction
public Collection<Project> getProjects()
public Collection<TopLevelPlan> getBuilds(Project project)
public Map<Project,Collection<TopLevelPlan>> getProjectBuilds()
public Collection<TopLevelPlan> getSelectedBuilds()
public boolean isApplicableForRepositories()
isApplicableForRepositories
in interface BulkActionScope
public boolean isApplicable(BulkActionScope bulkAction, Project project)
public boolean isApplicable(ImmutablePlan plan)
BulkActionScope
isApplicable
in interface BulkActionScope
public boolean isProjectSelected(String projectKey)
public boolean isPlanSelected(String planKey)
public List<ImmutableTopLevelPlan> getSortedTopLevelPlans(Project project)
public long[] getBuildIds()
public void setBuildIds(long[] buildIds)
public Object getSecuredDomainObject()
getSecuredDomainObject
in interface DomainObjectSecurityAware
getSecuredDomainObject
in class BambooActionSupport
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.