Class DSpaceObject

    • Field Detail

      • id

        protected UUID id
      • predefinedUUID

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

      • DSpaceObject

        protected DSpaceObject()
    • Method Detail

      • 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.
      • removeMetadata

        protected void removeMetadata​(MetadataValue metadataValue)
      • removeMetadata

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

        protected void addMetadata​(MetadataValue metadataValue)
      • isMetadataModified

        public boolean isMetadataModified()
      • setMetadataModified

        protected void setMetadataModified()
      • isModified

        public boolean isModified()
      • clearModified

        public void clearModified()
      • setModified

        protected void setModified()