org.alfresco.web.config
Class ConfigAdminInterpreter

java.lang.Object
  extended by org.springframework.extensions.surf.util.AbstractLifecycleBean
      extended by org.alfresco.repo.admin.BaseInterpreter
          extended by org.alfresco.web.config.ConfigAdminInterpreter
All Implemented Interfaces:
java.util.EventListener, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener

public class ConfigAdminInterpreter
extends org.alfresco.repo.admin.BaseInterpreter

A simple interactive console for (first cut) Web Client Config Admin.


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
ConfigAdminInterpreter()
           
 
Method Summary
protected  java.lang.String executeCommand(java.lang.String line)
          Execute a single command using the BufferedReader passed in for any data needed.
static void main(java.lang.String[] args)
          Main entry point.
 void setRepoXMLConfigService(org.alfresco.repo.config.xml.RepoXMLConfigService webClientConfigService)
           
 void setTransactionService(org.alfresco.service.transaction.TransactionService transactionService)
           
 
Methods inherited from class org.alfresco.repo.admin.BaseInterpreter
getConsoleBean, getCurrentUserName, hasAuthority, interpretCommand, onBootstrap, onShutdown, 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

ConfigAdminInterpreter

public ConfigAdminInterpreter()
Method Detail

setRepoXMLConfigService

public void setRepoXMLConfigService(org.alfresco.repo.config.xml.RepoXMLConfigService webClientConfigService)

setTransactionService

public void setTransactionService(org.alfresco.service.transaction.TransactionService transactionService)
Overrides:
setTransactionService in class org.alfresco.repo.admin.BaseInterpreter

main

public static void main(java.lang.String[] args)
Main entry point.


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 org.alfresco.repo.admin.BaseInterpreter
Parameters:
line - The unparsed command
Returns:
The textual output of the command.
Throws:
java.io.IOException


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.