com.openexchange.admin.console
Class BasicCommandlineOptions

java.lang.Object
  extended by com.openexchange.admin.console.BasicCommandlineOptions
Direct Known Subclasses:
AbstractJMXTools, AllPluginsLoaded, JobControl, ObjectNamingAbstraction

public abstract class BasicCommandlineOptions
extends Object

This abstract class contains all the common options between all command line tools

Author:
cutmasta,d7

Field Summary
static int SYSEXIT_COMMUNICATION_ERROR
          Used when a communication problem was encountered
static int SYSEXIT_CONTEXT_ALREADY_EXISTS
          Used when a context already exists
static int SYSEXIT_ILLEGAL_OPTION_VALUE
          Used when an unknown option was passed to the cmd tool!
static int SYSEXIT_INVALID_CREDENTIALS
          Used when username/password credentials were not correct!
static int SYSEXIT_INVALID_DATA
          Used when wrong data was sent to the server!
static int SYSEXIT_MISSING_OPTION
          Used when an option is missing to execute the cmd tool!
static int SYSEXIT_NO_SUCH_CONTEXT
          Used when the requested context does not exists on the server!
static int SYSEXIT_NO_SUCH_GROUP
          Used when a group does not exists
static int SYSEXIT_NO_SUCH_RESOURCE
          Used when a resource does not exists
static int SYSEXIT_NO_SUCH_USER
          Used when an user does not exists
static int SYSEXIT_REMOTE_ERROR
          Used when a remote server problem was encountered !
static int SYSEXIT_SERVERSTORAGE_ERROR
          Used when a storage problem was encountered on the server!
static int SYSEXIT_UNABLE_TO_PARSE
           
static int SYSEXIT_UNKNOWN_OPTION
          Used when an unknown option was passed to the cmd tool!
 
Constructor Summary
BasicCommandlineOptions()
           
 
Method Summary
static Hashtable<String,String> getEnvOptions()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSEXIT_INVALID_CREDENTIALS

public static final int SYSEXIT_INVALID_CREDENTIALS
Used when username/password credentials were not correct!

See Also:
Constant Field Values

SYSEXIT_NO_SUCH_CONTEXT

public static final int SYSEXIT_NO_SUCH_CONTEXT
Used when the requested context does not exists on the server!

See Also:
Constant Field Values

SYSEXIT_INVALID_DATA

public static final int SYSEXIT_INVALID_DATA
Used when wrong data was sent to the server!

See Also:
Constant Field Values

SYSEXIT_MISSING_OPTION

public static final int SYSEXIT_MISSING_OPTION
Used when an option is missing to execute the cmd tool!

See Also:
Constant Field Values

SYSEXIT_COMMUNICATION_ERROR

public static final int SYSEXIT_COMMUNICATION_ERROR
Used when a communication problem was encountered

See Also:
Constant Field Values

SYSEXIT_SERVERSTORAGE_ERROR

public static final int SYSEXIT_SERVERSTORAGE_ERROR
Used when a storage problem was encountered on the server!

See Also:
Constant Field Values

SYSEXIT_REMOTE_ERROR

public static final int SYSEXIT_REMOTE_ERROR
Used when a remote server problem was encountered !

See Also:
Constant Field Values

SYSEXIT_NO_SUCH_USER

public static final int SYSEXIT_NO_SUCH_USER
Used when an user does not exists

See Also:
Constant Field Values

SYSEXIT_ILLEGAL_OPTION_VALUE

public static final int SYSEXIT_ILLEGAL_OPTION_VALUE
Used when an unknown option was passed to the cmd tool!

See Also:
Constant Field Values

SYSEXIT_CONTEXT_ALREADY_EXISTS

public static final int SYSEXIT_CONTEXT_ALREADY_EXISTS
Used when a context already exists

See Also:
Constant Field Values

SYSEXIT_UNKNOWN_OPTION

public static final int SYSEXIT_UNKNOWN_OPTION
Used when an unknown option was passed to the cmd tool!

See Also:
Constant Field Values

SYSEXIT_NO_SUCH_GROUP

public static final int SYSEXIT_NO_SUCH_GROUP
Used when a group does not exists

See Also:
Constant Field Values

SYSEXIT_NO_SUCH_RESOURCE

public static final int SYSEXIT_NO_SUCH_RESOURCE
Used when a resource does not exists

See Also:
Constant Field Values

SYSEXIT_UNABLE_TO_PARSE

public static final int SYSEXIT_UNABLE_TO_PARSE
See Also:
Constant Field Values
Constructor Detail

BasicCommandlineOptions

public BasicCommandlineOptions()
Method Detail

getEnvOptions

public static final Hashtable<String,String> getEnvOptions()