public class WorkspaceItem extends 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(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 SQLException
context - DSpace context objectid - ID of the workspace itemSQLException - passed through.public static WorkspaceItem create(Context c, Collection coll, boolean template) throws AuthorizeException, SQLException, 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.SQLException - passed through.IOException - passed through.public static WorkspaceItem[] findByEPerson(Context context, EPerson ep) throws SQLException
context - the context objectep - the epersonSQLException - passed through.public static WorkspaceItem[] findByCollection(Context context, Collection c) throws SQLException
context - the context objectc - the collectionSQLException - passed through.public static WorkspaceItem findByItem(Context context, Item i) throws SQLException
context - the context objecti - the itemSQLException - passed through.public static WorkspaceItem[] findAll(Context context) throws SQLException
context - the context objectSQLException - 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 SQLException,
AuthorizeException
update in interface InProgressSubmissionSQLException - passed through.AuthorizeException - passed through.public boolean equals(Object o)
public void deleteAll()
throws SQLException,
AuthorizeException,
IOException
SQLException - passed through.AuthorizeException - if not original submitter or an administrator.IOException - passed through.public void deleteWrapper()
throws SQLException,
AuthorizeException,
IOException
InProgressSubmissiondeleteWrapper in interface InProgressSubmissionSQLExceptionAuthorizeExceptionIOExceptionpublic Item getItem()
InProgressSubmissiongetItem in interface InProgressSubmissionpublic Collection getCollection()
InProgressSubmissiongetCollection in interface InProgressSubmissionpublic 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 beforeCopyright © 2022 LYRASIS. All rights reserved.