|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.pba.rbac.policies.DITSubtree
public class DITSubtree
This is the object that represents a subtree of entries in LDAP DIT. It can specify a subtree, excluding subtrees, and does object class match.
Field Summary | |
---|---|
protected Subtree[] |
exclusive
This is an array of exclusion subtrees. |
protected int |
max
|
protected int |
min
|
protected java.lang.String[] |
objectclasses
This is an array of object classes, allowed in this subtree. |
protected LDAPDNPrincipal |
subtree
This is the subtree root node. |
Constructor Summary | |
---|---|
protected |
DITSubtree()
|
|
DITSubtree(LDAPDNPrincipal subtree,
int min,
int max,
java.lang.String[] objectClass,
Subtree[] exclude)
This constructor can build an object out of the full subtree specification. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
contains(Entry e)
This method checks whether this Subtree contains a given Entry. |
boolean |
contains(LDAPEntry entry)
This method tests whether or not the given entry belongs to this subtree. |
void |
excludeEntry(Entry e)
This method excludes the specified Entry from the Subtree, if it is an LDAPEntry; otherwise does nothing. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected LDAPDNPrincipal subtree
protected int min
protected int max
protected java.lang.String[] objectclasses
protected Subtree[] exclusive
Constructor Detail |
---|
protected DITSubtree()
public DITSubtree(LDAPDNPrincipal subtree, int min, int max, java.lang.String[] objectClass, Subtree[] exclude)
subtree
- is the LDAP DN of the root node of the subtree; if null,
means "any DN is a subtree": the Worldmin
- is the integer lower margin of the subtree; cannot be less than
0; see also maxmax
- is the integer higher margin of the subtree; together with min
they define the minimum and maximum length of the matching DN,
relative
to the subtree DN; value of -1 means "unlimited length", no other
negative values
are accepted for maxobjectClass
- is the array of LDAP object classes that the subtree
entry can be of; if null, no restrictions on the objectClass are
appliedexclude
- is an array of subtrees that an entry cannot be a part of;
if null, no subtrees are excludedMethod Detail |
---|
public boolean contains(LDAPEntry entry)
entry
- is the LDAPEntry; it can tell the DN and the objectClass of
the entry
public boolean contains(Entry e)
contains
in interface Subtree
e
- - the Entry to check
public java.lang.String toString()
toString
in class java.lang.Object
public void excludeEntry(Entry e)
public java.lang.Object clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |