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:
ArticleImpl,CollectionImpl,CorporationImpl,DigitalObjectImpl,ProjectImpl,TopicImpl,WebsiteImpl
public class EntityImpl extends IdentifiableImpl implements Entity
-
-
Field Summary
Fields Modifier and Type Field Description protected EntityTypeentityTypeprotected longrefId-
Fields inherited from class de.digitalcollections.model.impl.identifiable.IdentifiableImpl
created, description, label, lastModified, previewImage, previewImageRenderingHints, type
-
-
Constructor Summary
Constructors Constructor Description EntityImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityTypegetEntityType()longgetRefId()Get the system wide unique reference id.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, setUuid
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods 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 Detail
-
entityType
protected EntityType entityType
-
refId
protected long refId
-
-
Method Detail
-
getEntityType
public EntityType getEntityType()
- Specified by:
getEntityTypein interfaceEntity- Returns:
- the type of the entity (one of the types this system can manage, defined in enum EntityType).
-
setEntityType
public void setEntityType(EntityType entityType)
- Specified by:
setEntityTypein interfaceEntity- Parameters:
entityType- the type of the entity
-
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.
-
-