public class WorkflowCuratorServiceImpl extends Object implements WorkflowCuratorService
| Modifier and Type | Class and Description |
|---|---|
protected class |
WorkflowCuratorServiceImpl.FlowStep |
protected class |
WorkflowCuratorServiceImpl.Task |
protected class |
WorkflowCuratorServiceImpl.TaskSet |
| Modifier and Type | Field and Description |
|---|---|
protected BasicWorkflowItemService |
basicWorkflowItemService |
protected BasicWorkflowService |
basicWorkflowService |
protected CollectionService |
collectionService |
protected ConfigurationService |
configurationService |
protected EPersonService |
ePersonService |
protected String[] |
flowSteps |
protected GroupService |
groupService |
protected Map<String,WorkflowCuratorServiceImpl.TaskSet> |
tsMap |
protected WorkflowServiceFactory |
workflowServiceFactory |
| Modifier | Constructor and Description |
|---|---|
protected |
WorkflowCuratorServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
curate(Curator curator,
Context c,
BasicWorkflowItem wfi) |
boolean |
curate(Curator curator,
Context c,
String wfId)
Determines and executes curation of a Workflow item.
|
boolean |
doCuration(Context c,
BasicWorkflowItem wfi)
Determines and executes curation on a Workflow item.
|
protected WorkflowCuratorServiceImpl.FlowStep |
getFlowStep(BasicWorkflowItem wfi) |
void |
init()
Initialize the bean (after dependency injection has already taken place).
|
protected void |
loadTaskConfig(File cfgFile) |
boolean |
needsCuration(BasicWorkflowItem wfi) |
protected void |
notifyContacts(Context c,
BasicWorkflowItem wfi,
WorkflowCuratorServiceImpl.Task task,
String status,
String action,
String message) |
protected List<EPerson> |
resolveContacts(Context c,
List<String> contacts,
BasicWorkflowItem wfi) |
protected int |
state2step(int state) |
protected int |
stepName2step(String name) |
protected Map<String,WorkflowCuratorServiceImpl.TaskSet> tsMap
protected final String[] flowSteps
@Autowired(required=true) protected CollectionService collectionService
@Autowired(required=true) protected EPersonService ePersonService
@Autowired(required=true) protected GroupService groupService
protected BasicWorkflowItemService basicWorkflowItemService
protected BasicWorkflowService basicWorkflowService
@Autowired(required=true) protected WorkflowServiceFactory workflowServiceFactory
@Autowired(required=true) protected ConfigurationService configurationService
public void init()
throws Exception
Exceptionpublic boolean needsCuration(BasicWorkflowItem wfi)
needsCuration in interface WorkflowCuratorServicepublic boolean doCuration(Context c, BasicWorkflowItem wfi) throws AuthorizeException, IOException, SQLException
WorkflowCuratorServicedoCuration in interface WorkflowCuratorServicec - the contextwfi - the workflow itemAuthorizeException - if authorization errorIOException - if IO errorSQLException - if database errorpublic boolean curate(Curator curator, Context c, String wfId) throws AuthorizeException, IOException, SQLException
WorkflowCuratorServicecurate in interface WorkflowCuratorServicec - the user contextwfId - the workflow idAuthorizeException - if authorization errorIOException - if IO errorSQLException - if database errorpublic boolean curate(Curator curator, Context c, BasicWorkflowItem wfi) throws AuthorizeException, IOException, SQLException
curate in interface WorkflowCuratorServiceAuthorizeExceptionIOExceptionSQLExceptionprotected void notifyContacts(Context c, BasicWorkflowItem wfi, WorkflowCuratorServiceImpl.Task task, String status, String action, String message) throws AuthorizeException, IOException, SQLException
protected List<EPerson> resolveContacts(Context c, List<String> contacts, BasicWorkflowItem wfi) throws AuthorizeException, IOException, SQLException
protected WorkflowCuratorServiceImpl.FlowStep getFlowStep(BasicWorkflowItem wfi)
protected int state2step(int state)
protected int stepName2step(String name)
protected void loadTaskConfig(File cfgFile) throws IOException
IOExceptionCopyright © 2016 DuraSpace. All rights reserved.