org.alfresco.repo.workflow
Class WorkflowInterpreter

java.lang.Object
  extended by org.springframework.extensions.surf.util.AbstractLifecycleBean
      extended by org.alfresco.repo.admin.BaseInterpreter
          extended by 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.


Field Summary
 
Fields inherited from class org.alfresco.repo.admin.BaseInterpreter
authorityService, lastCommand, transactionService
 
Fields inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean
log
 
Constructor Summary
WorkflowInterpreter()
           
 
Method Summary
protected  java.lang.String executeCommand(java.lang.String line)
          Execute a single command using the BufferedReader passed in for any data needed.
 WorkflowDefinition getCurrentWorkflowDef()
          Get currently used workflow definition
protected  boolean hasAuthority(java.lang.String username)
           
static void main(java.lang.String[] args)
          Main entry point.
protected  void onBootstrap(org.springframework.context.ApplicationEvent event)
           
protected  void onShutdown(org.springframework.context.ApplicationEvent event)
           
 void setAuthorityDAO(AuthorityDAO authorityDAO)
           
 void setAVMService(AVMService avmService)
           
 void setAVMSyncService(AVMSyncService avmSyncService)
           
 void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
           
 void setFileFolderService(FileFolderService fileFolderService)
           
 void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
           
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
           
 void setPersonService(PersonService personService)
           
 void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
           
 void setTransactionService(TransactionService transactionService)
           
 void setWorkflowService(WorkflowService workflowService)
           
 
Methods inherited from class org.alfresco.repo.admin.BaseInterpreter
getConsoleBean, getCurrentUserName, interpretCommand, rep, runMain, runMain, setAuthorityService, setCurrentUserName
 
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
 

Constructor Detail

WorkflowInterpreter

public WorkflowInterpreter()
Method Detail

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.