|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.clt.CltBase
public abstract class CltBase
This is the base class for AVM clts.
Field Summary | |
---|---|
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. |
Constructor Summary | |
---|---|
protected |
CltBase()
Construct a new one. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AVMRemote fAVMRemote
protected AVMSyncService fAVMSyncService
protected RepoRemote fRepoRemote
protected org.springframework.context.ConfigurableApplicationContext fContext
protected AuthenticationService fAuthenticationService
Constructor Detail |
---|
protected CltBase()
args
- The program arguments.Method Detail |
---|
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |