|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.ServiceDesk.ServiceDeskUtil
This utility class supports adding parameters to a command or reading parameters from a command.
Field Summary | |
---|---|
static boolean |
INPUT_PARM
|
static boolean |
OUTPUT_PARM
|
Constructor Summary | |
---|---|
ServiceDeskUtil()
|
Method Summary | |
---|---|
static void |
addBooleanToCommand(Command cmd,
boolean b)
Add a boolean value to a command as an input parameter. |
static void |
addBooleanToCommand(Command cmd,
boolean b,
boolean io)
Add a boolean value to a command as an input or output parameter. |
static void |
addDataValuesToCommand(Command cmd,
java.lang.String name,
DataValue[] values)
Add Data Values to a command as an input parameter. |
static void |
addDataValuesToCommand(Command cmd,
java.lang.String name,
DataValue[] values,
boolean io)
Add Data Values to a command as an input or output parameter. |
static void |
addFindObjectArgumentsToCommand(Command cmd,
java.util.Locale loc,
java.lang.String objClass,
boolean caseSensitive)
Add Locale, Object Class and case sensitive flag to a command as an input parameter. |
static void |
addFindObjectArgumentsToCommand(Command cmd,
java.util.Locale loc,
java.lang.String objClass,
boolean caseSensitive,
boolean io)
Add Locale, Object Class and Case Sensitive flag to a command as an input or output parameter. |
static void |
addIntToCommand(Command cmd,
int i)
Add an int to a command as an input parameter. |
static void |
addIntToCommand(Command cmd,
int i,
boolean io)
Add an integer to a command as an input or output parameter. |
static void |
addLongToCommand(Command cmd,
long l)
Add a long to a command as an input parameter. |
static void |
addLongToCommand(Command cmd,
long l,
boolean io)
Add a long to a command as an input or output parameter. |
static void |
addLongValueSetToCommand(Command cmd,
LongValueSet lvs)
Add a long value set to a command as an input parameter. |
static void |
addLongValueSetToCommand(Command cmd,
LongValueSet lvs,
boolean io)
Add a long value set to a command as an input or output parameter. |
static void |
addNamedDataValueToCommand(Command cmd,
java.lang.String name,
DataValue value)
Add Named Data Value to a command as an input parameter. |
static void |
addNamedDataValueToCommand(Command cmd,
java.lang.String name,
DataValue value,
boolean io)
Add Named Data Value to a command as an input or output parameter. |
static void |
addObjectIDsToCommand(Command cmd,
java.lang.String id_list)
Add Object IDs to a command as an input parameter. |
static void |
addObjectIDsToCommand(Command cmd,
java.lang.String id_list,
boolean io)
Add Object IDs to a command as an input or output parameter. |
static void |
addStringToCommand(Command cmd,
java.lang.String s)
Add a string to a command as an input parameter. |
static void |
addStringToCommand(Command cmd,
java.lang.String s,
boolean io)
Add a string to a command as an input or output parameter. |
static boolean |
readBooleanFromCommand(Command cmd,
int index)
Read a boolean from a command input parameter. |
static boolean |
readBooleanFromCommand(Command cmd,
int index,
boolean io)
Read a boolean from a command input or output parameter. |
static DataValue[] |
readDataValuesFromCommand(Command cmd,
int index)
Read a data value list from a command input parameter. |
static DataValue[] |
readDataValuesFromCommand(Command cmd,
int index,
boolean io)
Read a data value list from a command input or output parameter. |
static int |
readIntFromCommand(Command cmd,
int index)
Read an integer from a command input parameter. |
static int |
readIntFromCommand(Command cmd,
int index,
boolean io)
Read an integer from a command input or output parameter. |
static long |
readLongFromCommand(Command cmd,
int index)
Read a long from a command input parameter. |
static long |
readLongFromCommand(Command cmd,
int index,
boolean io)
Read an long from a command input or output parameter. |
static LongValueSet |
readLongValueSetFromCommand(Command cmd,
int index)
Read a long value set from a command input parameter. |
static LongValueSet |
readLongValueSetFromCommand(Command cmd,
int index,
boolean io)
Read a long value set from a command input or output parameter. |
static DataValue |
readNamedDataValueFromCommand(Command cmd,
int index,
boolean io)
|
static DataValue |
readNamedDataValueFromnCommand(Command cmd,
int index)
Read the datavalue the was added by the call to addNamedDataValue. |
static java.lang.String |
readStringFromCommand(Command cmd,
int index)
Read a string from a command input parameter. |
static java.lang.String |
readStringFromCommand(Command cmd,
int index,
boolean io)
Read a string from a command input or output parameter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final boolean INPUT_PARM
public static final boolean OUTPUT_PARM
Constructor Detail |
public ServiceDeskUtil()
Method Detail |
public static void addStringToCommand(Command cmd, java.lang.String s, boolean io)
cmd
- - Commands
- - the string to add to the commandio
- - specifies input or output parameterpublic static void addStringToCommand(Command cmd, java.lang.String s)
cmd
- - Commands
- - the string to add to the commandpublic static void addIntToCommand(Command cmd, int i, boolean io)
cmd
- - Commandi
- - the integer to add to the commandio
- - specifies input or output parameterpublic static void addIntToCommand(Command cmd, int i)
cmd
- - Commandi
- - the integer to add to the commandpublic static void addLongToCommand(Command cmd, long l, boolean io)
cmd
- - Commandl
- - the long value to add to the commandio
- - specifies input or output parameterpublic static void addLongToCommand(Command cmd, long l)
cmd
- - Commandl
- - the long value to add to the commandpublic static void addLongValueSetToCommand(Command cmd, LongValueSet lvs, boolean io)
cmd
- - Commandlvs
- - the long value set to add to the commandio
- - specifies input or output parameterpublic static void addLongValueSetToCommand(Command cmd, LongValueSet lvs)
cmd
- - Commandlvs
- - the long value set to add to the commandpublic static void addBooleanToCommand(Command cmd, boolean b, boolean io)
cmd
- - Commandb
- - the boolean value to add to the commandio
- - specifies input or output parameterpublic static void addBooleanToCommand(Command cmd, boolean b)
cmd
- - Commandb
- - the boolean value to add to the commandpublic static void addDataValuesToCommand(Command cmd, java.lang.String name, DataValue[] values, boolean io)
cmd
- - Commandname
- - name associated with data value listvalues
- - array of data values.io
- - specifies input or output parameterpublic static void addDataValuesToCommand(Command cmd, java.lang.String name, DataValue[] values)
cmd
- - Commandname
- - name associated with data value listvalues
- - array of data values.public static void addFindObjectArgumentsToCommand(Command cmd, java.util.Locale loc, java.lang.String objClass, boolean caseSensitive, boolean io)
cmd
- - Commandloc
- - LocaleobjClass
- - the object classcaseSensitive
- - true is string compares should be case sensitiveio
- - specifies input or output parameterpublic static void addFindObjectArgumentsToCommand(Command cmd, java.util.Locale loc, java.lang.String objClass, boolean caseSensitive)
cmd
- - Commandloc
- - LocalecaseSensitive
- - true is string compares should be case sensitiveobjClass
- - the object classpublic static void addNamedDataValueToCommand(Command cmd, java.lang.String name, DataValue value, boolean io)
cmd
- - Commandname
- - name associated with data value listio
- - specifies input or output parameterpublic static void addNamedDataValueToCommand(Command cmd, java.lang.String name, DataValue value)
cmd
- - Commandname
- - name associated with data value listpublic static void addObjectIDsToCommand(Command cmd, java.lang.String id_list, boolean io)
cmd
- - Commandid_list
- - list of object identifiers to addio
- - specifies input or output parameterpublic static void addObjectIDsToCommand(Command cmd, java.lang.String id_list)
cmd
- - Commandid_list
- - list of object identifiers to addpublic static java.lang.String readStringFromCommand(Command cmd, int index, boolean io)
cmd
- - Commandindex
- - parameter indexio
- - specifies input or output parameter
public static java.lang.String readStringFromCommand(Command cmd, int index)
cmd
- - Commandindex
- - parameter index
public static int readIntFromCommand(Command cmd, int index, boolean io)
cmd
- - Commandindex
- - parameter indexio
- - specifies input or output parameter
public static int readIntFromCommand(Command cmd, int index)
cmd
- - Commandindex
- - parameter index
public static long readLongFromCommand(Command cmd, int index, boolean io)
cmd
- - Commandindex
- - parameter indexio
- - specifies input or output parameter
public static long readLongFromCommand(Command cmd, int index)
cmd
- - Commandindex
- - parameter index
public static boolean readBooleanFromCommand(Command cmd, int index, boolean io)
cmd
- - Commandindex
- - parameter indexio
- - specifies input or output parameter
public static boolean readBooleanFromCommand(Command cmd, int index)
cmd
- - Commandindex
- - parameter index
public static DataValue[] readDataValuesFromCommand(Command cmd, int index, boolean io)
cmd
- - Commandindex
- - parameter indexio
- - specifies input or output parameter
public static DataValue[] readDataValuesFromCommand(Command cmd, int index)
cmd
- - Commandindex
- - parameter index
public static LongValueSet readLongValueSetFromCommand(Command cmd, int index, boolean io)
cmd
- - Commandindex
- - parameter indexio
- - specifies input or output parameter
public static LongValueSet readLongValueSetFromCommand(Command cmd, int index)
cmd
- - Commandindex
- - parameter index
public static DataValue readNamedDataValueFromnCommand(Command cmd, int index)
cmd
- - Commandindex
- - parameter indexpublic static DataValue readNamedDataValueFromCommand(Command cmd, int index, boolean io)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |