Class 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 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:
        getIdentifier in interface PersistentData
        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:
        toString in class java.lang.Object