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
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 level BambooPermission.CREATE, so to
correctly check permissions, make sure GlobalCreateVoter is used subsequently.
-
Field Summary
Fields inherited from interface org.acegisecurity.vote.AccessDecisionVoter
ACCESS_ABSTAIN, ACCESS_DENIED, ACCESS_GRANTED -
Constructor Summary
ConstructorsConstructorDescriptionCreateInProjectVoter(org.acegisecurity.acls.AclService aclService, String processConfigAttribute) -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable ObjectgetDomainObjectInstance(@NotNull Object secureObject) intvote(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, voteMethods inherited from class org.acegisecurity.vote.AclEntryVoter
getInternalMethod, getProcessConfigAttribute, setInternalMethod, supportsMethods inherited from class org.acegisecurity.vote.AbstractAclVoter
getProcessDomainObjectClass, setProcessDomainObjectClass, supports
-
Constructor Details
-
CreateInProjectVoter
public CreateInProjectVoter(org.acegisecurity.acls.AclService aclService, String processConfigAttribute)
-
-
Method Details
-
vote
public int vote(org.acegisecurity.Authentication authentication, Object object, org.acegisecurity.ConfigAttributeDefinition config) Description copied from class:AbstractBambooAclEntryVoterCopied and improved voting logic from the parent class.- Specified by:
votein interfaceorg.acegisecurity.vote.AccessDecisionVoter- Overrides:
votein classAbstractBambooAclEntryVoter
-
getDomainObjectInstance
- Overrides:
getDomainObjectInstancein classorg.acegisecurity.vote.AbstractAclVoter
-