public class LDAPHierarchicObject extends LDAPHierarchicObjectDMW
The object will maintain a Distinguished Name (DN) value as well. For LDAP, DNs are composed of tuples as well, but, they are in reverse order from FQNs, they start at the leaf of a hierarchy and proceed towards the root. Also, they use the name of the naming attribute in place of the CLASS (as in the FQN). However, we make things a bit easier on ourselves by provide unique naming attributes for every class so that, on the basis of the naming attribute, we can determine the type of class to instantiate when we pull an object from the directory.
For example, if we have an object with the following FQN: NF:nodes/MF:ab/MF:67/MF:b3 The corresponding DN is: mfid=b3,mfid=67,mfid=ab,nfid=nodes
When the object associated with this DN is read from the directory, we simply grab the first name attribute value and see what class it's associated with and instantiate that Dark Matter Wrapper object
parentcore| Modifier | Constructor and Description |
|---|---|
|
LDAPHierarchicObject() |
protected |
LDAPHierarchicObject(LDAPHierarchicObjectDMO obj,
ClassDefinition cd) |
| Modifier and Type | Method and Description |
|---|---|
RepositoryIF |
getRepository() |
String |
getRepositoryID()
Returns the name of this object in the repository.
|
void |
resetParent(HierarchicObject newParent)
This method rehomes a branch of hierarchic objects to sit beneath the specified parent.
|
void |
setParentObject(HierarchicObject p)
This method sets the parent object for this object and reconstructs the FQN
as appropriate.
|
void |
setParentObject(HierarchicObject p,
boolean buildFQN)
This method sets the parent object for this object and reconstructs the FQN
as appropriate.
|
void |
setRepository(RepositoryIF r) |
void |
setRepositoryID(String id)
Sets the name of this object as used in the repository.
|
cloneIt, equals, getDMO, getFQN, getModificationRecorder, getObjectName, getObjectNameAttribute, hashCode, remFQN, setFQN, setFQNaddSubComponent, compareTo, get, getName, getParentObject, getSubComps, removeSubComponent, removeSubcomponents, saveToBuffer, saveToBuffer, saveToFile, saveToFile, setSort, sizegetFile, getLineNumber, remFile, remLineNumber, setFile, setFile, setLineNumber, setLineNumberaddAux, applyModifier, getBackRefs, getConstructionClass, getConstructionClassInfo, getConstructionClassName, getDmcObject, getObjectClass, getReferringObjects, getReferringObjectsViaAttribute, hasAux, isReferenced, referenceCount, removeAux, resolveReferences, resolveReferences, serializeIt, setDmcObject, toJSON, toOIF, toOIF, toPersistentOIF, toString, youAreDeletedgetDeleted, getModifier, setDeleted, setModifierprotected LDAPHierarchicObject(LDAPHierarchicObjectDMO obj, ClassDefinition cd)
public LDAPHierarchicObject()
public void setParentObject(HierarchicObject p) throws ResultException, DmcValueException
setParentObject in class HierarchicObjectp - the parent object.ResultException - if there's no value for the naming attribute.DmcValueExceptionpublic void setParentObject(HierarchicObject p, boolean buildFQN) throws ResultException, DmcValueException
setParentObject in class HierarchicObjectp - the parent object.buildFQN - Indicates if we need to reset this object's FQNs based on the parent.ResultException - if there's no value for the naming attribute.DmcValueExceptionpublic void resetParent(HierarchicObject newParent) throws ResultException, DmcValueException
resetParent in class HierarchicObjectnewParent - DmcValueExceptionResultExceptionpublic String getRepositoryID() throws ResultException
ResultExceptionpublic void setRepositoryID(String id)
id - public void setRepository(RepositoryIF r)
public RepositoryIF getRepository()
Copyright © 2023. All rights reserved.