Class XmlWorkflowItem
- java.lang.Object
-
- org.dspace.xmlworkflow.storedcomponents.XmlWorkflowItem
-
- All Implemented Interfaces:
InProgressSubmission,ReloadableEntity<Integer>,WorkflowItem
@Entity public class XmlWorkflowItem extends Object implements 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
Constructors Modifier Constructor Description protectedXmlWorkflowItem()Protected constructor, create object using:WorkflowItemService.create(Context, Item, Collection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectiongetCollection()Get the collection being submitted toIntegergetID()Get the internal ID of this workflow itemItemgetItem()Get the incomplete item objectintgetState()EPersongetSubmitter()Get the submitterbooleanhasMultipleFiles()Find out if the submission has (or is intended to have) more than one associated bitstream.booleanhasMultipleTitles()Find out if the submission has (or is intended to have) more than one title.booleanisPublishedBefore()Find out if the submission has been published or publicly distributed beforevoidsetCollection(Collection collection)voidsetItem(Item item)voidsetMultipleFiles(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 Detail
-
XmlWorkflowItem
protected XmlWorkflowItem()
Protected constructor, create object using:WorkflowItemService.create(Context, Item, Collection)
-
-
Method Detail
-
getID
public Integer getID()
Get the internal ID of this workflow item- Specified by:
getIDin interfaceInProgressSubmission- Specified by:
getIDin interfaceReloadableEntity<Integer>- Returns:
- the internal identifier
-
getCollection
public Collection getCollection()
Description copied from interface:InProgressSubmissionGet the collection being submitted to- Specified by:
getCollectionin interfaceInProgressSubmission- Returns:
- the collection
-
setCollection
public void setCollection(Collection collection)
-
getItem
public Item getItem()
Description copied from interface:InProgressSubmissionGet the incomplete item object- Specified by:
getItemin interfaceInProgressSubmission- Returns:
- the item
-
setItem
public void setItem(Item item)
-
getSubmitter
public EPerson 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
-
getState
public int getState()
- Specified by:
getStatein interfaceWorkflowItem
-
-