Class CreateInProjectVoter
- java.lang.Object
-
- org.acegisecurity.vote.AbstractAclVoter
-
- org.acegisecurity.vote.AclEntryVoter
-
- com.atlassian.bamboo.security.acegi.vote.AbstractBambooAclEntryVoter
-
- com.atlassian.bamboo.security.acegi.vote.CreateInProjectVoter
-
- All Implemented Interfaces:
org.acegisecurity.vote.AccessDecisionVoter
public class CreateInProjectVoter extends AbstractBambooAclEntryVoter
Voter which may allow creation of a plan based on project permissions in which the plan is being created.If project level
BambooPermission.CREATE
permission is granted to the current user, this voter will vote to allow the operation. Otherwise, it will abstain from voting.Global
BambooPermission.CREATE
permission overrides project levelBambooPermission.CREATE
, so to correctly check permissions, make sureGlobalCreateVoter
is used subsequently.
-
-
Constructor Summary
Constructors Constructor Description CreateInProjectVoter(org.acegisecurity.acls.AclService aclService, String processConfigAttribute)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @Nullable Object
getDomainObjectInstance(@NotNull Object secureObject)
int
vote(org.acegisecurity.Authentication authentication, Object object, org.acegisecurity.ConfigAttributeDefinition config)
Copied and improved voting logic from the parent class.-
Methods inherited from class com.atlassian.bamboo.security.acegi.vote.AbstractBambooAclEntryVoter
getAclService, getInnerDomainObject, getObjectIdentityRetrievalStrategy, getRequirePermission, getSidRetrievalStrategy, setObjectIdentityRetrievalStrategy, setSidRetrievalStrategy, toString, vote
-
Methods inherited from class org.acegisecurity.vote.AclEntryVoter
getInternalMethod, getProcessConfigAttribute, setInternalMethod, supports
-
-
-
-
Constructor Detail
-
CreateInProjectVoter
public CreateInProjectVoter(org.acegisecurity.acls.AclService aclService, String processConfigAttribute)
-
-
Method Detail
-
vote
public int vote(org.acegisecurity.Authentication authentication, Object object, org.acegisecurity.ConfigAttributeDefinition config)
Description copied from class:AbstractBambooAclEntryVoter
Copied and improved voting logic from the parent class.- Specified by:
vote
in interfaceorg.acegisecurity.vote.AccessDecisionVoter
- Overrides:
vote
in classAbstractBambooAclEntryVoter
-
-