Class EntityImpl
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 Summary
Fields Modifier and Type Field Description protected CustomAttributescustomAttributesprotected EntityTypeentityTypeprotected longrefIdFields inherited from class de.digitalcollections.model.impl.identifiable.IdentifiableImpl
created, description, identifiers, label, lastModified, previewImage, previewImageRenderingHints, type -
Constructor Summary
Constructors Constructor Description EntityImpl() -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)CustomAttributesgetCustomAttributes()EntityTypegetEntityType()longgetRefId()Get the system wide unique reference id.inthashCode()voidsetCustomAttribute(java.lang.String attributeName, java.lang.Object attributeValue)Sets custom Attribute of given name to given value (overwriting existing value).voidsetCustomAttributes(CustomAttributes customAttributes)Set custom attributes (name, value).voidsetEntityType(EntityType entityType)voidsetRefId(long refId)Methods inherited from class de.digitalcollections.model.impl.identifiable.IdentifiableImpl
addIdentifier, getCreated, getDescription, getIdentifierByNamespace, getIdentifiers, getLabel, getLastModified, getPreviewImage, getPreviewImageRenderingHints, getType, getUuid, setCreated, setDescription, setIdentifiers, setLabel, setLastModified, setPreviewImage, setPreviewImageRenderingHints, setType, setUuidMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.digitalcollections.model.api.identifiable.entity.Entity
getCustomAttribute, hasCustomAttributeMethods inherited from interface de.digitalcollections.model.api.identifiable.Identifiable
addIdentifier, getCreated, getDescription, getIdentifierByNamespace, getIdentifiers, getLabel, getLastModified, getPreviewImage, getPreviewImageRenderingHints, getType, getUuid, setCreated, setDescription, setIdentifiers, setLabel, setLastModified, setPreviewImage, setPreviewImageRenderingHints, setType, setUuid
-
Field Details
-
customAttributes
-
entityType
-
refId
protected long refId
-
-
Constructor Details
-
EntityImpl
public EntityImpl()
-
-
Method Details
-
getCustomAttributes
- Specified by:
getCustomAttributesin interfaceEntity- Returns:
- custom attributes
-
getEntityType
- Specified by:
getEntityTypein interfaceEntity- 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:EntityGet the system wide unique reference id. Makes it possible to create very short permanent URIs by using a number. -
setCustomAttribute
public void setCustomAttribute(java.lang.String attributeName, java.lang.Object attributeValue)Description copied from interface:EntitySets custom Attribute of given name to given value (overwriting existing value).- Specified by:
setCustomAttributein interfaceEntity- Parameters:
attributeName- name of custom attributeattributeValue- value of custom attibute
-
setCustomAttributes
Description copied from interface:EntitySet custom attributes (name, value).- Specified by:
setCustomAttributesin interfaceEntity- Parameters:
customAttributes- custom attributes to be set
-
setEntityType
- Specified by:
setEntityTypein interfaceEntity- Parameters:
entityType- the type of the entity
-
setRefId
public void setRefId(long refId) -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classIdentifiableImpl
-
hashCode
public int hashCode()- Overrides:
hashCodein classIdentifiableImpl
-