Class EntityDataReference

java.lang.Object
com.priint.pubserver.plugin.entitydata.EntityDataReference
All Implemented Interfaces:
PersistentData, Serializable

public class EntityDataReference extends Object implements PersistentData

Data object for entity type EntityDataReference

EntityDataReference data are used as parentRef field in ContentMetaData

See Also:
  • Constructor Details

    • EntityDataReference

      public EntityDataReference()
    • EntityDataReference

      public EntityDataReference(String identifier, String entityModelId, String entityId, Entity.DataClass entityClassName)
  • Method Details

    • getIdentifier

      public String getIdentifier()

      Gets the identifier of this entityDataReference

      Specified by:
      getIdentifier in interface PersistentData
      Returns:
      the identifier of this entityDataReference
    • setIdentifier

      public void setIdentifier(String identifier)

      Sets the identifier property of this entityDataReference

      Parameters:
      identifier -
    • getEntityModelId

      public String getEntityModelId()

      Gets the entityModelId of this entityDataReference

      Returns:
      the entityModelId of this entityDataReference
    • setEntityModelId

      public void setEntityModelId(String entityModelId)

      Sets the entityModelId property of this entityDataReference

      Parameters:
      entityModelId -
    • getEntityId

      public String getEntityId()

      Gets the entityId of this entityDataReference

      Returns:
      the entityId of this entityDataReference
    • setEntityId

      public void setEntityId(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(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 String toString()
      Overrides:
      toString in class Object