public class AccessRight
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SINGLE_SCOPE
Constant indicating the scope of the ACI is to be only one level of
the logical tree.
|
static java.lang.String |
SUBTREE_SCOPE
Constant indicating the scope of the ACI is to be the current level and
all sub-levels of the logical tree.
|
| Constructor and Description |
|---|
AccessRight()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AccessRight |
clone() |
java.lang.String |
getFilter()
Returns the ACI's LDAP search filter, if any.
|
java.lang.String |
getName()
Returns a descriptive name or label for the ACI.
|
java.util.Collection<Permission> |
getPermissions()
Returns the collection of permissions that define the level of access to the
target.
|
java.util.Collection<java.lang.String> |
getPrincipals()
Returns the set of principals that the permissions apply to.
|
java.util.Collection<java.lang.String> |
getRoles()
Returns a Collection String DN that point to the groups whose
members are authorized by the ACI this AccessRight represents.
|
java.lang.String |
getScope()
Returns the scope of the ACI.
|
java.lang.String |
getTarget()
Returns the target entity, or set of entities, this ACI is protecting.
|
boolean |
isForAllPrincipals()
Returns true if the permissions apply to everyone in the system.
|
void |
setFilter(java.lang.String filter)
Sets the ACI's LDAP search filter.
|
void |
setIsForAllPrincipals(boolean isForAllPrincipals)
Toggles whether the permissions apply to everyone in the system.
|
void |
setName(java.lang.String name)
Changes the descriptive name or label of the ACI.
|
void |
setScope(java.lang.String scope)
Changes the scope of the ACI.
|
void |
setTarget(java.lang.String target)
Changes the target entity, or set of entities, this ACI is protecting.
|
java.lang.String |
toString() |
public static final java.lang.String SINGLE_SCOPE
public static final java.lang.String SUBTREE_SCOPE
public java.lang.String getName()
public void setName(java.lang.String name)
name - String name for the ACI.public java.lang.String getTarget()
public void setTarget(java.lang.String target)
target - description of the target entity, or entities.public java.util.Collection<Permission> getPermissions()
Permissionpublic java.util.Collection<java.lang.String> getRoles()
public java.util.Collection<java.lang.String> getPrincipals()
public boolean isForAllPrincipals()
public void setIsForAllPrincipals(boolean isForAllPrincipals)
isForAllPrincipals - true if the access right applies to everyone (anyone).public java.lang.String getScope()
public void setScope(java.lang.String scope)
scope - Enumeration of scope levels, SINGLE_SCOPE, SUBTREE_SCOPE.public java.lang.String getFilter()
public void setFilter(java.lang.String filter)
filter - an RFC 2254 LDAP search filter.public AccessRight clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object