Package org.dspace.content
Class WorkspaceItem
java.lang.Object
org.dspace.content.WorkspaceItem
- All Implemented Interfaces:
Serializable,InProgressSubmission,ReloadableEntity<Integer>
Class representing an item in the process of being submitted by a user
- Version:
- $Revision$
- Author:
- Robert Tansley
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected constructor, create object using:WorkspaceItemService.create(Context, Collection, boolean)orWorkspaceItemService.create(Context, WorkflowItem) -
Method Summary
Modifier and TypeMethodDescriptionbooleanDecide if this WorkspaceItem is equal to anotherGet the collection being submitted togetID()Get the internal ID of this workspace itemgetItem()Get the incomplete item objectintGet the value of the page reached column (which represents the page reached within a stage/step)intGet the value of the stage reached columnGet the submitterinthashCode()booleanFind out if the submission has (or is intended to have) more than one associated bitstream.booleanFind out if the submission has (or is intended to have) more than one title.booleanFind out if the submission has been published or publicly distributed beforevoidsetMultipleFiles(boolean b) Indicate whether the submission is intended to have more than one file.voidsetMultipleTitles(boolean b) Indicate whether the submission is intended to have more than one title.voidsetPageReached(int v) Set the value of the page reached column (which represents the page reached within a stage/step)voidsetPublishedBefore(boolean b) Indicate whether the submission has been published or publicly distributed beforevoidsetStageReached(int v) Set the value of the stage reached column
-
Constructor Details
-
WorkspaceItem
protected WorkspaceItem()Protected constructor, create object using:WorkspaceItemService.create(Context, Collection, boolean)orWorkspaceItemService.create(Context, WorkflowItem)
-
-
Method Details
-
getID
Get the internal ID of this workspace item- Specified by:
getIDin interfaceInProgressSubmission- Specified by:
getIDin interfaceReloadableEntity<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
Decide if this WorkspaceItem is equal to another -
hashCode
public int hashCode() -
getItem
Description copied from interface:InProgressSubmissionGet the incomplete item object- Specified by:
getItemin interfaceInProgressSubmission- Returns:
- the item
-
getCollection
Description copied from interface:InProgressSubmissionGet the collection being submitted to- Specified by:
getCollectionin interfaceInProgressSubmission- Returns:
- the collection
-
getSubmitter
Description copied from interface:InProgressSubmissionGet the submitter- Specified by:
getSubmitterin interfaceInProgressSubmission- Returns:
- the submitting e-person
-
hasMultipleFiles
public boolean hasMultipleFiles()Description copied from interface:InProgressSubmissionFind out if the submission has (or is intended to have) more than one associated bitstream.- Specified by:
hasMultipleFilesin interfaceInProgressSubmission- Returns:
trueif there is to be more than one file.
-
setMultipleFiles
public void setMultipleFiles(boolean b) Description copied from interface:InProgressSubmissionIndicate whether the submission is intended to have more than one file.- Specified by:
setMultipleFilesin interfaceInProgressSubmission- Parameters:
b- iftrue, submission may have more than one file.
-
hasMultipleTitles
public boolean hasMultipleTitles()Description copied from interface:InProgressSubmissionFind out if the submission has (or is intended to have) more than one title.- Specified by:
hasMultipleTitlesin interfaceInProgressSubmission- Returns:
trueif there is to be more than one file.
-
setMultipleTitles
public void setMultipleTitles(boolean b) Description copied from interface:InProgressSubmissionIndicate whether the submission is intended to have more than one title.- Specified by:
setMultipleTitlesin interfaceInProgressSubmission- Parameters:
b- iftrue, submission may have more than one title.
-
isPublishedBefore
public boolean isPublishedBefore()Description copied from interface:InProgressSubmissionFind out if the submission has been published or publicly distributed before- Specified by:
isPublishedBeforein interfaceInProgressSubmission- Returns:
trueif it has been published before
-
setPublishedBefore
public void setPublishedBefore(boolean b) Description copied from interface:InProgressSubmissionIndicate whether the submission has been published or publicly distributed before- Specified by:
setPublishedBeforein interfaceInProgressSubmission- Parameters:
b-trueif it has been published before
-