|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.workflow.WorkflowItem
public class WorkflowItem
Class representing an item going through the workflow process in DSpace
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static WorkflowItem find(Context context,
int id)
throws SQLException
context - DSpace context objectid - ID of the workspace item
SQLException
public static WorkflowItem[] findAll(Context c)
throws SQLException
c - active context
SQLException
public static WorkflowItem[] findByEPerson(Context context,
EPerson ep)
throws SQLException
context - the context objectep - the eperson
SQLException
public static WorkflowItem[] findByCollection(Context context,
Collection c)
throws SQLException
context - the context objectc - the collection
SQLException
public static WorkflowItem findByItem(Context context,
Item i)
throws SQLException
context - the context objecti - the item
SQLExceptionpublic 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,
IOException,
AuthorizeException
update in interface InProgressSubmissionSQLException
IOException
AuthorizeException
public void deleteWrapper()
throws SQLException,
IOException,
AuthorizeException
deleteWrapper in interface InProgressSubmissionSQLException
IOException
AuthorizeExceptionpublic Item getItem()
InProgressSubmission
getItem in interface InProgressSubmissionpublic Collection getCollection()
InProgressSubmission
getCollection in interface InProgressSubmission
public EPerson getSubmitter()
throws SQLException
InProgressSubmission
getSubmitter in interface InProgressSubmissionSQLExceptionpublic boolean hasMultipleFiles()
InProgressSubmission
hasMultipleFiles in interface InProgressSubmissiontrue if there is to be more than one file.public void setMultipleFiles(boolean b)
InProgressSubmission
setMultipleFiles in interface InProgressSubmissionb - if true, submission may have more than one
file.public boolean hasMultipleTitles()
InProgressSubmission
hasMultipleTitles in interface InProgressSubmissiontrue if there is to be more than one file.public void setMultipleTitles(boolean b)
InProgressSubmission
setMultipleTitles in interface InProgressSubmissionb - if true, submission may have more than one
title.public boolean isPublishedBefore()
InProgressSubmission
isPublishedBefore in interface InProgressSubmissiontrue if it has been published beforepublic void setPublishedBefore(boolean b)
InProgressSubmission
setPublishedBefore in interface InProgressSubmissionb - true if it has been published before
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||