public interface WorkflowService<T extends WorkflowItem>
| Modifier and Type | Method and Description |
|---|---|
WorkspaceItem |
abort(Context c,
T wi,
EPerson e)
abort() aborts a workflow, completely deleting it (administrator do this)
(it will basically do a reject from any state - the item ends up back in
the user's PersonalWorkspace
|
void |
addInitialWorkspaceItemPolicies(Context context,
WorkspaceItem workspaceItem) |
Item |
archive(Context context,
T workflowItem) |
void |
deleteCollection(Context context,
Collection collection) |
List<String> |
getEPersonDeleteConstraints(Context context,
EPerson ePerson) |
List<String> |
getFlywayMigrationLocations() |
String |
getMyDSpaceLink() |
Group |
getWorkflowRoleGroup(Context context,
Collection collection,
String roleName,
Group roleGroup) |
WorkspaceItem |
sendWorkflowItemBackSubmission(Context c,
T workflowItem,
EPerson e,
String provenance,
String rejection_message) |
T |
start(Context context,
WorkspaceItem wsi)
startWorkflow() begins a workflow - in a single transaction do away with
the PersonalWorkspace entry and turn it into a WorkflowItem.
|
T |
startWithoutNotify(Context c,
WorkspaceItem wsi)
startWithoutNotify() starts the workflow normally, but disables
notifications (useful for large imports,) for the first workflow step -
subsequent notifications happen normally
|
void addInitialWorkspaceItemPolicies(Context context, WorkspaceItem workspaceItem) throws SQLException, AuthorizeException
SQLExceptionAuthorizeExceptionT start(Context context, WorkspaceItem wsi) throws SQLException, AuthorizeException, IOException, WorkflowException
context - Contextwsi - The WorkspaceItem to convert to a workflow itemSQLExceptionAuthorizeExceptionIOExceptionWorkflowExceptionT startWithoutNotify(Context c, WorkspaceItem wsi) throws SQLException, AuthorizeException, IOException, WorkflowException
Item archive(Context context, T workflowItem) throws SQLException, IOException, AuthorizeException
WorkspaceItem abort(Context c, T wi, EPerson e) throws SQLException, AuthorizeException, IOException
c - Contextwi - WorkflowItem to operate one - EPerson doing the operationSQLExceptionAuthorizeExceptionIOExceptionWorkspaceItem sendWorkflowItemBackSubmission(Context c, T workflowItem, EPerson e, String provenance, String rejection_message) throws SQLException, AuthorizeException, IOException
String getMyDSpaceLink()
void deleteCollection(Context context, Collection collection) throws SQLException, IOException, AuthorizeException
List<String> getEPersonDeleteConstraints(Context context, EPerson ePerson) throws SQLException
SQLExceptionGroup getWorkflowRoleGroup(Context context, Collection collection, String roleName, Group roleGroup) throws SQLException, IOException, WorkflowConfigurationException, AuthorizeException, WorkflowException
Copyright © 2016 DuraSpace. All rights reserved.