Class DigitalObject
- java.lang.Object
-
- de.digitalcollections.model.UniqueObject
-
- de.digitalcollections.model.identifiable.Identifiable
-
- de.digitalcollections.model.identifiable.entity.Entity
-
- de.digitalcollections.model.identifiable.entity.DigitalObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDigitalObject.DigitalObjectBuilder<C extends DigitalObject,B extends DigitalObject.DigitalObjectBuilder<C,B>>-
Nested classes/interfaces inherited from class de.digitalcollections.model.identifiable.entity.Entity
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
-
Fields inherited from class de.digitalcollections.model.identifiable.entity.Entity
customAttributes, navDate, notes, refId
-
Fields inherited from class de.digitalcollections.model.identifiable.Identifiable
description, identifiableObjectType, identifiers, label, localizedUrlAliases, previewImage, previewImageRenderingHints, type
-
Fields inherited from class de.digitalcollections.model.UniqueObject
created, lastModified, uuid
-
-
Constructor Summary
Constructors Constructor Description DigitalObject()Default constructor, which also sets the EntityType toEntityType.DIGITAL_OBJECT
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFileResource(FileResource fileResource)CreationInfogetCreationInfo()List<FileResource>getFileResources()ItemgetItem()LicensegetLicense()List<LinkedDataFileResource>getLinkedDataResources()IntegergetNumberOfBinaryResources()DigitalObjectgetParent()List<FileResource>getRenderingResources()VersiongetVersion()protected voidinit()Use to initialize member variables, used by default constructor and buildervoidsetCreationInfo(CreationInfo creationInfo)Sets the information about the creation of the digital objectvoidsetFileResources(List<FileResource> fileResources)Sets the sorted list of file resourcesvoidsetItem(Item item)Set the item, the digital object belongs tovoidsetLicense(License license)Sets the licence for the digital objectvoidsetLinkedDataResources(List<LinkedDataFileResource> linkedDataResources)Sets a sorted list of links (with description) to machine readable formatsvoidsetNumberOfBinaryResources(int numberOfBinaryResources)Sets the number of binary resources for presentationvoidsetParent(DigitalObject parent)Sets the parent of the digital objectvoidsetRenderingResources(List<FileResource> renderingResources)Sets the sorted list of links (with description and MIME type) to human readable formatsvoidsetVersion(Version version)Sets the version of the digital objectStringtoString()-
Methods inherited from class de.digitalcollections.model.identifiable.entity.Entity
addNotes, equals, getCustomAttribute, getCustomAttributes, getEntityType, getNavDate, getNotes, getRefId, hashCode, setCustomAttribute, setCustomAttributes, setNavDate, setNotes, setRefId
-
Methods inherited from class de.digitalcollections.model.identifiable.Identifiable
addIdentifier, getDescription, getIdentifiableObjectType, getIdentifierByNamespace, getIdentifiers, getLabel, getLocalizedUrlAliases, getPreviewImage, getPreviewImageRenderingHints, getPrimaryUrlAlias, getType, removeIdentifier, setDescription, setIdentifiableObjectType, setIdentifiers, setLabel, setLabel, setLocalizedUrlAliases, setPreviewImage, setPreviewImageRenderingHints, setType
-
Methods inherited from class de.digitalcollections.model.UniqueObject
getCreated, getLastModified, getUuid, setCreated, setLastModified, setUuid
-
-
-
-
Constructor Detail
-
DigitalObject
public DigitalObject()
Default constructor, which also sets the EntityType toEntityType.DIGITAL_OBJECT
-
-
Method Detail
-
addFileResource
public void addFileResource(FileResource fileResource)
-
getCreationInfo
public CreationInfo getCreationInfo()
- Returns:
- meta information about the creation of the digital object
-
getFileResources
public List<FileResource> getFileResources()
- Returns:
- the sorted list of file resources, like images or audio files
-
getItem
public Item getItem()
- Returns:
- the item, the digital object belongs to. Otherwise, return null.
-
getLicense
public License getLicense()
- Returns:
- the licence for the digital object (not for the metadata!)
-
getLinkedDataResources
public List<LinkedDataFileResource> getLinkedDataResources()
- Returns:
- the sorted list of links (with description) to machine readable formats
-
getNumberOfBinaryResources
public Integer getNumberOfBinaryResources()
- Returns:
- the number of binary resources for presentation
-
getParent
public DigitalObject getParent()
- Returns:
- the parent of the digital object, it available. Otherwise, return null.
-
getRenderingResources
public List<FileResource> getRenderingResources()
- Returns:
- the sorted list of links (with description and MIME type) to human readable formats
-
getVersion
public Version getVersion()
- Returns:
- the version of the digital object
-
init
protected void init()
Description copied from class:UniqueObjectUse to initialize member variables, used by default constructor and builder
-
setCreationInfo
public void setCreationInfo(CreationInfo creationInfo)
Sets the information about the creation of the digital object- Parameters:
creationInfo- the meta information about the creation
-
setFileResources
public void setFileResources(List<FileResource> fileResources)
Sets the sorted list of file resources- Parameters:
fileResources- the sorted list of file resources
-
setItem
public void setItem(Item item)
Set the item, the digital object belongs to- Parameters:
item- the item, the digital object belongs to
-
setLicense
public void setLicense(License license)
Sets the licence for the digital object- Parameters:
license- the licence of the digital object
-
setLinkedDataResources
public void setLinkedDataResources(List<LinkedDataFileResource> linkedDataResources)
Sets a sorted list of links (with description) to machine readable formats- Parameters:
linkedDataResources- the sorted list of links
-
setNumberOfBinaryResources
public void setNumberOfBinaryResources(int numberOfBinaryResources)
Sets the number of binary resources for presentation- Parameters:
numberOfBinaryResources- the number of binary resources
-
setParent
public void setParent(DigitalObject parent)
Sets the parent of the digital object- Parameters:
parent- of the digital object
-
setRenderingResources
public void setRenderingResources(List<FileResource> renderingResources)
Sets the sorted list of links (with description and MIME type) to human readable formats- Parameters:
renderingResources- the sorted list of links
-
setVersion
public void setVersion(Version version)
Sets the version of the digital object- Parameters:
version- of the digital object
-
-