public class WorkspaceItemServiceImpl extends Object implements WorkspaceItemService
| Modifier and Type | Field and Description |
|---|---|
protected AuthorizeService |
authorizeService |
protected CollectionService |
collectionService |
protected ItemService |
itemService |
protected WorkflowService |
workflowService |
protected WorkspaceItemDAO |
workspaceItemDAO |
| Modifier | Constructor and Description |
|---|---|
protected |
WorkspaceItemServiceImpl() |
| 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 workflowItem) |
void |
deleteAll(Context context,
WorkspaceItem workspaceItem)
Delete the workspace item.
|
void |
deleteWrapper(Context context,
WorkspaceItem workspaceItem)
Deletes submission wrapper, doesn't delete item contents
|
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
|
void |
update(Context context,
WorkspaceItem workspaceItem)
Update the submission, including the unarchived item.
|
@Autowired(required=true) protected WorkspaceItemDAO workspaceItemDAO
@Autowired(required=true) protected AuthorizeService authorizeService
@Autowired(required=true) protected CollectionService collectionService
@Autowired(required=true) protected ItemService itemService
@Autowired(required=true) protected WorkflowService workflowService
public WorkspaceItem find(Context context, int id) throws SQLException
WorkspaceItemServicefind in interface WorkspaceItemServicecontext - DSpace context objectid - ID of the workspace itemSQLException - if database errorpublic WorkspaceItem create(Context context, Collection collection, boolean template) throws AuthorizeException, SQLException
WorkspaceItemServicecreate in interface WorkspaceItemServicecontext - DSpace context objectcollection - Collection being submitted totemplate - if true, the workspace item starts as a copy
of the collection's template itemAuthorizeException - if authorization errorSQLException - if database errorpublic WorkspaceItem create(Context c, WorkflowItem workflowItem) throws SQLException, AuthorizeException
create in interface WorkspaceItemServiceSQLExceptionAuthorizeExceptionpublic List<WorkspaceItem> findByEPerson(Context context, EPerson ep) throws SQLException
WorkspaceItemServicefindByEPerson in interface WorkspaceItemServicecontext - the context objectep - the epersonSQLException - if database errorpublic List<WorkspaceItem> findByCollection(Context context, Collection collection) throws SQLException
WorkspaceItemServicefindByCollection in interface WorkspaceItemServicecontext - the context objectcollection - the collectionSQLException - if database errorpublic WorkspaceItem findByItem(Context context, Item item) throws SQLException
WorkspaceItemServicefindByItem in interface WorkspaceItemServicecontext - the context objectitem - the itemSQLException - if database errorpublic List<WorkspaceItem> findAllSupervisedItems(Context context) throws SQLException
findAllSupervisedItems in interface WorkspaceItemServiceSQLExceptionpublic List<WorkspaceItem> findSupervisedItemsByEPerson(Context context, EPerson ePerson) throws SQLException
findSupervisedItemsByEPerson in interface WorkspaceItemServiceSQLExceptionpublic List<WorkspaceItem> findAll(Context context) throws SQLException
WorkspaceItemServicefindAll in interface WorkspaceItemServicecontext - the context objectSQLException - if database errorpublic void update(Context context, WorkspaceItem workspaceItem) throws SQLException, AuthorizeException
InProgressSubmissionServiceupdate in interface InProgressSubmissionService<WorkspaceItem>context - contextworkspaceItem - submissionSQLException - if database errorAuthorizeException - if authorization errorpublic void deleteAll(Context context, WorkspaceItem workspaceItem) throws SQLException, AuthorizeException, IOException
WorkspaceItemServicedeleteAll in interface WorkspaceItemServicecontext - contextworkspaceItem - workspace itemSQLException - if database errorAuthorizeException - if authorization errorIOException - if IO errorpublic int countTotal(Context context) throws SQLException
countTotal in interface WorkspaceItemServiceSQLExceptionpublic List<Map.Entry<Integer,Long>> getStageReachedCounts(Context context) throws SQLException
WorkspaceItemServicegetStageReachedCounts in interface WorkspaceItemServiceSQLException - if database errorpublic void deleteWrapper(Context context, WorkspaceItem workspaceItem) throws SQLException, AuthorizeException
InProgressSubmissionServicedeleteWrapper in interface InProgressSubmissionService<WorkspaceItem>context - contextworkspaceItem - submissionSQLException - if database errorAuthorizeException - if authorization errorCopyright © 2016 DuraSpace. All rights reserved.