Class AbstractPermissionAction

java.lang.Object
com.opensymphony.xwork2.ActionSupport
com.atlassian.bamboo.ww2.BambooActionSupport
com.atlassian.bamboo.configuration.AbstractPermissionAction
All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, NavigationAware, DomainObjectSecurityAware, GlobalReadSecurityAware, ReturnUrlAware, com.atlassian.core.i18n.I18nTextProvider, com.atlassian.struts.TextProvider, com.atlassian.struts.ValidationAware, com.opensymphony.xwork.ValidationAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable
Direct Known Subclasses:
BulkEditBuildPermissions

public abstract class AbstractPermissionAction extends BambooActionSupport
See Also:
  • Field Details

    • aclService

      protected HibernateMutableAclService aclService
    • aclUpdateHelper

      protected BambooAclUpdateHelper aclUpdateHelper
    • userManager

      protected com.atlassian.user.UserManager userManager
    • acl

      protected org.acegisecurity.acls.MutableAcl acl
    • grantedPermissions

      protected List<String> grantedPermissions
    • nonProcessedGrantedPermissions

      protected List<String> nonProcessedGrantedPermissions
    • grantedUsers

      protected List<String> grantedUsers
    • grantedGroups

      protected List<String> grantedGroups
    • newUser

      protected String newUser
    • newGroup

      protected String newGroup
    • addUserPrincipal

      protected String addUserPrincipal
    • addGroupPrincipal

      protected String addGroupPrincipal
    • principalType

      protected String principalType
    • entityId

      protected long entityId
  • Constructor Details

    • AbstractPermissionAction

      public AbstractPermissionAction()
  • Method Details

    • getAcl

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

      @NotNull public abstract @NotNull String getEntityName()
    • getEntityType

      @NotNull public abstract @NotNull Class<?> getEntityType()
      Class of the entity on which the permissions are being modified. Will be used to construct ObjectIdentity.

      This method doesn't need to return the effective ACL entity class, as it will be proxied via ObjectIdentityUtils.getAclClassForEntityClass(Class).

    • getEntityAclType

      @NotNull public @NotNull Class<?> getEntityAclType()
    • getEditablePermissions

      @NotNull public abstract @NotNull Map<String,String> getEditablePermissions()
    • getMinimalPermission

      public BambooPermission getMinimalPermission()
      Minimal permission to grant when adding new principal.
    • showAdminPermissions

      public boolean showAdminPermissions()
    • populatePermissionLists

      protected void populatePermissionLists()
    • hasParameters

      protected boolean hasParameters()
    • updateAcl

      protected void updateAcl(org.acegisecurity.acls.MutableAcl acl)
    • bulkUpdateAcls

      protected void bulkUpdateAcls(org.acegisecurity.acls.MutableAcl acl, List<String> permissions)
    • saveAllPermissions

      protected String saveAllPermissions()
    • doInputPrincipal

      public String doInputPrincipal()
    • setAclService

      public void setAclService(HibernateMutableAclService aclService)
    • setAclUpdateHelper

      public void setAclUpdateHelper(BambooAclUpdateHelper aclUpdateHelper)
    • setAcl

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

      public List<String> getGrantedPermissions()
    • setGrantedPermissions

      public void setGrantedPermissions(List<String> grantedPermissions)
    • getGrantedUsers

      public List<String> getGrantedUsers()
    • setGrantedUsers

      public void setGrantedUsers(List<String> grantedUsers)
    • getGrantedUsersDisplayNames

      @NotNull public @NotNull Map<String,String> getGrantedUsersDisplayNames()
    • getGrantedGroups

      public List<String> getGrantedGroups()
    • setGrantedGroups

      public void setGrantedGroups(List<String> grantedGroups)
    • getNewUser

      public String getNewUser()
    • setNewUser

      public void setNewUser(String newUser)
    • getNewGroup

      public String getNewGroup()
    • setNewGroup

      public void setNewGroup(String newGroup)
    • getEntityId

      public long getEntityId()
    • setEntityId

      public void setEntityId(long entityId)
    • getAddUserPrincipal

      public String getAddUserPrincipal()
    • setAddUserPrincipal

      public void setAddUserPrincipal(String addUserPrincipal)
    • getAddGroupPrincipal

      public String getAddGroupPrincipal()
    • setAddGroupPrincipal

      public void setAddGroupPrincipal(String addGroupPrincipal)
    • getPrincipalType

      public String getPrincipalType()
    • setPrincipalType

      public void setPrincipalType(String principalType)
    • hasEditPermissionForUserName

      public boolean hasEditPermissionForUserName(String userName)
    • hasEditPermissionForUser

      public boolean hasEditPermissionForUser(BambooUser user)
    • hasEditPermissionForGroup

      public boolean hasEditPermissionForGroup(String groupName)
    • setUserManager

      public void setUserManager(com.atlassian.user.UserManager userManager)