public interface WorkspaceItemService extends InProgressSubmissionService<WorkspaceItem>
| Modifier and Type | Method and Description |
|---|---|
int |
countTotal(Context context) |
WorkspaceItem |
create(Context context,
Collection collection,
boolean template)
Create a new workspace item, with a new ID.
|
WorkspaceItem |
create(Context c,
WorkflowItem wfi) |
void |
deleteAll(Context context,
WorkspaceItem workspaceItem)
Delete the workspace item.
|
WorkspaceItem |
find(Context context,
int id)
Get a workspace item from the database.
|
List<WorkspaceItem> |
findAll(Context context)
Get all workspace items in the whole system
|
List<WorkspaceItem> |
findAllSupervisedItems(Context context) |
List<WorkspaceItem> |
findByCollection(Context context,
Collection collection)
Get all workspace items for a particular collection.
|
List<WorkspaceItem> |
findByEPerson(Context context,
EPerson ep)
Get all workspace items for a particular e-person.
|
WorkspaceItem |
findByItem(Context context,
Item item)
Check to see if a particular item is currently still in a user's Workspace.
|
List<WorkspaceItem> |
findSupervisedItemsByEPerson(Context context,
EPerson ePerson) |
List<Map.Entry<Integer,Long>> |
getStageReachedCounts(Context context)
The map entry returned contains stage reached as the key and count of items in that stage as a value
|
deleteWrapper, updateWorkspaceItem find(Context context, int id) throws SQLException
context - DSpace context objectid - ID of the workspace itemSQLExceptionWorkspaceItem create(Context context, Collection collection, boolean template) throws AuthorizeException, SQLException
context - DSpace context objectcollection - Collection being submitted totemplate - if true, the workspace item starts as a copy
of the collection's template itemAuthorizeExceptionSQLExceptionWorkspaceItem create(Context c, WorkflowItem wfi) throws SQLException, AuthorizeException
SQLExceptionAuthorizeExceptionList<WorkspaceItem> findByEPerson(Context context, EPerson ep) throws SQLException
context - the context objectep - the epersonSQLExceptionList<WorkspaceItem> findByCollection(Context context, Collection collection) throws SQLException
context - the context objectcollection - the collectionSQLExceptionWorkspaceItem findByItem(Context context, Item item) throws SQLException
context - the context objectitem - the itemSQLExceptionList<WorkspaceItem> findAllSupervisedItems(Context context) throws SQLException
SQLExceptionList<WorkspaceItem> findSupervisedItemsByEPerson(Context context, EPerson ePerson) throws SQLException
SQLExceptionList<WorkspaceItem> findAll(Context context) throws SQLException
context - the context objectSQLExceptionvoid deleteAll(Context context, WorkspaceItem workspaceItem) throws SQLException, AuthorizeException, IOException
int countTotal(Context context) throws SQLException
SQLExceptionList<Map.Entry<Integer,Long>> getStageReachedCounts(Context context) throws SQLException
context - SQLExceptionCopyright © 2016 DuraSpace. All Rights Reserved.