|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.directory.MultiValueAttributes
org.pf.directory.DirectoryObject
org.pf.directory.ldap.LDAPDirEntry
org.pf.directory.ldap.LDAPDirEntryContainer
public class LDAPDirEntryContainer
This special LDAP entry object is for containers that contain other LDAP entries.
| Field Summary |
|---|
| Fields inherited from class org.pf.directory.ldap.LDAPDirEntry |
|---|
ATTRNAME_CREATE_TIMESTAMP, ATTRNAME_CREATORS_NAME, ATTRNAME_MODIFIERS_NAME, ATTRNAME_MODIFY_TIMESTAMP, ATTRNAME_NAMING_CONTEXTS, ATTRNAME_SUBSCHEMA_SUBENTRY |
| Constructor Summary | |
|---|---|
LDAPDirEntryContainer(DistinguishedName dn)
Initialize the new instance with a DN. |
|
LDAPDirEntryContainer(LDAPDirEntry dirObject)
Initialize the new instance with the given entry data. |
|
LDAPDirEntryContainer(java.lang.String dn)
Initialize the new instance with a DN. |
|
| Method Summary | |
|---|---|
void |
addChild(LDAPDirEntry entry)
Adds the given entry as child of this container |
boolean |
contains(DistinguishedName dn)
Returns true if this container contains an entry with the given distinguished name. |
boolean |
contains(LDAPDirEntry entry)
Returns true if this container contains exactly the given object. |
LDAPSearchResult |
findAll(LDAPDirEntryFilter filter)
Returns all objects down the whole hierarchy starting from this object if they match the given filter. |
LDAPSearchResult |
findAll(LDAPDirEntryFilter filter,
int sizeLimit)
Returns all objects down the whole hierarchy starting from this object if they match the given filter. |
LDAPSearchResult |
findAll(java.lang.String filter)
Returns all objects down the whole hierarchy starting from this object if they match the given filter. |
LDAPSearchResult |
findAll(java.lang.String filter,
int sizeLimit)
Returns all objects down the whole hierarchy starting from this object if they match the given filter. |
LDAPDirEntry |
findChild(LDAPDirEntryFilter filter)
Returns the first immediate child that matches the given filter |
LDAPDirEntry |
findChild(java.lang.String filter)
Returns the first immediate child that matches the given filter |
LDAPSearchResult |
findChildren(LDAPDirEntryFilter filter)
Returns all immediate children that match the given filter |
LDAPSearchResult |
findChildren(LDAPDirEntryFilter filter,
int sizeLimit)
Returns all immediate children that match the given filter |
LDAPSearchResult |
findChildren(java.lang.String filter)
Returns all immediate children that match the given filter |
LDAPSearchResult |
findChildren(java.lang.String filter,
int sizeLimit)
Returns all immediate children that match the given filter |
int |
getChildCount()
Returns the number of children |
boolean |
isContainer()
Returns true if this entry is a container object that can contain other entries as children. |
boolean |
removeChild(DistinguishedName dn)
Removes the child that has the same DN as the given one. |
boolean |
removeChild(LDAPDirEntry entry)
Removes the given entry from this container's children |
java.lang.String |
toString()
Returns a string representation of this object |
| Methods inherited from class org.pf.directory.ldap.LDAPDirEntry |
|---|
getCreateTimestamp, getDistinguishedName, getDN, getModifyTimestamp, setAttribute, setCreateTimestamp, setModifyTimestamp, updateFrom, updateModifyTimestamp, updateTimestamps |
| Methods inherited from class org.pf.directory.DirectoryObject |
|---|
equals, getID, hashCode, matches |
| Methods inherited from class org.pf.directory.MultiValueAttributes |
|---|
addAttribute, addValue, addValue, getAttribute, getAttributeAsString, getAttributeAsStringArray, getAttributeNames, getAttributeValue, getCopyOfAttributes, getMetaData, getValue, getValues, hasAttribute, isEmpty, removeAttribute, removeValue, setMetaData, size |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LDAPDirEntryContainer(java.lang.String dn)
public LDAPDirEntryContainer(DistinguishedName dn)
public LDAPDirEntryContainer(LDAPDirEntry dirObject)
| Method Detail |
|---|
public void addChild(LDAPDirEntry entry)
entry - The new child to add (must not be null)public boolean removeChild(LDAPDirEntry entry)
entry - The child to remove (must not be null)public boolean removeChild(DistinguishedName dn)
dn - The dn of the child to remove (must not be null)public boolean contains(LDAPDirEntry entry)
entry - The entry to look forpublic boolean contains(DistinguishedName dn)
dn - The DN to look forpublic LDAPDirEntry findChild(LDAPDirEntryFilter filter)
filter - A filter that gets called for each child
public LDAPDirEntry findChild(java.lang.String filter)
throws MatchRuleParseException
filter - A filter complient to RFC 2254
MatchRuleParseException
public LDAPSearchResult findChildren(java.lang.String filter)
throws MatchRuleParseException
filter - A filter complient to RFC 2254
MatchRuleParseException - If the given filter cannot be parsedpublic LDAPSearchResult findChildren(LDAPDirEntryFilter filter)
filter - A filter that defines which objects match
public LDAPSearchResult findChildren(java.lang.String filter,
int sizeLimit)
throws MatchRuleParseException
filter - A filter complient to RFC 2254sizeLimit - Maximum number of entries to be collected ( 0 = unlimited )
MatchRuleParseException - If the given filter cannot be parsed
public LDAPSearchResult findChildren(LDAPDirEntryFilter filter,
int sizeLimit)
filter - A filter that defines which object matchessizeLimit - Maximum number of entries to be collected ( 0 = unlimited )
public LDAPSearchResult findAll(java.lang.String filter)
throws MatchRuleParseException
filter - A filter complient to RFC 2254
MatchRuleParseException - If the given filter cannot be parsedpublic LDAPSearchResult findAll(LDAPDirEntryFilter filter)
filter - A filter that defines which objects match
public LDAPSearchResult findAll(java.lang.String filter,
int sizeLimit)
throws MatchRuleParseException
filter - A filter complient to RFC 2254sizeLimit - Maximum number of entries to be collected ( 0 = unlimited )
MatchRuleParseException - If the given filter cannot be parsed
public LDAPSearchResult findAll(LDAPDirEntryFilter filter,
int sizeLimit)
filter - A filter the defines which objects matchsizeLimit - Maximum number of entries to be collected ( 0 = unlimited )public boolean isContainer()
Here it always returns true.
isContainer in class LDAPDirEntrypublic int getChildCount()
public java.lang.String toString()
toString in class LDAPDirEntry
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||