public class WorkflowItem extends Object implements InProgressSubmission
| Modifier and Type | Method and Description |
|---|---|
void |
deleteWrapper()
delete the WorkflowItem, retaining the Item
|
static WorkflowItem |
find(Context context,
int id)
Get a workflow item from the database.
|
static WorkflowItem[] |
findAll(Context c)
return all workflowitems
|
static WorkflowItem[] |
findByCollection(Context context,
Collection c)
Get all workflow items for a particular collection.
|
static WorkflowItem[] |
findByEPerson(Context context,
EPerson ep)
Get all workflow items that were original submissions by a particular
e-person.
|
static WorkflowItem |
findByItem(Context context,
Item i)
Check to see if a particular item is currently under Workflow.
|
Collection |
getCollection()
Get the collection being submitted to
|
int |
getID()
Get the internal ID of this workflow item
|
Item |
getItem()
Get the incomplete item object
|
EPerson |
getOwner()
get owner of WorkflowItem
|
int |
getState()
Get state of WorkflowItem
|
EPerson |
getSubmitter()
Get the submitter
|
boolean |
hasMultipleFiles()
Find out if the submission has (or is intended to have) more than one
associated bitstream.
|
boolean |
hasMultipleTitles()
Find out if the submission has (or is intended to have) more than one
title.
|
boolean |
isPublishedBefore()
Find out if the submission has been published or publicly distributed
before
|
void |
setMultipleFiles(boolean b)
Indicate whether the submission is intended to have more than one file.
|
void |
setMultipleTitles(boolean b)
Indicate whether the submission is intended to have more than one title.
|
void |
setOwner(EPerson ep)
set owner of WorkflowItem
|
void |
setPublishedBefore(boolean b)
Indicate whether the submission has been published or publicly
distributed before
|
void |
setState(int newstate)
Set state of WorkflowItem
|
void |
update()
Update the workflow item, including the unarchived item.
|
public static WorkflowItem find(Context context, int id) throws SQLException
context - DSpace context objectid - ID of the workspace itemSQLExceptionpublic static WorkflowItem[] findAll(Context c) throws SQLException
c - active contextSQLExceptionpublic static WorkflowItem[] findByEPerson(Context context, EPerson ep) throws SQLException
context - the context objectep - the epersonSQLExceptionpublic static WorkflowItem[] findByCollection(Context context, Collection c) throws SQLException
context - the context objectc - the collectionSQLExceptionpublic static WorkflowItem findByItem(Context context, Item i) throws SQLException
context - the context objecti - the itemSQLExceptionpublic int getID()
getID in interface InProgressSubmissionpublic EPerson getOwner()
public void setOwner(EPerson ep)
ep - ownerpublic int getState()
public void setState(int newstate)
newstate - new state (from WorkflowManager)public void update()
throws SQLException,
AuthorizeException
update in interface InProgressSubmissionSQLExceptionAuthorizeExceptionpublic void deleteWrapper()
throws SQLException,
IOException,
AuthorizeException
deleteWrapper in interface InProgressSubmissionSQLExceptionIOExceptionAuthorizeExceptionpublic Item getItem()
InProgressSubmissiongetItem in interface InProgressSubmissionpublic Collection getCollection()
InProgressSubmissiongetCollection in interface InProgressSubmissionpublic EPerson getSubmitter() throws SQLException
InProgressSubmissiongetSubmitter in interface InProgressSubmissionSQLExceptionpublic boolean hasMultipleFiles()
InProgressSubmissionhasMultipleFiles in interface InProgressSubmissiontrue if there is to be more than one file.public void setMultipleFiles(boolean b)
InProgressSubmissionsetMultipleFiles in interface InProgressSubmissionb - if true, submission may have more than one
file.public boolean hasMultipleTitles()
InProgressSubmissionhasMultipleTitles in interface InProgressSubmissiontrue if there is to be more than one file.public void setMultipleTitles(boolean b)
InProgressSubmissionsetMultipleTitles in interface InProgressSubmissionb - if true, submission may have more than one
title.public boolean isPublishedBefore()
InProgressSubmissionisPublishedBefore in interface InProgressSubmissiontrue if it has been published beforepublic void setPublishedBefore(boolean b)
InProgressSubmissionsetPublishedBefore in interface InProgressSubmissionb - true if it has been published beforeCopyright © 2014 DuraSpace. All Rights Reserved.