Package org.dspace.workflowbasic
Class BasicWorkflowItem
- java.lang.Object
-
- org.dspace.workflowbasic.BasicWorkflowItem
-
- All Implemented Interfaces:
InProgressSubmission,ReloadableEntity<Integer>,WorkflowItem
@Entity public class BasicWorkflowItem extends Object implements WorkflowItem
Class representing an item going through the workflow process in DSpace- Version:
- $Revision$
- Author:
- Robert Tansley
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBasicWorkflowItem()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 objectEPersongetOwner()get owner of WorkflowItemintgetState()Get state of WorkflowItemEPersongetSubmitter()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)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.voidsetOwner(EPerson ep)set owner of WorkflowItemvoidsetPublishedBefore(boolean b)Indicate whether the submission has been published or publicly distributed beforevoidsetState(int newstate)Set state of WorkflowItem
-
-
-
Constructor Detail
-
BasicWorkflowItem
protected BasicWorkflowItem()
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
-
getOwner
public EPerson getOwner()
get owner of WorkflowItem- Returns:
- EPerson owner
-
setOwner
public void setOwner(EPerson ep)
set owner of WorkflowItem- Parameters:
ep- owner
-
getState
public int getState()
Get state of WorkflowItem- Specified by:
getStatein interfaceWorkflowItem- Returns:
- state
-
setState
public void setState(int newstate)
Set state of WorkflowItem- Parameters:
newstate- new state (fromWorkflowManager)
-
getItem
public Item getItem()
Description copied from interface:InProgressSubmissionGet the incomplete item object- Specified by:
getItemin interfaceInProgressSubmission- Returns:
- the item
-
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)
-
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
-
-