Package org.alfresco.repo.admin
Class RepoAdminInterpreter
- java.lang.Object
-
- org.springframework.extensions.surf.util.AbstractLifecycleBean
-
- org.alfresco.repo.admin.BaseInterpreter
-
- org.alfresco.repo.admin.RepoAdminInterpreter
-
- All Implemented Interfaces:
java.util.EventListener,org.springframework.beans.factory.Aware,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
-
-
Constructor Summary
Constructors Constructor Description RepoAdminInterpreter()
-
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.static voidmain(java.lang.String[] args)Main entry point.voidsetRepoAdminService(RepoAdminService repoAdminService)-
Methods inherited from class org.alfresco.repo.admin.BaseInterpreter
getConsoleBean, getCurrentUserName, hasAuthority, interpretCommand, onBootstrap, onShutdown, rep, runMain, runMain, setAuthorityService, setCurrentUserName, setTransactionService
-
-
-
-
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.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
-
-