public class ConfiguredAccessDefinition extends Object implements AccessDefinition
DEFAULT_SUPERUSER_ROLE
Constructor and Description |
---|
ConfiguredAccessDefinition() |
Modifier and Type | Method and Description |
---|---|
void |
addRole(String roles) |
Collection<String> |
getRoles() |
String |
getSuperuserRole() |
boolean |
hasAccess(User user) |
void |
setRoles(Collection<String> roles) |
void |
setSuperuserRole(String superuserRole) |
public Collection<String> getRoles()
getRoles
in interface AccessDefinition
public void setRoles(Collection<String> roles)
public void addRole(String roles)
public boolean hasAccess(User user)
hasAccess
in interface AccessDefinition
public void setSuperuserRole(String superuserRole)
public String getSuperuserRole()
getSuperuserRole
in interface AccessDefinition
Copyright © 2003–2019 Magnolia International Ltd.. All rights reserved.