|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.content.WorkspaceItem
public class WorkspaceItem
Class representing an item in the process of being submitted by a user
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static WorkspaceItem find(Context context,
int id)
throws SQLException
context - DSpace context objectid - ID of the workspace item
SQLException
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 item
AuthorizeException
SQLException
IOException
public static WorkspaceItem[] findByEPerson(Context context,
EPerson ep)
throws SQLException
context - the context objectep - the eperson
SQLException
public static WorkspaceItem[] findByCollection(Context context,
Collection c)
throws SQLException
context - the context objectc - the collection
SQLException
public static WorkspaceItem findByItem(Context context,
Item i)
throws SQLException
context - the context objecti - the item
SQLException
public static WorkspaceItem[] findAll(Context context)
throws SQLException
context - the context object
SQLExceptionpublic 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 column
public void update()
throws SQLException,
AuthorizeException,
IOException
update in interface InProgressSubmissionSQLException
AuthorizeException
IOExceptionpublic boolean equals(Object o)
equals in class Objecto - The other workspace item to compare to
public int hashCode()
hashCode in class Object
public void deleteAll()
throws SQLException,
AuthorizeException,
IOException
SQLException
AuthorizeException
IOException
public void deleteWrapper()
throws SQLException,
AuthorizeException,
IOException
InProgressSubmission
deleteWrapper in interface InProgressSubmissionSQLException
AuthorizeException
IOExceptionpublic Item getItem()
InProgressSubmission
getItem in interface InProgressSubmissionpublic Collection getCollection()
InProgressSubmission
getCollection in interface InProgressSubmission
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||