public abstract class CltBase
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected AuthenticationService |
fAuthenticationService
The Authentication Service.
|
protected AVMRemote |
fAVMRemote
The instance of the remote interface.
|
protected AVMSyncService |
fAVMSyncService
The instance of the remote sync service interface.
|
protected org.springframework.context.ConfigurableApplicationContext |
fContext
The ApplicationContext.
|
protected RepoRemote |
fRepoRemote
The instance of the remote repo interface.
|
| Modifier | Constructor and Description |
|---|---|
protected |
CltBase()
Construct a new one.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
copyStream(java.io.InputStream in,
java.io.OutputStream out) |
void |
exec(java.lang.String[] args,
java.lang.Object[] flagDefs,
int minArgs,
java.lang.String usageMessage)
All clts go through this call.
|
protected abstract void |
run(java.util.Map flags,
java.util.List args) |
protected java.lang.String[] |
splitPath(java.lang.String path)
Utility to split an AVM path into a parent path and a
base name.
|
protected org.alfresco.util.Pair |
splitPathVersion(java.lang.String pathVersion) |
protected void |
usage()
Handle syntax error by exiting.
|
protected AVMRemote fAVMRemote
protected AVMSyncService fAVMSyncService
protected RepoRemote fRepoRemote
protected org.springframework.context.ConfigurableApplicationContext fContext
protected AuthenticationService fAuthenticationService
protected CltBase()
args - The program arguments.public void exec(java.lang.String[] args,
java.lang.Object[] flagDefs,
int minArgs,
java.lang.String usageMessage)
args - The raw command line arguments.flagDefs - The definition of what flags to accept and their
arities.minArgs - The minimum number of actual arguments expected.usageMessage - The message that should be printed if there is a
syntax error.protected void usage()
protected java.lang.String[] splitPath(java.lang.String path)
path - The path to split.protected void copyStream(java.io.InputStream in,
java.io.OutputStream out)
protected org.alfresco.util.Pair splitPathVersion(java.lang.String pathVersion)
protected abstract void run(java.util.Map flags,
java.util.List args)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.