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.context.ApplicationContextAware, org.springframework.context.ApplicationListener
public class WorkflowInterpreter
- extends BaseInterpreter
An interactive console for Workflows.
Fields inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean |
log |
Methods inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean |
getApplicationContext, onApplicationEvent, setApplicationContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorkflowInterpreter
public WorkflowInterpreter()
onBootstrap
protected void onBootstrap(org.springframework.context.ApplicationEvent event)
- Overrides:
onBootstrap
in class BaseInterpreter
onShutdown
protected void onShutdown(org.springframework.context.ApplicationEvent event)
- Overrides:
onShutdown
in class BaseInterpreter
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
setAVMService
public void setAVMService(AVMService avmService)
- Parameters:
avmService
- The AVM Service
setAVMSyncService
public void setAVMSyncService(AVMSyncService avmSyncService)
- Parameters:
avmSyncService
- The AVM Sync Service
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:
setTransactionService
in class BaseInterpreter
- 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:
hasAuthority
in class BaseInterpreter
executeCommand
protected java.lang.String executeCommand(java.lang.String line)
throws java.io.IOException
- Execute a single command using the BufferedReader passed in for any data needed.
TODO: Use decent parser!
- Specified by:
executeCommand
in class BaseInterpreter
- 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
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.