com.atlassian.bamboo.configuration
Class AbstractPermissionAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.bamboo.ww2.BambooActionSupport
          extended by com.atlassian.bamboo.ww2.actions.PlanActionSupport
              extended by com.atlassian.bamboo.ww2.actions.build.admin.BuildConfigurationSupport
                  extended by com.atlassian.bamboo.configuration.AbstractPermissionAction
All Implemented Interfaces:
ErrorCollection, BambooSessionAware, BuildConfigurationAware, NavigationAware, DomainObjectSecurityAware, GlobalReadSecurityAware, PlanAware, ProjectAware, ReturnUrlAware, com.atlassian.core.i18n.I18nTextProvider, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, com.uwyn.rife.continuations.ContinuableObject, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
BulkEditBuildPermissions, ConfigureBuildPermissions, ConfigureGlobalPermissions

public abstract class AbstractPermissionAction
extends BuildConfigurationSupport

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
BambooActionSupport.JSONStatus
 
Field Summary
protected  org.acegisecurity.acls.MutableAcl acl
           
protected  HibernateMutableAclService aclService
           
protected  BambooAclUpdateHelper aclUpdateHelper
           
protected  java.lang.String addGroupPrincipal
           
protected  java.lang.String addUserPrincipal
           
protected  java.util.List<java.lang.String> grantedGroups
           
protected  java.util.List<java.lang.String> grantedPermissions
           
protected  java.util.List<java.lang.String> grantedUsers
           
protected  java.lang.String newGroup
           
protected  java.lang.String newUser
           
protected  java.util.List<java.lang.String> nonProcessedGrantedPermissions
           
protected  java.lang.String principalType
           
 
Fields inherited from class com.atlassian.bamboo.ww2.actions.build.admin.BuildConfigurationSupport
BACK, uiConfigBean
 
Fields inherited from class com.atlassian.bamboo.ww2.actions.PlanActionSupport
buildNumber, resultsSummaryManager
 
Fields inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
administrationConfigurationManager, bambooPermissionManager, bambooUserManager, buildDefinitionManager, CONFIRM, cookieCutter, dashboardCachingManager, planExecutionManager, planManager, projectManager
 
Fields inherited from class com.opensymphony.xwork.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
AbstractPermissionAction()
           
 
Method Summary
abstract  org.acegisecurity.acls.MutableAcl getAcl()
           
 java.lang.String getAddGroupPrincipal()
           
 java.lang.String getAddUserPrincipal()
           
 java.util.List<java.lang.String> getGrantedGroups()
           
 java.util.List<java.lang.String> getGrantedPermissions()
           
 java.util.List<java.lang.String> getGrantedUsers()
           
 java.lang.String getNewGroup()
           
 java.lang.String getNewUser()
           
 java.lang.String getPrincipalType()
           
 boolean hasEditPermissionForGroup(java.lang.String groupName)
           
 boolean hasEditPermissionForUser(BambooUser user)
           
 boolean hasEditPermissionForUserName(java.lang.String userName)
           
protected  void populatePermissionLists()
           
 void setAcl(org.acegisecurity.acls.MutableAcl acl)
           
 void setAclService(HibernateMutableAclService aclService)
           
 void setAclUpdateHelper(BambooAclUpdateHelper aclUpdateHelper)
           
 void setAddGroupPrincipal(java.lang.String addGroupPrincipal)
           
 void setAddUserPrincipal(java.lang.String addUserPrincipal)
           
 void setGrantedGroups(java.util.List<java.lang.String> grantedGroups)
           
 void setGrantedPermissions(java.util.List<java.lang.String> grantedPermissions)
           
 void setGrantedUsers(java.util.List<java.lang.String> grantedUsers)
           
 void setNewGroup(java.lang.String newGroup)
           
 void setNewUser(java.lang.String newUser)
           
 void setPrincipalType(java.lang.String principalType)
           
protected  void validateSaveAllPermissions(java.util.List<java.lang.String> permissions)
           
 
Methods inherited from class com.atlassian.bamboo.ww2.actions.build.admin.BuildConfigurationSupport
getBuildConfiguration, getBuildConfigurationAsXml, getSecuredDomainObject, getUiConfigBean, isSaved, savePlan, setBuildConfiguration, setEventManager, setSaved, setUiConfigBean
 
