Package org.dspace.content
Class DSpaceObject
java.lang.Object
org.dspace.content.DSpaceObject
- All Implemented Interfaces:
Serializable,ReloadableEntity<UUID>
- Direct Known Subclasses:
Bitstream,Bundle,CacheableDSpaceObject,Item
@Entity
public abstract class DSpaceObject
extends Object
implements Serializable, ReloadableEntity<UUID>
Abstract base class for DSpace objects
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDetails(String d) Add a string to the cache of event details.voidAppend to this object's list of Handles.protected voidaddMetadata(MetadataValue metadataValue) voidReset the cache of event details.voidGet the Handle of the object.getID()Get the internal ID (database primary key) of this objectabstract StringgetName()abstract intgetType()Get the type of this object, found in Constantsbooleanbooleanprotected voidremoveMetadata(List<MetadataValue> metadataValues) protected voidremoveMetadata(MetadataValue metadataValue) voidsetMetadata(List<MetadataValue> metadata) protected voidprotected void
-
Field Details
-
id
-
predefinedUUID
This will read our predefinedUUID property to pass it along to the UUID generator
-
-
Constructor Details
-
DSpaceObject
protected DSpaceObject()
-
-
Method Details
-
getPredefinedUUID
-
clearDetails
public void clearDetails()Reset the cache of event details. -
addDetails
Add a string to the cache of event details. Automatically separates entries with a comma. Subclass can just start calling addDetails, since it creates the cache if it needs to.- Parameters:
d- detail string to add.
-
getDetails
- Returns:
- summary of event details, or null if there are none.
-
getType
public abstract int getType()Get the type of this object, found in Constants- Returns:
- type of the object
-
getID
Get the internal ID (database primary key) of this object- Specified by:
getIDin interfaceReloadableEntity<UUID>- Returns:
- internal ID of object
-
getName
-
getHandle
Get the Handle of the object. This may returnnull- Returns:
- Handle of the object, or
nullif it doesn't have one
-
addHandle
Append to this object's list of Handles.- Parameters:
handle- the new Handle to be added.
-
getHandles
-
getMetadata
-
setMetadata
-
removeMetadata
-
removeMetadata
-
addMetadata
-
getResourcePolicies
-
isMetadataModified
public boolean isMetadataModified() -
setMetadataModified
protected void setMetadataModified() -
isModified
public boolean isModified() -
clearModified
public void clearModified() -
setModified
protected void setModified()
-