Class EntityDataReference
- java.lang.Object
-
- com.priint.pubserver.plugin.entitydata.EntityDataReference
-
- All Implemented Interfaces:
PersistentData,java.io.Serializable
public class EntityDataReference extends java.lang.Object implements PersistentData
Data object for entity type EntityDataReference
EntityDataReference data are used as parentRef field in ContentMetaData
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EntityDataReference()EntityDataReference(java.lang.String identifier, java.lang.String entityModelId, java.lang.String entityId, Entity.DataClass entityClassName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Entity.DataClassgetEntityClassName()Gets the entityClassName of this entityDataReferencejava.lang.StringgetEntityId()Gets the entityId of this entityDataReferencejava.lang.StringgetEntityModelId()Gets the entityModelId of this entityDataReferencejava.lang.StringgetIdentifier()Gets the identifier of this entityDataReferenceEntityDatagetReferencedObject()Gets the referenced object - if already attached.EntityDatagetReferencedObject(java.lang.String sessionID)Gets the referenced object.voidsetEntityClassName(Entity.DataClass entityClassName)Sets the entityClassName property of this entityDataReferencevoidsetEntityId(java.lang.String entityId)Sets the entityId property of this entityDataReferencevoidsetEntityModelId(java.lang.String entityModelId)Sets the entityModelId property of this entityDataReferencevoidsetIdentifier(java.lang.String identifier)Sets the identifier property of this entityDataReferencejava.lang.StringtoString()
-
-
-
Constructor Detail
-
EntityDataReference
public EntityDataReference()
-
EntityDataReference
public EntityDataReference(java.lang.String identifier, java.lang.String entityModelId, java.lang.String entityId, Entity.DataClass entityClassName)
-
-
Method Detail
-
getIdentifier
public java.lang.String getIdentifier()
Gets the identifier of this entityDataReference
- Specified by:
getIdentifierin interfacePersistentData- Returns:
- the identifier of this entityDataReference
-
setIdentifier
public void setIdentifier(java.lang.String identifier)
Sets the identifier property of this entityDataReference
- Parameters:
identifier-
-
getEntityModelId
public java.lang.String getEntityModelId()
Gets the entityModelId of this entityDataReference
- Returns:
- the entityModelId of this entityDataReference
-
setEntityModelId
public void setEntityModelId(java.lang.String entityModelId)
Sets the entityModelId property of this entityDataReference
- Parameters:
entityModelId-
-
getEntityId
public java.lang.String getEntityId()
Gets the entityId of this entityDataReference
- Returns:
- the entityId of this entityDataReference
-
setEntityId
public void setEntityId(java.lang.String entityId)
Sets the entityId property of this entityDataReference
- Parameters:
entityId-
-
getReferencedObject
public EntityData getReferencedObject()
Gets the referenced object - if already attached. Otherwise returns null.Use
getReferencedObject(String)method to read referenced object from content system if not already attached.- Returns:
- referenced object or null
-
getEntityClassName
public Entity.DataClass getEntityClassName()
Gets the entityClassName of this entityDataReference
- Returns:
- the entityClassName of this entityDataReference
-
setEntityClassName
public void setEntityClassName(Entity.DataClass entityClassName)
Sets the entityClassName property of this entityDataReference
- Parameters:
entityClassName-
-
getReferencedObject
public EntityData getReferencedObject(java.lang.String sessionID)
Gets the referenced object. If not already attached this method will try to read the referenced object from the content system via entity manager.- Returns:
- referenced object or null
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-