Class Entity
java.lang.Object
de.digitalcollections.model.UniqueObject
de.digitalcollections.model.identifiable.Identifiable
de.digitalcollections.model.identifiable.entity.Entity
- Direct Known Subclasses:
Agent
,Article
,Collection
,DigitalObject
,Event
,GeoLocation
,Item
,Manifestation
,Project
,Topic
,Website
,Work
Entities are uniquely identifiable objects, often also uniquely identifiable outside of this
technical system - by additionally having unique identifiers of other systems (like GND-Id,
VIAF-ID, etc.). An entity is of a specific entity type, like e.g. cultural object, item,
manifestation, work, digital object, person, corporation.
Bibliographic entity types for example are defined in the “Functional Requirements for Bibliographic Records” (FRBR; deutsch ‚Funktionale Anforderungen an bibliographische Datensätze‘): see Wikipedia “Functional Requirements for Bibliographic Records”, URLs:
https://de.wikipedia.org/wiki/Functional_Requirements_for_Bibliographic_Records https://en.wikipedia.org/wiki/Functional_Requirements_for_Bibliographic_Records
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Entity.EntityBuilder<C extends Entity,
B extends Entity.EntityBuilder<C, B>> Nested classes/interfaces inherited from class de.digitalcollections.model.identifiable.Identifiable
Identifiable.IdentifiableBuilder<C extends Identifiable,
B extends Identifiable.IdentifiableBuilder<C, B>> Nested classes/interfaces inherited from class de.digitalcollections.model.UniqueObject
UniqueObject.UniqueObjectBuilder<C extends UniqueObject,
B extends UniqueObject.UniqueObjectBuilder<C, B>> -
Field Summary
Modifier and TypeFieldDescriptionprotected CustomAttributes
protected LocalDate
A "navigable" date, required e.g.protected List<LocalizedStructuredContent>
protected long
Fields inherited from class de.digitalcollections.model.identifiable.Identifiable
description, identifiableObjectType, identifiers, label, localizedUrlAliases, previewImage, previewImageRenderingHints, subjects, tags, type
Fields inherited from class de.digitalcollections.model.UniqueObject
created, lastModified, uuid
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addNotes
(LocalizedStructuredContent... notesToAdd) boolean
getCustomAttribute
(String attributeName) Deprecated, for removal: This API element is subject to removal in a future version.getNotes()
Arbitrary notes and remarkslong
getRefId()
Get the system wide unique reference id.int
hashCode()
protected void
init()
Use to initialize member variables, used by default constructor and buildervoid
setCustomAttribute
(String attributeName, Object attributeValue) Sets custom Attribute of given name to given value (overwriting existing value).void
setCustomAttributes
(CustomAttributes customAttributes) Set custom attributes (name, value).void
setNavDate
(LocalDate navDate) Sets the "navigation" datevoid
setNotes
(List<LocalizedStructuredContent> notes) void
setRefId
(long refId) Methods inherited from class de.digitalcollections.model.identifiable.Identifiable
addIdentifier, addLocalizedUrlAlias, addSubject, addTag, getDescription, getIdentifiableObjectType, getIdentifierByNamespace, getIdentifiers, getLabel, getLocalizedUrlAliases, getPreviewImage, getPreviewImageRenderingHints, getPrimaryUrlAlias, getSubjects, getTags, getType, removeIdentifier, setDescription, setIdentifiableObjectType, setIdentifiers, setLabel, setLabel, setLocalizedUrlAliases, setPreviewImage, setPreviewImageRenderingHints, setSubjects, setTags, setType
Methods inherited from class de.digitalcollections.model.UniqueObject
getCreated, getLastModified, getUuid, isPersisted, setCreated, setLastModified, setUuid
-
Field Details
-
customAttributes
-
refId
protected long refId -
notes
-
-
Constructor Details
-
Entity
public Entity()
-
-
Method Details
-
addNotes
-
equals
- Overrides:
equals
in classIdentifiable
-
getCustomAttribute
- Parameters:
attributeName
- attribute name of custom attribute- Returns:
- value of custom attribute or null
-
getCustomAttributes
- Returns:
- custom attributes
-
getEntityType
Deprecated, for removal: This API element is subject to removal in a future version.UseIdentifiable.getType()
andIdentifiable.getIdentifiableObjectType()
instead.- Returns:
- the type of the entity (one of the types this system can manage, defined in enum EntityType).
-
getNotes
Arbitrary notes and remarks -
getRefId
public long getRefId()Get the system wide unique reference id. Makes it possible to create very short permanent URIs by using a number.- Returns:
- system wide unique entity reference id
-
hashCode
public int hashCode()- Overrides:
hashCode
in classIdentifiable
-
init
protected void init()Description copied from class:UniqueObject
Use to initialize member variables, used by default constructor and builder- Overrides:
init
in classIdentifiable
-
setCustomAttribute
Sets custom Attribute of given name to given value (overwriting existing value).- Parameters:
attributeName
- name of custom attributeattributeValue
- value of custom attibute
-
setCustomAttributes
Set custom attributes (name, value).- Parameters:
customAttributes
- custom attributes to be set
-
setNotes
-
setRefId
public void setRefId(long refId) - Parameters:
refId
- system wide unique entity reference id.
-
Identifiable.getType()
andIdentifiable.getIdentifiableObjectType()
instead.