public class XmlWorkflowItem extends java.lang.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, java.io.IOException, java.sql.SQLException
AuthorizeExceptionjava.io.IOExceptionjava.sql.SQLExceptionpublic static XmlWorkflowItem find(Context context, int id) throws java.sql.SQLException, AuthorizeException, java.io.IOException
context - DSpace context objectid - ID of the workspace itemjava.sql.SQLExceptionAuthorizeExceptionjava.io.IOExceptionpublic static XmlWorkflowItem[] findAll(Context c) throws java.sql.SQLException, AuthorizeException, java.io.IOException, WorkflowConfigurationException
c - active contextjava.sql.SQLExceptionAuthorizeExceptionjava.io.IOExceptionWorkflowConfigurationExceptionpublic static XmlWorkflowItem[] findAll(Context c, int page, int pagesize) throws java.sql.SQLException, AuthorizeException, java.io.IOException, WorkflowConfigurationException
c - active contextjava.sql.SQLExceptionAuthorizeExceptionjava.io.IOExceptionWorkflowConfigurationExceptionpublic static XmlWorkflowItem[] findAllInCollection(Context c, int page, int pagesize, int collectionId) throws java.sql.SQLException, AuthorizeException, java.io.IOException, WorkflowConfigurationException
c - active contextjava.sql.SQLExceptionAuthorizeExceptionjava.io.IOExceptionWorkflowConfigurationExceptionpublic static int countAll(Context c) throws java.sql.SQLException, AuthorizeException, java.io.IOException, WorkflowConfigurationException
c - active contextjava.sql.SQLExceptionAuthorizeExceptionjava.io.IOExceptionWorkflowConfigurationExceptionpublic static int countAllInCollection(Context c, int collId) throws java.sql.SQLException, AuthorizeException, java.io.IOException, WorkflowConfigurationException
c - active contextjava.sql.SQLExceptionAuthorizeExceptionjava.io.IOExceptionWorkflowConfigurationExceptionpublic static XmlWorkflowItem[] findByEPerson(Context context, EPerson ep) throws java.sql.SQLException, AuthorizeException, java.io.IOException, WorkflowConfigurationException
java.sql.SQLExceptionAuthorizeExceptionjava.io.IOExceptionWorkflowConfigurationExceptionpublic static XmlWorkflowItem[] findByCollection(Context context, Collection c) throws java.sql.SQLException, AuthorizeException, java.io.IOException
context - the context objectc - the collectionjava.sql.SQLExceptionAuthorizeExceptionjava.io.IOExceptionpublic static XmlWorkflowItem findByItem(Context context, Item item) throws java.sql.SQLException
context - the context objectitem - the itemjava.sql.SQLExceptionpublic void update()
throws java.sql.SQLException,
AuthorizeException
update in interface InProgressSubmissionjava.sql.SQLExceptionAuthorizeExceptionpublic 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 java.sql.SQLException
InProgressSubmissiongetSubmitter in interface InProgressSubmissionjava.sql.SQLExceptionpublic 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 java.sql.SQLException,
java.io.IOException,
AuthorizeException
deleteWrapper in interface InProgressSubmissionjava.sql.SQLExceptionjava.io.IOExceptionAuthorizeExceptionCopyright © 2018 DuraSpace. All Rights Reserved.