org.apache.shiro.authz.permission
Class DomainPermission
java.lang.Object
org.apache.shiro.authz.permission.WildcardPermission
org.apache.shiro.authz.permission.DomainPermission
- All Implemented Interfaces:
- Serializable, Permission
public class DomainPermission
- extends WildcardPermission
Provides a base Permission class from which type-safe/domain-specific subclasses may extend. Can be used
as a base class for JPA/Hibernate persisted permissions that wish to store the parts of the permission string
in separate columns (e.g. 'domain', 'actions' and 'targets' columns), which can be used in querying
strategies.
- Since:
- 1.0
- See Also:
- Serialized Form
DomainPermission
public DomainPermission()
- Creates a domain permission with *all* actions for *all* targets;
DomainPermission
public DomainPermission(String actions)
DomainPermission
public DomainPermission(String actions,
String targets)
DomainPermission
protected DomainPermission(Set<String> actions,
Set<String> targets)
setParts
protected void setParts(String domain,
Set<String> actions,
Set<String> targets)
getDomain
protected String getDomain(Class<? extends DomainPermission> clazz)
getDomain
public String getDomain()
setDomain
protected void setDomain(String domain)
getActions
public Set<String> getActions()
setActions
protected void setActions(Set<String> actions)
getTargets
public Set<String> getTargets()
setTargets
protected void setTargets(Set<String> targets)
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.