public abstract class AbstractPermissionAction extends BambooActionSupport
BambooActionSupport.JSONStatus
Modifier and Type | Field and Description |
---|---|
protected org.acegisecurity.acls.MutableAcl |
acl |
protected HibernateMutableAclService |
aclService |
protected BambooAclUpdateHelper |
aclUpdateHelper |
protected String |
addGroupPrincipal |
protected String |
addUserPrincipal |
protected long |
entityId |
protected List<String> |
grantedGroups |
protected List<String> |
grantedPermissions |
protected List<String> |
grantedUsers |
protected String |
newGroup |
protected String |
newUser |
protected List<String> |
nonProcessedGrantedPermissions |
protected String |
principalType |
protected com.atlassian.user.UserManager |
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 |
---|
AbstractPermissionAction() |
Modifier and Type | Method and Description |
---|---|
protected void |
bulkUpdateAcls(org.acegisecurity.acls.MutableAcl acl,
List<String> permissions) |
String |
doInputPrincipal() |
abstract @Nullable org.acegisecurity.acls.MutableAcl |
getAcl() |
String |
getAddGroupPrincipal() |
String |
getAddUserPrincipal() |
abstract @NotNull Map<String,String> |
getEditablePermissions() |
@NotNull Class<?> |
getEntityAclType() |
long |
getEntityId() |
abstract @NotNull String |
getEntityName() |
abstract @NotNull Class<?> |
getEntityType()
Class of the entity on which the permissions are being modified.
|
List<String> |
getGrantedGroups() |
List<String> |
getGrantedPermissions() |
List<String> |
getGrantedUsers() |
@NotNull Map<String,String> |
getGrantedUsersDisplayNames() |
BambooPermission |
getMinimalPermission()
Minimal permission to grant when adding new principal.
|
String |
getNewGroup() |
String |
getNewUser() |
String |
getPrincipalType() |
boolean |
hasEditPermissionForGroup(String groupName) |
boolean |
hasEditPermissionForUser(BambooUser user) |
boolean |
hasEditPermissionForUserName(String userName) |
protected boolean |
hasParameters() |
protected void |
populatePermissionLists() |
protected String |
saveAllPermissions() |
void |
setAcl(org.acegisecurity.acls.MutableAcl acl) |
void |
setAclService(HibernateMutableAclService aclService) |
void |
setAclUpdateHelper(BambooAclUpdateHelper aclUpdateHelper) |
void |
setAddGroupPrincipal(String addGroupPrincipal) |
void |
setAddUserPrincipal(String addUserPrincipal) |
void |
setEntityId(long entityId) |
void |
setGrantedGroups(List<String> grantedGroups) |
void |
setGrantedPermissions(List<String> grantedPermissions) |
void |
setGrantedUsers(List<String> grantedUsers) |
void |
setNewGroup(String newGroup) |
void |
setNewUser(String newUser) |
void |
setPrincipalType(String principalType) |
void |
setUserManager(com.atlassian.user.UserManager userManager) |
boolean |
showAdminPermissions() |
protected void |
updateAcl(org.acegisecurity.acls.MutableAcl acl) |
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, getSecuredDomainObject, 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, hasProjectPermission, hasProjectPermission, hasRestrictedAdminPermission, hasResultKeyReadPermission, isCheckboxSetInAction, 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
protected HibernateMutableAclService aclService
protected BambooAclUpdateHelper aclUpdateHelper
protected com.atlassian.user.UserManager userManager
protected org.acegisecurity.acls.MutableAcl acl
protected String newUser
protected String newGroup
protected String addUserPrincipal
protected String addGroupPrincipal
protected String principalType
protected long entityId
@Nullable public abstract @Nullable org.acegisecurity.acls.MutableAcl getAcl()
@NotNull public abstract @NotNull String getEntityName()
@NotNull public abstract @NotNull Class<?> getEntityType()
ObjectIdentity
.
This method doesn't need to return the effective ACL entity class, as it will be proxied via
ObjectIdentityUtils.getAclClassForEntityClass(Class)
.
@NotNull public @NotNull Class<?> getEntityAclType()
@NotNull public abstract @NotNull Map<String,String> getEditablePermissions()
public BambooPermission getMinimalPermission()
public boolean showAdminPermissions()
protected void populatePermissionLists()
protected boolean hasParameters()
protected void updateAcl(org.acegisecurity.acls.MutableAcl acl)
protected void bulkUpdateAcls(org.acegisecurity.acls.MutableAcl acl, List<String> permissions)
protected String saveAllPermissions()
public String doInputPrincipal()
public void setAclService(HibernateMutableAclService aclService)
public void setAclUpdateHelper(BambooAclUpdateHelper aclUpdateHelper)
public void setAcl(org.acegisecurity.acls.MutableAcl acl)
@NotNull public @NotNull Map<String,String> getGrantedUsersDisplayNames()
public String getNewUser()
public void setNewUser(String newUser)
public String getNewGroup()
public void setNewGroup(String newGroup)
public long getEntityId()
public void setEntityId(long entityId)
public String getAddUserPrincipal()
public void setAddUserPrincipal(String addUserPrincipal)
public String getAddGroupPrincipal()
public void setAddGroupPrincipal(String addGroupPrincipal)
public String getPrincipalType()
public void setPrincipalType(String principalType)
public boolean hasEditPermissionForUserName(String userName)
public boolean hasEditPermissionForUser(BambooUser user)
public boolean hasEditPermissionForGroup(String groupName)
public void setUserManager(com.atlassian.user.UserManager userManager)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.