public class XmlWorkflowItem extends Object implements InProgressSubmission
| Modifier and Type | Method and Description |
|---|---|
static int |
countAll(Context c)
return all workflowitems
|
static int |
countAllInCollection(Context c,
int collId)
return all workflowitems
|
static XmlWorkflowItem |
create(Context context) |
void |
deleteWrapper()
delete the WorkflowItem, retaining the Item
|
static XmlWorkflowItem |
find(Context context,
int id)
Get a workflow item from the database.
|
static XmlWorkflowItem[] |
findAll(Context c)
return all workflowitems
|
static XmlWorkflowItem[] |
findAll(Context c,
int page,
int pagesize)
return all workflowitems for a certain page
|
static XmlWorkflowItem[] |
findAllInCollection(Context c,
int page,
int pagesize,
int collectionId)
return all workflowitems for a certain page with a certain collection
|
static XmlWorkflowItem[] |
findByCollection(Context context,
Collection c)
Get all workflow items for a particular collection.
|
static XmlWorkflowItem[] |
findByEPerson(Context context,
EPerson ep) |
static XmlWorkflowItem |
findByItem(Context context,
Item item)
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 |
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 |
setCollection(Collection collection) |
void |
setItem(Item item) |
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 |
setPublishedBefore(boolean b)
Indicate whether the submission has been published or publicly
distributed before
|
void |
update()
Update the workflow item, including the unarchived item.
|
public static XmlWorkflowItem create(Context context) throws AuthorizeException, IOException, SQLException
public static XmlWorkflowItem find(Context context, int id) throws SQLException, AuthorizeException, IOException
context - DSpace context objectid - ID of the workspace itemSQLExceptionAuthorizeExceptionIOExceptionpublic static XmlWorkflowItem[] findAll(Context c) throws SQLException, AuthorizeException, IOException, WorkflowConfigurationException
c - active contextSQLExceptionAuthorizeExceptionIOExceptionWorkflowConfigurationExceptionpublic static XmlWorkflowItem[] findAll(Context c, int page, int pagesize) throws SQLException, AuthorizeException, IOException, WorkflowConfigurationException
c - active contextSQLExceptionAuthorizeExceptionIOExceptionWorkflowConfigurationExceptionpublic static XmlWorkflowItem[] findAllInCollection(Context c, int page, int pagesize, int collectionId) throws SQLException, AuthorizeException, IOException, WorkflowConfigurationException
c - active contextSQLExceptionAuthorizeExceptionIOExceptionWorkflowConfigurationExceptionpublic static int countAll(Context c) throws SQLException, AuthorizeException, IOException, WorkflowConfigurationException
c - active contextSQLExceptionAuthorizeExceptionIOExceptionWorkflowConfigurationExceptionpublic static int countAllInCollection(Context c, int collId) throws SQLException, AuthorizeException, IOException, WorkflowConfigurationException
c - active contextSQLExceptionAuthorizeExceptionIOExceptionWorkflowConfigurationExceptionpublic static XmlWorkflowItem[] findByEPerson(Context context, EPerson ep) throws SQLException, AuthorizeException, IOException, WorkflowConfigurationException
public static XmlWorkflowItem[] findByCollection(Context context, Collection c) throws SQLException, AuthorizeException, IOException
context - the context objectc - the collectionSQLExceptionAuthorizeExceptionIOExceptionpublic static XmlWorkflowItem findByItem(Context context, Item item) throws SQLException
context - the context objectitem - the itemSQLExceptionpublic void update()
throws SQLException,
AuthorizeException
update in interface InProgressSubmissionSQLExceptionAuthorizeExceptionpublic int getID()
getID in interface InProgressSubmissionpublic Collection getCollection()
InProgressSubmissiongetCollection in interface InProgressSubmissionpublic void setCollection(Collection collection)
public Item getItem()
InProgressSubmissiongetItem in interface InProgressSubmissionpublic void setItem(Item item)
public 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 beforepublic void deleteWrapper()
throws SQLException,
IOException,
AuthorizeException
deleteWrapper in interface InProgressSubmissionSQLExceptionIOExceptionAuthorizeExceptionCopyright © 2013 DuraSpace. All Rights Reserved.