Class AbstractPermissionAction

    • Field Detail

      • 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 Detail

      • AbstractPermissionAction

        public AbstractPermissionAction()
    • Method Detail

      • 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()
      • 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)