|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.xmlworkflow.storedcomponents.XmlWorkflowItem
public class XmlWorkflowItem
Class representing an item going through the workflow process in DSpace
| Method Summary | |
|---|---|
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)
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static XmlWorkflowItem create(Context context)
throws AuthorizeException,
IOException,
SQLException
AuthorizeException
IOException
SQLException
public static XmlWorkflowItem find(Context context,
int id)
throws SQLException,
AuthorizeException,
IOException
context - DSpace context objectid - ID of the workspace item
SQLException
AuthorizeException
IOException
public static XmlWorkflowItem[] findAll(Context c)
throws SQLException,
AuthorizeException,
IOException,
WorkflowConfigurationException
c - active context
SQLException
AuthorizeException
IOException
WorkflowConfigurationException
public static XmlWorkflowItem[] findAll(Context c,
int page,
int pagesize)
throws SQLException,
AuthorizeException,
IOException,
WorkflowConfigurationException
c - active context
SQLException
AuthorizeException
IOException
WorkflowConfigurationException
public static XmlWorkflowItem[] findAllInCollection(Context c,
int page,
int pagesize,
int collectionId)
throws SQLException,
AuthorizeException,
IOException,
WorkflowConfigurationException
c - active context
SQLException
AuthorizeException
IOException
WorkflowConfigurationException
public static int countAll(Context c)
throws SQLException,
AuthorizeException,
IOException,
WorkflowConfigurationException
c - active context
SQLException
AuthorizeException
IOException
WorkflowConfigurationException
public static int countAllInCollection(Context c,
int collId)
throws SQLException,
AuthorizeException,
IOException,
WorkflowConfigurationException
c - active context
SQLException
AuthorizeException
IOException
WorkflowConfigurationException
public static XmlWorkflowItem[] findByEPerson(Context context,
EPerson ep)
throws SQLException,
AuthorizeException,
IOException,
WorkflowConfigurationException
SQLException
AuthorizeException
IOException
WorkflowConfigurationException
public static XmlWorkflowItem[] findByCollection(Context context,
Collection c)
throws SQLException,
AuthorizeException,
IOException
context - the context objectc - the collection
SQLException
AuthorizeException
IOException
public void update()
throws SQLException,
IOException,
AuthorizeException
update in interface InProgressSubmissionSQLException
IOException
AuthorizeExceptionpublic int getID()
getID in interface InProgressSubmissionpublic Collection getCollection()
InProgressSubmission
getCollection in interface InProgressSubmissionpublic void setCollection(Collection collection)
public Item getItem()
InProgressSubmission
getItem in interface InProgressSubmissionpublic void setItem(Item item)
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
public void deleteWrapper()
throws SQLException,
IOException,
AuthorizeException
deleteWrapper in interface InProgressSubmissionSQLException
IOException
AuthorizeException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||