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 Details

    • id

      protected UUID id
    • predefinedUUID

      protected UUID predefinedUUID
      This will read our predefinedUUID property to pass it along to the UUID generator
  • Constructor Details

    • DSpaceObject

      protected DSpaceObject()
  • Method Details

    • getPredefinedUUID

      public UUID getPredefinedUUID()
    • clearDetails

      public void clearDetails()
      Reset the cache of event details.
    • addDetails

      protected void addDetails(String d)
      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

      public String 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

      public UUID getID()
      Get the internal ID (database primary key) of this object
      Specified by:
      getID in interface ReloadableEntity<UUID>
      Returns:
      internal ID of object
    • getName

      public abstract String getName()
    • getHandle

      public String getHandle()
      Get the Handle of the object. This may return null
      Returns:
      Handle of the object, or null if it doesn't have one
    • addHandle

      public void addHandle(Handle handle)
      Append to this object's list of Handles.
      Parameters:
      handle - the new Handle to be added.
    • getHandles

      public List<Handle> getHandles()
    • getMetadata

      public List<MetadataValue> getMetadata()
    • setMetadata

      public void setMetadata(List<MetadataValue> metadata)
    • removeMetadata

      protected void removeMetadata(MetadataValue metadataValue)
    • removeMetadata

      protected void removeMetadata(List<MetadataValue> metadataValues)
    • addMetadata

      protected void addMetadata(MetadataValue metadataValue)
    • getResourcePolicies

      public List<ResourcePolicy> getResourcePolicies()
    • isMetadataModified

      public boolean isMetadataModified()
    • setMetadataModified

      protected void setMetadataModified()
    • isModified

      public boolean isModified()
    • clearModified

      public void clearModified()
    • setModified

      protected void setModified()