org.alfresco.repo.admin
Class RepoAdminInterpreter

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

public class RepoAdminInterpreter
extends BaseInterpreter

An interactive console for (first cut) Repository Admin Service / API.


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
RepoAdminInterpreter()
           
 
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 setRepoAdminService(RepoAdminService repoAdminService)
           
 
Methods inherited from class org.alfresco.repo.admin.BaseInterpreter
getConsoleBean, getCurrentUserName, hasAuthority, interpretCommand, onBootstrap, onShutdown, rep, runMain, runMain, setAuthorityService, setCurrentUserName, setTransactionService
 
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

RepoAdminInterpreter

public RepoAdminInterpreter()
Method Detail

setRepoAdminService

public void setRepoAdminService(RepoAdminService repoAdminService)

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 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.