org.alfresco.repo.avm
Class AVMInterpreter

java.lang.Object
  extended by org.alfresco.repo.avm.AVMInterpreter

public class AVMInterpreter
extends java.lang.Object

An interactive console for the AVM repository.


Constructor Summary
AVMInterpreter()
          Make up a new console.
 
Method Summary
 java.lang.String interpretCommand(java.lang.String line, java.io.BufferedReader in)
          Interpret a single command using the BufferedReader passed in for any data needed.
static void main(java.lang.String[] args)
          Main entry point.
 void rep()
          A Read-Eval-Print loop.
 void setAvmLockingService(AVMLockingService lockService)
          Set the AVM locking service.
 void setAvmService(AVMService service)
          Set the AVMService.
 void setAvmSyncService(AVMSyncService syncService)
          Set the AVM sync service.
 void setBulkLoader(BulkLoader loader)
          Set the bulk loader.
 void setPermissionService(org.alfresco.service.cmr.security.PermissionService service)
          Set the PermissionService.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AVMInterpreter

public AVMInterpreter()
Make up a new console.

Method Detail

main

public static void main(java.lang.String[] args)
Main entry point. Syntax: AVMInteractiveConsole storage (new|old).


setAvmService

public void setAvmService(AVMService service)
Set the AVMService.

Parameters:
service - The AVMService instance.

setAvmSyncService

public void setAvmSyncService(AVMSyncService syncService)
Set the AVM sync service.

Parameters:
syncService -

setAvmLockingService

public void setAvmLockingService(AVMLockingService lockService)
Set the AVM locking service.

Parameters:
lockService -

setPermissionService

public void setPermissionService(org.alfresco.service.cmr.security.PermissionService service)
Set the PermissionService.

Parameters:
service - The PermissionService instance.

setBulkLoader

public void setBulkLoader(BulkLoader loader)
Set the bulk loader.

Parameters:
loader -

rep

public void rep()
A Read-Eval-Print loop.


interpretCommand

public java.lang.String interpretCommand(java.lang.String line,
                                         java.io.BufferedReader in)
Interpret a single command using the BufferedReader passed in for any data needed.

Parameters:
line - The unparsed command
in - A Reader to be used for commands that need input data.
Returns:
The textual output of the command.


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