public class WorkspaceItem extends java.lang.Object implements InProgressSubmission
| Modifier and Type | Method and Description |
|---|---|
static WorkspaceItem |
create(Context c,
Collection coll,
boolean template)
Create a new workspace item, with a new ID.
|
void |
deleteAll()
Delete the workspace item.
|
void |
deleteWrapper()
Deletes submission wrapper, doesn't delete item contents
|
boolean |
equals(java.lang.Object o)
Decide if this WorkspaceItem is equal to another
|
static WorkspaceItem |
find(Context context,
int id)
Get a workspace item from the database.
|
static WorkspaceItem[] |
findAll(Context context)
Get all workspace items in the whole system
|
static WorkspaceItem[] |
findByCollection(Context context,
Collection c)
Get all workspace items for a particular collection.
|
static WorkspaceItem[] |
findByEPerson(Context context,
EPerson ep)
Get all workspace items for a particular e-person.
|
static WorkspaceItem |
findByItem(Context context,
Item i)
Check to see if a particular item is currently still in a user's Workspace.
|
Collection |
getCollection()
Get the collection being submitted to
|
int |
getID()
Get the internal ID of this workspace item
|
Item |
getItem()
Get the incomplete item object
|
int |
getPageReached()
Get the value of the page reached column (which represents the page
reached within a stage/step)
|
int |
getStageReached()
Get the value of the stage reached column
|
EPerson |
getSubmitter()
Get the submitter
|
int |
hashCode() |
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 |
setPageReached(int v)
Set the value of the page reached column (which represents the page
reached within a stage/step)
|
void |
setPublishedBefore(boolean b)
Indicate whether the submission has been published or publicly
distributed before
|
void |
setStageReached(int v)
Set the value of the stage reached column
|
void |
update()
Update the workspace item, including the unarchived item.
|
public static WorkspaceItem find(Context context, int id) throws java.sql.SQLException
context - DSpace context objectid - ID of the workspace itemjava.sql.SQLException - passed through.public static WorkspaceItem create(Context c, Collection coll, boolean template) throws AuthorizeException, java.sql.SQLException, java.io.IOException
c - DSpace context objectcoll - Collection being submitted totemplate - if true, the workspace item starts as a copy
of the collection's template itemAuthorizeException - passed through.java.sql.SQLException - passed through.java.io.IOException - passed through.public static WorkspaceItem[] findByEPerson(Context context, EPerson ep) throws java.sql.SQLException
context - the context objectep - the epersonjava.sql.SQLException - passed through.public static WorkspaceItem[] findByCollection(Context context, Collection c) throws java.sql.SQLException
context - the context objectc - the collectionjava.sql.SQLException - passed through.public static WorkspaceItem findByItem(Context context, Item i) throws java.sql.SQLException
context - the context objecti - the itemjava.sql.SQLException - passed through.public static WorkspaceItem[] findAll(Context context) throws java.sql.SQLException
context - the context objectjava.sql.SQLException - passed through.public int getID()
getID in interface InProgressSubmissionpublic int getStageReached()
public void setStageReached(int v)
v - the value of the stage reached columnpublic int getPageReached()
public void setPageReached(int v)
v - the value of the page reached columnpublic void update()
throws java.sql.SQLException,
AuthorizeException
update in interface InProgressSubmissionjava.sql.SQLException - passed through.AuthorizeException - passed through.public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - The other workspace item to compare topublic int hashCode()
hashCode in class java.lang.Objectpublic void deleteAll()
throws java.sql.SQLException,
AuthorizeException,
java.io.IOException
java.sql.SQLException - passed through.AuthorizeException - if not original submitter or an administrator.java.io.IOException - passed through.public void deleteWrapper()
throws java.sql.SQLException,
AuthorizeException,
java.io.IOException
InProgressSubmissiondeleteWrapper in interface InProgressSubmissionjava.sql.SQLExceptionAuthorizeExceptionjava.io.IOExceptionpublic Item getItem()
InProgressSubmissiongetItem in interface InProgressSubmissionpublic Collection getCollection()
InProgressSubmissiongetCollection in interface InProgressSubmissionpublic 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 beforeCopyright © 2018 DuraSpace. All Rights Reserved.