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 class
DigitalObject.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, 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 void
addFileResource(FileResource fileResource)
CreationInfo
getCreationInfo()
List<FileResource>
getFileResources()
Item
getItem()
License
getLicense()
List<LinkedDataFileResource>
getLinkedDataResources()
int
getNumberOfBinaryResources()
DigitalObject
getParent()
List<FileResource>
getRenderingResources()
Version
getVersion()
protected void
init()
Use to initialize member variables, used by default constructor and buildervoid
setCreationInfo(CreationInfo creationInfo)
Sets the information about the creation of the digital objectvoid
setFileResources(List<FileResource> fileResources)
Sets the sorted list of file resourcesvoid
setItem(Item item)
Set the item, the digital object belongs tovoid
setLicense(License license)
Sets the licence for the digital objectvoid
setLinkedDataResources(List<LinkedDataFileResource> linkedDataResources)
Sets a sorted list of links (with description) to machine readable formatsvoid
setNumberOfBinaryResources(int numberOfBinaryResources)
Sets the number of binary resources for presentationvoid
setParent(DigitalObject parent)
Sets the parent of the digital objectvoid
setRenderingResources(List<FileResource> renderingResources)
Sets the sorted list of links (with description and MIME type) to human readable formatsvoid
setVersion(Version version)
Sets the version of the digital objectString
toString()
-
Methods inherited from class de.digitalcollections.model.identifiable.entity.Entity
equals, getCustomAttribute, getCustomAttributes, getEntityType, getNavDate, getRefId, hashCode, setCustomAttribute, setCustomAttributes, setNavDate, setRefId
-
Methods inherited from class de.digitalcollections.model.identifiable.Identifiable
addIdentifier, getDescription, getIdentifiableObjectType, getIdentifierByNamespace, getIdentifiers, getLabel, getLocalizedUrlAliases, getPreviewImage, getPreviewImageRenderingHints, getPrimaryUrlAlias, getType, 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 int 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:UniqueObject
Use 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
-
-