Class Identifiable
java.lang.Object
de.digitalcollections.model.UniqueObject
de.digitalcollections.model.identifiable.Identifiable
- Direct Known Subclasses:
Entity
,FamilyName
,FileResource
,GivenName
,Node
,Subject
,Webpage
An Identifiable is an uniquely identifiable
Entity
or FileResource
, having one or
more unique Identifier
(s).- FileResources have one (or more) technical (system wide) Identifiers (e.g. an UUID)
- Entities additionally have one (or more) “domain-specific” (system independent) Identifiers (e.g. GND-ID, VIAF-ID)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
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 LocalizedStructuredContent
protected IdentifiableObjectType
protected Set<Identifier>
protected LocalizedText
protected LocalizedUrlAliases
protected ImageFileResource
protected RenderingHintsPreviewImage
protected IdentifiableType
Fields inherited from class de.digitalcollections.model.UniqueObject
created, lastModified, uuid
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addIdentifier
(Identifier identifier) void
addLocalizedUrlAlias
(UrlAlias urlAlias) void
addSubject
(Subject subject) void
boolean
getIdentifierByNamespace
(String namespace) getLabel()
getPrimaryUrlAlias
(Locale locale, Website website) Returns the primary (= currently active) url alias of this Identifiable for a specified language and website.getTags()
getType()
int
hashCode()
protected void
init()
Use to initialize member variables, used by default constructor and buildervoid
removeIdentifier
(String namespace) void
setDescription
(LocalizedStructuredContent description) void
setIdentifiableObjectType
(IdentifiableObjectType identifiableObjectType) void
setIdentifiers
(Set<Identifier> identifiers) void
setLabel
(LocalizedText label) void
void
setLocalizedUrlAliases
(LocalizedUrlAliases localizedUrlAliases) void
setPreviewImage
(ImageFileResource previewImage) void
setPreviewImageRenderingHints
(RenderingHintsPreviewImage previewImageRenderingHints) void
setSubjects
(Set<Subject> subjects) void
void
setType
(IdentifiableType identifiableType) Methods inherited from class de.digitalcollections.model.UniqueObject
getCreated, getLastModified, getUuid, isPersisted, setCreated, setLastModified, setUuid
-
Field Details
-
description
-
identifiableObjectType
-
identifiers
-
label
-
localizedUrlAliases
-
previewImage
-
previewImageRenderingHints
-
subjects
-
tags
-
type
-
-
Constructor Details
-
Identifiable
public Identifiable()
-
-
Method Details
-
addIdentifier
-
addLocalizedUrlAlias
-
addTag
-
equals
- Overrides:
equals
in classUniqueObject
-
getDescription
-
getIdentifiableObjectType
-
getIdentifierByNamespace
-
getIdentifiers
-
getLabel
-
getLocalizedUrlAliases
-
getPreviewImage
-
getPreviewImageRenderingHints
-
getPrimaryUrlAlias
Returns the primary (= currently active) url alias of this Identifiable for a specified language and website. If no related url alias is found the website independent url alias of the given locale is returned (that has been generated during saving from the Identifiable's label).- Parameters:
locale
- target locale for retrieving primary url aliaswebsite
- target website for retrieving primary url alias- Returns:
- primary url alias for website and locale or default
-
getTags
-
getType
-
hashCode
public int hashCode()- Overrides:
hashCode
in classUniqueObject
-
init
protected void init()Description copied from class:UniqueObject
Use to initialize member variables, used by default constructor and builder- Overrides:
init
in classUniqueObject
-
removeIdentifier
-
setDescription
-
setIdentifiableObjectType
-
setIdentifiers
-
setLabel
-
setLabel
-
setLocalizedUrlAliases
-
setPreviewImage
-
setPreviewImageRenderingHints
-
setTags
-
setType
-
addSubject
-
getSubjects
-
setSubjects
-