Class WorkspaceItem

java.lang.Object
org.dspace.content.WorkspaceItem
All Implemented Interfaces:
Serializable, InProgressSubmission, ReloadableEntity<Integer>

@Entity public class WorkspaceItem extends Object implements InProgressSubmission, Serializable
Class representing an item in the process of being submitted by a user
Version:
$Revision$
Author:
Robert Tansley
See Also:
  • Constructor Details

  • Method Details

    • getID

      public Integer getID()
      Get the internal ID of this workspace item
      Specified by:
      getID in interface InProgressSubmission
      Specified by:
      getID in interface ReloadableEntity<Integer>
      Returns:
      the internal identifier
    • getStageReached

      public int getStageReached()
      Get the value of the stage reached column
      Returns:
      the value of the stage reached column
    • setStageReached

      public void setStageReached(int v)
      Set the value of the stage reached column
      Parameters:
      v - the value of the stage reached column
    • getPageReached

      public int getPageReached()
      Get the value of the page reached column (which represents the page reached within a stage/step)
      Returns:
      the value of the page reached column
    • setPageReached

      public void setPageReached(int v)
      Set the value of the page reached column (which represents the page reached within a stage/step)
      Parameters:
      v - the value of the page reached column
    • equals

      public boolean equals(Object o)
      Decide if this WorkspaceItem is equal to another
      Overrides:
      equals in class Object
      Parameters:
      o - The other workspace item to compare to
      Returns:
      If they are equal or not
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getItem

      public Item getItem()
      Description copied from interface: InProgressSubmission
      Get the incomplete item object
      Specified by:
      getItem in interface InProgressSubmission
      Returns:
      the item
    • getCollection

      public Collection getCollection()
      Description copied from interface: InProgressSubmission
      Get the collection being submitted to
      Specified by:
      getCollection in interface InProgressSubmission
      Returns:
      the collection
    • getSubmitter

      public EPerson getSubmitter()
      Description copied from interface: InProgressSubmission
      Get the submitter
      Specified by:
      getSubmitter in interface InProgressSubmission
      Returns:
      the submitting e-person
    • hasMultipleFiles

      public boolean hasMultipleFiles()
      Description copied from interface: InProgressSubmission
      Find out if the submission has (or is intended to have) more than one associated bitstream.
      Specified by:
      hasMultipleFiles in interface InProgressSubmission
      Returns:
      true if there is to be more than one file.
    • setMultipleFiles

      public void setMultipleFiles(boolean b)
      Description copied from interface: InProgressSubmission
      Indicate whether the submission is intended to have more than one file.
      Specified by:
      setMultipleFiles in interface InProgressSubmission
      Parameters:
      b - if true, submission may have more than one file.
    • hasMultipleTitles

      public boolean hasMultipleTitles()
      Description copied from interface: InProgressSubmission
      Find out if the submission has (or is intended to have) more than one title.
      Specified by:
      hasMultipleTitles in interface InProgressSubmission
      Returns:
      true if there is to be more than one file.
    • setMultipleTitles

      public void setMultipleTitles(boolean b)
      Description copied from interface: InProgressSubmission
      Indicate whether the submission is intended to have more than one title.
      Specified by:
      setMultipleTitles in interface InProgressSubmission
      Parameters:
      b - if true, submission may have more than one title.
    • isPublishedBefore

      public boolean isPublishedBefore()
      Description copied from interface: InProgressSubmission
      Find out if the submission has been published or publicly distributed before
      Specified by:
      isPublishedBefore in interface InProgressSubmission
      Returns:
      true if it has been published before
    • setPublishedBefore

      public void setPublishedBefore(boolean b)
      Description copied from interface: InProgressSubmission
      Indicate whether the submission has been published or publicly distributed before
      Specified by:
      setPublishedBefore in interface InProgressSubmission
      Parameters:
      b - true if it has been published before