public abstract class CltBase extends 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(InputStream in,
OutputStream out) |
void |
exec(String[] args,
Object[] flagDefs,
int minArgs,
String usageMessage)
All clts go through this call.
|
protected abstract void |
run(Map<String,List<String>> flags,
List<String> args) |
protected String[] |
splitPath(String path)
Utility to split an AVM path into a parent path and a
base name.
|
protected org.alfresco.util.Pair<String,Integer> |
splitPathVersion(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(String[] args, Object[] flagDefs, int minArgs, 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 String[] splitPath(String path)
path - The path to split.protected void copyStream(InputStream in, OutputStream out)
protected org.alfresco.util.Pair<String,Integer> splitPathVersion(String pathVersion)
Copyright © 2005–2014 Alfresco Software. All rights reserved.