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()
Deprecated.
since 5.4.3. Use
hasAccess(info.magnolia.cms.security.User) directly. |
String |
getSuperuserRole() |
boolean |
hasAccess(User user) |
void |
setRoles(Collection<String> roles) |
void |
setSuperuserRole(String superuserRole) |
@Deprecated public Collection<String> getRoles()
hasAccess(info.magnolia.cms.security.User)
directly.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–2017 Magnolia International Ltd.. All rights reserved.