java.lang.Object
de.digitalcollections.model.impl.identifiable.IdentifiableImpl
de.digitalcollections.model.impl.identifiable.entity.EntityImpl
All Implemented Interfaces:
Entity, Identifiable
Direct Known Subclasses:
AgentImpl, ArticleImpl, CollectionImpl, DigitalObjectImpl, ExpressionImpl, GeoLocationImpl, ItemImpl, ManifestationImpl, ProjectImpl, TopicImpl, WebsiteImpl, WorkImpl

public class EntityImpl
extends IdentifiableImpl
implements Entity
  • Field Details

    • customAttributes

      protected CustomAttributes customAttributes
    • entityType

      protected EntityType entityType
    • refId

      protected long refId
  • Constructor Details

    • EntityImpl

      public EntityImpl()
  • Method Details

    • getCustomAttributes

      public CustomAttributes getCustomAttributes()
      Specified by:
      getCustomAttributes in interface Entity
      Returns:
      custom attributes
    • getEntityType

      public EntityType getEntityType()
      Specified by:
      getEntityType in interface Entity
      Returns:
      the type of the entity (one of the types this system can manage, defined in enum EntityType).
    • getRefId

      public long getRefId()
      Description copied from interface: Entity
      Get the system wide unique reference id. Makes it possible to create very short permanent URIs by using a number.
      Specified by:
      getRefId in interface Entity
      Returns:
      system wide unique entity reference id
    • setCustomAttribute

      public void setCustomAttribute​(java.lang.String attributeName, java.lang.Object attributeValue)
      Description copied from interface: Entity
      Sets custom Attribute of given name to given value (overwriting existing value).
      Specified by:
      setCustomAttribute in interface Entity
      Parameters:
      attributeName - name of custom attribute
      attributeValue - value of custom attibute
    • setCustomAttributes

      public void setCustomAttributes​(CustomAttributes customAttributes)
      Description copied from interface: Entity
      Set custom attributes (name, value).
      Specified by:
      setCustomAttributes in interface Entity
      Parameters:
      customAttributes - custom attributes to be set
    • setEntityType

      public void setEntityType​(EntityType entityType)
      Specified by:
      setEntityType in interface Entity
      Parameters:
      entityType - the type of the entity
    • setRefId

      public void setRefId​(long refId)
      Specified by:
      setRefId in interface Entity
      Parameters:
      refId - system wide unique entity reference id.
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class IdentifiableImpl
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class IdentifiableImpl