public class VoterBasedConfiguredAccessDefinition extends Object implements AccessDefinition
DEFAULT_SUPERUSER_ROLE
Constructor and Description |
---|
VoterBasedConfiguredAccessDefinition() |
Modifier and Type | Method and Description |
---|---|
void |
addVoter(Voter voter) |
Collection<String> |
getRoles()
Deprecated.
since 5.4.3 Use
RoleBaseVoter.getRoles() instead. |
String |
getSuperuserRole() |
List<Voter> |
getVoters() |
Voting |
getVoting() |
boolean |
hasAccess(User user) |
void |
setSuperuserRole(String superuserRole) |
void |
setVoters(List<Voter> voters) |
void |
setVoting(Voting voting) |
public VoterBasedConfiguredAccessDefinition()
@Deprecated public Collection<String> getRoles()
RoleBaseVoter.getRoles()
instead.getRoles
in interface AccessDefinition
public boolean hasAccess(User user)
hasAccess
in interface AccessDefinition
public String getSuperuserRole()
getSuperuserRole
in interface AccessDefinition
public void setSuperuserRole(String superuserRole)
public void addVoter(Voter voter)
public Voting getVoting()
public void setVoting(Voting voting)
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.