Class XmlWorkflowItem
java.lang.Object
org.dspace.xmlworkflow.storedcomponents.XmlWorkflowItem
- All Implemented Interfaces:
InProgressSubmission,ReloadableEntity<Integer>,WorkflowItem
Class representing an item going through the workflow process in DSpace
- Author:
- Bram De Schouwer (bram.deschouwer at dot com), Kevin Van de Velde (kevin at atmire dot com), Ben Bosman (ben at atmire dot com), Mark Diggory (markd at atmire dot com)
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtected constructor, create object using:WorkflowItemService.create(Context, Item, Collection) -
Method Summary
Modifier and TypeMethodDescriptionGet the collection being submitted togetID()Get the internal ID of this workflow itemgetItem()Get the incomplete item objectGet the submitterbooleanFind 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 beforevoidsetCollection(Collection collection) voidvoidsetMultipleFiles(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.voidsetPublishedBefore(boolean b) Indicate whether the submission has been published or publicly distributed before
-
Constructor Details
-
XmlWorkflowItem
protected XmlWorkflowItem()Protected constructor, create object using:WorkflowItemService.create(Context, Item, Collection)
-
-
Method Details
-
getID
Get the internal ID of this workflow item- Specified by:
getIDin interfaceInProgressSubmission- Specified by:
getIDin interfaceReloadableEntity<Integer>- Returns:
- the internal identifier
-
getCollection
Description copied from interface:InProgressSubmissionGet the collection being submitted to- Specified by:
getCollectionin interfaceInProgressSubmission- Returns:
- the collection
-
setCollection
-
getItem
Description copied from interface:InProgressSubmissionGet the incomplete item object- Specified by:
getItemin interfaceInProgressSubmission- Returns:
- the item
-
setItem
-
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
-