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:
java.util.EventListener,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener
public class WorkflowInterpreter extends BaseInterpreter
An interactive console for Workflows.- Author:
- davidc
-
-
Field Summary
-
Fields inherited from class org.alfresco.repo.admin.BaseInterpreter
authorityService, lastCommand, transactionService
-
-
Constructor Summary
Constructors Constructor Description WorkflowInterpreter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringexecuteCommand(java.lang.String line)Execute a single command using the BufferedReader passed in for any data needed.WorkflowDefinitiongetCurrentWorkflowDef()Get currently used workflow definitionprotected booleanhasAuthority(java.lang.String username)static voidmain(java.lang.String[] args)Main entry point.protected voidonBootstrap(org.springframework.context.ApplicationEvent event)protected voidonShutdown(org.springframework.context.ApplicationEvent event)voidsetAuthorityDAO(AuthorityDAO authorityDAO)voidsetDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)voidsetFileFolderService(FileFolderService fileFolderService)voidsetNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)voidsetPersonService(PersonService personService)voidsetTenantService(org.alfresco.repo.tenant.TenantService tenantService)voidsetTransactionService(TransactionService transactionService)voidsetWorkflowService(WorkflowService workflowService)-
Methods inherited from class org.alfresco.repo.admin.BaseInterpreter
getConsoleBean, getCurrentUserName, interpretCommand, rep, runMain, runMain, setAuthorityService, setCurrentUserName
-
-
-
-
Method Detail
-
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
public void setWorkflowService(WorkflowService workflowService)
- Parameters:
workflowService- The Workflow Service
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
- Parameters:
nodeService- The Node Service
-
setTenantService
public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
- Parameters:
tenantService- The Tenant Service
-
setDictionaryService
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
- Parameters:
dictionaryService- dictionaryService
-
setNamespaceService
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
- Parameters:
namespaceService- namespaceService
-
setPersonService
public void setPersonService(PersonService personService)
- Parameters:
personService- personService
-
setTransactionService
public void setTransactionService(TransactionService transactionService)
- Overrides:
setTransactionServicein classBaseInterpreter- Parameters:
transactionService- transactionService
-
setAuthorityDAO
public void setAuthorityDAO(AuthorityDAO authorityDAO)
- Parameters:
authorityDAO- authorityDAO
-
setFileFolderService
public void setFileFolderService(FileFolderService fileFolderService)
- Parameters:
fileFolderService- fileFolderService
-
main
public static void main(java.lang.String[] args)
Main entry point.
-
hasAuthority
protected boolean hasAuthority(java.lang.String username)
- Overrides:
hasAuthorityin classBaseInterpreter
-
executeCommand
protected java.lang.String executeCommand(java.lang.String line) throws java.io.IOExceptionExecute 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:
java.io.IOException
-
getCurrentWorkflowDef
public WorkflowDefinition getCurrentWorkflowDef()
Get currently used workflow definition- Returns:
- workflow definition
-
-