Package org.alfresco.repo.workflow
Class WorkflowInterpreter
java.lang.Object
org.springframework.extensions.surf.util.AbstractLifecycleBean
org.alfresco.repo.admin.BaseInterpreter
org.alfresco.repo.workflow.WorkflowInterpreter
- All Implemented Interfaces:
EventListener,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener
An interactive console for Workflows.
- Author:
- davidc
-
Field Summary
Fields inherited from class org.alfresco.repo.admin.BaseInterpreter
authorityService, lastCommand, transactionServiceFields inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringexecuteCommand(String line) Execute a single command using the BufferedReader passed in for any data needed.Get currently used workflow definitionprotected booleanhasAuthority(String username) static voidMain entry point.protected voidonBootstrap(org.springframework.context.ApplicationEvent event) protected voidonShutdown(org.springframework.context.ApplicationEvent event) voidsetAuthorityDAO(AuthorityDAO authorityDAO) voidsetDictionaryService(DictionaryService dictionaryService) voidsetFileFolderService(FileFolderService fileFolderService) voidsetNamespaceService(NamespaceService namespaceService) voidsetNodeService(NodeService nodeService) voidsetPersonService(PersonService personService) voidsetTenantService(TenantService tenantService) voidsetTransactionService(TransactionService transactionService) voidsetWorkflowService(WorkflowService workflowService) Methods inherited from class org.alfresco.repo.admin.BaseInterpreter
getConsoleBean, getCurrentUserName, interpretCommand, rep, runMain, runMain, setAuthorityService, setCurrentUserNameMethods inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean
getApplicationContext, onApplicationEvent, setApplicationContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Constructor Details
-
WorkflowInterpreter
public WorkflowInterpreter()
-
-
Method Details
-
onBootstrap
protected void onBootstrap(org.springframework.context.ApplicationEvent event) - Overrides:
onBootstrapin classBaseInterpreter
-
onShutdown
protected void onShutdown(org.springframework.context.ApplicationEvent event) - Overrides:
onShutdownin classBaseInterpreter
-
setWorkflowService
- Parameters:
workflowService- The Workflow Service
-
setNodeService
- Parameters:
nodeService- The Node Service
-
setTenantService
- Parameters:
tenantService- The Tenant Service
-
setDictionaryService
- Parameters:
dictionaryService- dictionaryService
-
setNamespaceService
- Parameters:
namespaceService- namespaceService
-
setPersonService
- Parameters:
personService- personService
-
setTransactionService
- Overrides:
setTransactionServicein classBaseInterpreter- Parameters:
transactionService- transactionService
-
setAuthorityDAO
- Parameters:
authorityDAO- authorityDAO
-
setFileFolderService
- Parameters:
fileFolderService- fileFolderService
-
main
Main entry point. -
hasAuthority
- Overrides:
hasAuthorityin classBaseInterpreter
-
executeCommand
Execute a single command using the BufferedReader passed in for any data needed. TODO: Use decent parser!- Specified by:
executeCommandin classBaseInterpreter- Parameters:
line- The unparsed command- Returns:
- The textual output of the command.
- Throws:
IOException
-
getCurrentWorkflowDef
Get currently used workflow definition- Returns:
- workflow definition
-