|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ca.jcs.ObjectInfo
public class ObjectInfo
This class contains all the information important to the JCS framework for a target object, derived from its Distinguished Name (DN).
| Constructor Summary | |
|---|---|
protected |
ObjectInfo()
Use BaseConnector.createObjectInfo() instead. |
| Method Summary | |
|---|---|
Object |
clone()
|
ObjectInfo |
copy(Rdn newConnRdn)
Clone this object info changing its most deeply nested rdn. |
void |
copyTo(ObjectInfo to)
Copy the state of this object into to. |
Name |
getConnectorDn()
Return connector-speak Distinguished Name (DN) for target object. |
String |
getConnectorNativeName()
|
VirtualContainer |
getContainer()
|
String |
getContainerName()
Return Virtual Container name for target object, or null if not relevant. |
LdapDN |
getLdapDn()
Return LDAP-speak Distinguished Name (DN) for target object. |
String |
getName()
Return name of target object. |
MetaObjectClassMapping |
getObjectClassMapping()
Return all information cached for target object's class. |
boolean |
isConnectorDnFromCache()
True if connector DN came from cache, and therefore may be inaccurate. |
boolean |
isConnectorLevel()
Returns true if target object is the connector itself, rather then a child object nested under it. |
boolean |
isContainerRef()
Returns true if the target object is a "Virtual Container". |
boolean |
isRenamed()
Used to flag original husk when an object's name is changed by doModifyRn(), effects subtle aspects of doDelete()'s behaviour when true (in particular associations based on keys other then the object's naming attribute - if such associations are supported, should not be cleaned up). |
protected void |
recalcNameFromConnectorDn(Name connectorDn)
Recalculates object name based on connector DN. |
void |
setConnectorDn(Name connectorDn)
Store provided connector-speak DN, paying particular attention to CachedLdapDN instances
for which isConnectorDnFromCache() will return true. |
void |
setConnectorLevel(boolean connectorLevel)
|
void |
setConnectorNativeName(String connectorNativeName)
Some connectors have a string native representation which doesn't use DN syntax in which case this value can be used. |
void |
setContainer(VirtualContainer container)
|
void |
setContainerName(String containerName)
|
void |
setLdapDn(LdapDN ldapDn)
|
void |
setName(String name)
|
void |
setObjectClassMapping(MetaObjectClassMapping objectClassMapping)
|
void |
setRenamed(boolean renamed)
|
String |
toString()
Returns string containing target object's class and name. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected ObjectInfo()
BaseConnector.createObjectInfo() instead.
| Method Detail |
|---|
public boolean isConnectorLevel()
public void setConnectorLevel(boolean connectorLevel)
public LdapDN getLdapDn()
public void setLdapDn(LdapDN ldapDn)
public Name getConnectorDn()
public void setConnectorDn(Name connectorDn)
CachedLdapDN instances
for which isConnectorDnFromCache() will return true.
connectorDn - protected void recalcNameFromConnectorDn(Name connectorDn)
connectorDn - public String getConnectorNativeName()
public void setConnectorNativeName(String connectorNativeName)
BaseConnector.convertConnectorDNToNativeName(Name) which
will need to be overridden when this method is.
public boolean isConnectorDnFromCache()
public String getName()
public void setName(String name)
public String getContainerName()
public void setContainerName(String containerName)
public MetaObjectClassMapping getObjectClassMapping()
public void setObjectClassMapping(MetaObjectClassMapping objectClassMapping)
public VirtualContainer getContainer()
public void setContainer(VirtualContainer container)
public boolean isRenamed()
public void setRenamed(boolean renamed)
public String toString()
toString in class Objectpublic boolean isContainerRef()
public Object clone()
clone in class Object
public ObjectInfo copy(Rdn newConnRdn)
throws InvalidNameException
InvalidNameExceptionpublic void copyTo(ObjectInfo to)
to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||