Methods inherited from class com.atlassian.bamboo.ww2.actions.PlanActionSupport
buildWebPanelContext, getBuildKey, getBuildNumber, getCurrentlyBuildingPlans, getErrorAccessor, getPlan, getPlanKey, getPlanResultKey, getProject, getResultsSummaryManager, getTypedPlanResultKey, planNotFound, setBuildKey, setBuildNumber, setErrorAccessor, setPlan, setPlanExecutionManager, setPlanKey, setPlanResultKey, setResultsSummaryManager
 
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, checkFieldXssSafety, createFieldValidator, doDefault, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, execute, getAdministrationConfiguration, getBamboo, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUserManager, getBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentFormTheme, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDescriptionFromLabelKey, getFlushedErrorMessages, getFormattedActionErrors, getFormattedActionMessages, getFormattedErrorMessages, getInstanceName, getJobEquiv, getJsonObject, getNavigationContext, getNavigationUrl, getNumberOfCurrentlyBuildingPlans, getPlan, getPlanManager, getPluginAccessor, getReturnUrl, getSessionUser, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, getTextWithArgs, getTotalErrors, getUser, getValidatorContext, getWebFragmentsContextMap, getWebItemsForSection, getWebPanelContext, getWebSectionsForLocation, hasAdminPermission, hasAnyErrors, hasBuilds, hasGlobalAdminPermission, hasGlobalPermission, hasKey, hasPlanPermission, hasPlanPermission, hasRestrictedAdminPermission, isCheckboxSetInAction, isEnableJavascript, isEnableSignup, isRestrictedAdminEnabled, isSelectFieldAndNull, renderFreemarkerTemplate, setAdministrationConfigurationManager, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDashboardCachingManager, setEnableJavascript, setErrorMessages, setI18nBeanFactory, setJobEquiv, setNavigationContext, setPlanManager, setPluginAccessor, setProjectManager, setReturnUrl, setWebInterfaceManager
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionError, addActionMessage, addFieldError, clearErrorsAndMessages, clone, doInput, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, pause, setActionErrors, setActionMessages, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.ww2.aware.PlanAware
getPlan, setPlan
 
Methods inherited from interface com.atlassian.bamboo.utils.error.ErrorCollection
getErrorMessages, getErrors, getFieldErrors
 

Field Detail

aclService

protected HibernateMutableAclService aclService

aclUpdateHelper

protected BambooAclUpdateHelper aclUpdateHelper

acl

protected org.acegisecurity.acls.MutableAcl acl

grantedPermissions

protected java.util.List<java.lang.String> grantedPermissions

nonProcessedGrantedPermissions

protected java.util.List<java.lang.String> nonProcessedGrantedPermissions

grantedUsers

protected java.util.List<java.lang.String> grantedUsers

grantedGroups

protected java.util.List<java.lang.String> grantedGroups

newUser

protected java.lang.String newUser

newGroup

protected java.lang.String newGroup

addUserPrincipal

protected java.lang.String addUserPrincipal

addGroupPrincipal

protected java.lang.String addGroupPrincipal

principalType

protected java.lang.String principalType
Constructor Detail

AbstractPermissionAction

public AbstractPermissionAction()
Method Detail

populatePermissionLists

protected void populatePermissionLists()

validateSaveAllPermissions

protected void validateSaveAllPermissions(java.util.List<java.lang.String> permissions)

getAcl

@Nullable
public abstract org.acegisecurity.acls.MutableAcl getAcl()

setAclService

public void setAclService(HibernateMutableAclService aclService)

setAclUpdateHelper

public void setAclUpdateHelper(BambooAclUpdateHelper aclUpdateHelper)

setAcl

public void setAcl(org.acegisecurity.acls.MutableAcl acl)

getGrantedPermissions

public java.util.List<java.lang.String> getGrantedPermissions()

setGrantedPermissions

public void setGrantedPermissions(java.util.List<java.lang.String> grantedPermissions)

getGrantedUsers

public java.util.List<java.lang.String> getGrantedUsers()

setGrantedUsers

public void setGrantedUsers(java.util.List<java.lang.String> grantedUsers)

getGrantedGroups

public java.util.List<java.lang.String> getGrantedGroups()

setGrantedGroups

public void setGrantedGroups(java.util.List<java.lang.String> grantedGroups)

getNewUser

public java.lang.String getNewUser()

setNewUser

public void setNewUser(java.lang.String newUser)

getNewGroup

public java.lang.String getNewGroup()

setNewGroup

public void setNewGroup(java.lang.String newGroup)

getAddUserPrincipal

public java.lang.String getAddUserPrincipal()

setAddUserPrincipal

public void setAddUserPrincipal(java.lang.String addUserPrincipal)

getAddGroupPrincipal

public java.lang.String getAddGroupPrincipal()

setAddGroupPrincipal

public void setAddGroupPrincipal(java.lang.String addGroupPrincipal)

getPrincipalType

public java.lang.String getPrincipalType()

setPrincipalType

public void setPrincipalType(java.lang.String principalType)

hasEditPermissionForUserName

public boolean hasEditPermissionForUserName(java.lang.String userName)

hasEditPermissionForUser

public boolean hasEditPermissionForUser(BambooUser user)

hasEditPermissionForGroup

public boolean hasEditPermissionForGroup(java.lang.String groupName)


Copyright © 2011 Atlassian. All Rights Reserved.