@Immutable public class PrivilegeImpl extends Object implements Privilege
JCR_ADD_CHILD_NODES, JCR_ALL, JCR_LIFECYCLE_MANAGEMENT, JCR_LOCK_MANAGEMENT, JCR_MODIFY_ACCESS_CONTROL, JCR_MODIFY_PROPERTIES, JCR_NODE_TYPE_MANAGEMENT, JCR_READ, JCR_READ_ACCESS_CONTROL, JCR_REMOVE_CHILD_NODES, JCR_REMOVE_NODE, JCR_RETENTION_MANAGEMENT, JCR_VERSION_MANAGEMENT, JCR_WRITE
Constructor and Description |
---|
PrivilegeImpl(Session session,
String name,
Privilege[] declaredPrivileges)
Creates new instance of the privilege object.
|
PrivilegeImpl(Session session,
String name,
Privilege[] declaredPrivileges,
boolean isAbstract)
Creates new instance of the privilege object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Privilege p)
Tests given privilege.
|
boolean |
equals(Object other) |
Privilege[] |
getAggregatePrivileges() |
Privilege[] |
getDeclaredAggregatePrivileges() |
String |
getName() |
int |
hashCode() |
boolean |
isAbstract() |
boolean |
isAggregate() |
String |
localName()
The name without prefix.
|
String |
toString() |
public PrivilegeImpl(Session session, String name, Privilege[] declaredPrivileges)
session
- session under access controlname
- the name of privilege.declaredPrivileges
- list of privileges aggregated by this object.public PrivilegeImpl(Session session, String name, Privilege[] declaredPrivileges, boolean isAbstract)
session
- the session under controlname
- the name of privilege.declaredPrivileges
- list of privileges aggregated by this object.isAbstract
- true if this is abstract privilege.public String localName()
public boolean isAbstract()
isAbstract
in interface Privilege
public boolean isAggregate()
isAggregate
in interface Privilege
public Privilege[] getDeclaredAggregatePrivileges()
getDeclaredAggregatePrivileges
in interface Privilege
public Privilege[] getAggregatePrivileges()
getAggregatePrivileges
in interface Privilege
public boolean contains(Privilege p)
p
- the given privilege.Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.