|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.pba.rbac.policies.ComplexSubtree
public class ComplexSubtree
This class stands for a subtree that has several roots: a union of several simple subtrees.
Field Summary | |
---|---|
protected Subtree[] |
dits
This is an array of all roots of this union of subtrees. |
protected java.lang.String[] |
objectClasses
This is an array of additional Object Classes restrictions (in addition to those specified within the dits). |
Constructor Summary | |
---|---|
ComplexSubtree()
This constructor builds a ComplexSubtree with no components. |
|
ComplexSubtree(Subtree[] dits,
java.lang.String[] objectClasses)
This constructor builds the union of the array of DIT subtrees, with additional object classes restriction, so even if the object class will be allowed by a certain subtree, it still can be sieved away by this object class specification. |
|
ComplexSubtree(java.util.Vector dits,
java.util.Vector objectClasses)
Does the same as the ComplexSubtree(Subtree [], String[]) constructor, but gets the arrays of subtrees and objectClasses as vectors. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
contains(Entry what)
This method tells whether or not the given entry belongs to this subtree. |
Subtree[] |
getSubtrees()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Subtree[] dits
protected java.lang.String[] objectClasses
Constructor Detail |
---|
public ComplexSubtree()
public ComplexSubtree(Subtree[] dits, java.lang.String[] objectClasses)
dits
- is the array of subtrees to join together; if null, or an empty
array, then no entries belong to it; pass it an array of one
Subtree based on null DN for this subtree to contain the whole worldobjectClasses
- is the array of objectClasses that the entries must be
of (must match all of the objectClasses); if it is null, entries with
any object Classes are accepted, if they match the subtree specificationpublic ComplexSubtree(java.util.Vector dits, java.util.Vector objectClasses)
dits
- is a Vector of Subtree objects, a union of which will be
represented by this object; this array can be nullobjectClasses
- is a vector of Strings, each representing the object
class of acceptable entries; this array can be nullMethod Detail |
---|
public Subtree[] getSubtrees()
public boolean contains(Entry what)
contains
in interface Subtree
what
- is the Entry that is tested; if ComplexSubtree is built with
ObjectClasses,
it will expect only LDAPEntry on input here (returns false otherwise)
public java.lang.String toString()
toString
in class java.lang.Object
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 |