public class ModuleAdminVoter extends Object implements org.springframework.security.access.AccessDecisionVoter
ConfigAttribute.getAttribute() matches MODULE_ADMIN
If it is called to vote, this voter will only vote yes, if the user has
the admin role for the specified module.
Note that the moduleName must be the first argument to the called method| Modifier and Type | Field and Description |
|---|---|
static String |
MODULE_ADMIN_ATTRIBUTE |
| Constructor and Description |
|---|
ModuleAdminVoter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
supports(Class clazz) |
boolean |
supports(org.springframework.security.access.ConfigAttribute attribute) |
int |
vote(org.springframework.security.core.Authentication authentication,
Object object,
Collection config) |
public static final String MODULE_ADMIN_ATTRIBUTE
public boolean supports(org.springframework.security.access.ConfigAttribute attribute)
supports in interface org.springframework.security.access.AccessDecisionVoterpublic boolean supports(Class clazz)
supports in interface org.springframework.security.access.AccessDecisionVoterpublic int vote(org.springframework.security.core.Authentication authentication,
Object object,
Collection config)
vote in interface org.springframework.security.access.AccessDecisionVoterCopyright © 2007-2017 Ikasan. All Rights Reserved.