Class UserAccessDecisionVoter
java.lang.Object
org.duracloud.account.security.vote.BaseAccessDecisionVoter
org.duracloud.account.security.vote.UserAccessDecisionVoter
- All Implemented Interfaces:
org.springframework.security.access.AccessDecisionVoter<org.aopalliance.intercept.MethodInvocation>
This class votes on calls to the DuracloudUserService.
- Author:
- Andrew Woods Date: 4/6/11
-
Field Summary
Fields inherited from interface org.springframework.security.access.AccessDecisionVoter
ACCESS_ABSTAIN, ACCESS_DENIED, ACCESS_GRANTED -
Constructor Summary
ConstructorsConstructorDescriptionUserAccessDecisionVoter(org.duracloud.account.db.repo.DuracloudRepoMgr repoMgr) -
Method Summary
Modifier and TypeMethodDescriptionprotected Class<?>This abstract method returns the class for which this voter has interest.protected intvoteImpl(org.springframework.security.core.Authentication authentication, org.aopalliance.intercept.MethodInvocation invocation, Collection<org.springframework.security.access.ConfigAttribute> attributes, Object[] methodArgs, org.duracloud.account.db.model.DuracloudUser user, SecuredRule securedRule, String role, SecuredRule.Scope scope) Methods inherited from class org.duracloud.account.security.vote.BaseAccessDecisionVoter
asString, castVote, getAllUserRightsForAcct, getCurrentUser, getRule, getUserRightsForAcct, getUserRoles, hasVote, numUsersForAccount, supports, supports, supportsTarget, vote, voteHasRole, voteMyUserId, voteMyUsername, voteRolesAreSufficientToUpdateOther, voteUserHasRoleOnAccount, voteUserHasRoleOnAcctToUpdateOthersRoles
-
Constructor Details
-
UserAccessDecisionVoter
public UserAccessDecisionVoter(org.duracloud.account.db.repo.DuracloudRepoMgr repoMgr)
-
-
Method Details
-
getTargetService
Description copied from class:BaseAccessDecisionVoterThis abstract method returns the class for which this voter has interest.- Specified by:
getTargetServicein classBaseAccessDecisionVoter- Returns:
- class of target service interface
-
voteImpl
protected int voteImpl(org.springframework.security.core.Authentication authentication, org.aopalliance.intercept.MethodInvocation invocation, Collection<org.springframework.security.access.ConfigAttribute> attributes, Object[] methodArgs, org.duracloud.account.db.model.DuracloudUser user, SecuredRule securedRule, String role, SecuredRule.Scope scope) - Specified by:
voteImplin classBaseAccessDecisionVoter
-