|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.oberon.ooql.sdk.JLClient
public class JLClient
Utility functions for Trigger
s and Program
s usage
Field Summary | |
---|---|
static java.lang.String |
appName
OBEROn Application name |
static java.lang.String |
ATTRSEP
The value separator for multivalue Field s |
static java.lang.String |
build
OBEROn current build number |
static java.lang.String |
copyright
OBEROn copyright text |
static java.lang.String |
credits
OBEROn credits text |
static java.text.SimpleDateFormat |
dateFormat
Default date format |
static java.lang.String |
version
OBEROn current version |
Constructor Summary | |
---|---|
JLClient()
|
Method Summary | |
---|---|
static java.lang.String |
arrayToString(java.lang.String[] array,
java.lang.String delim)
Deprecated. |
static boolean |
checkPattern(java.util.Vector<java.lang.String> patterns,
java.lang.String text)
Deprecated. |
static void |
cleanDirs(java.lang.String path)
Deprecated. |
static long |
computeDateDiff(java.lang.String sStartDate,
java.lang.String sEndDate)
Returns the days between two dates |
static void |
copyFile(java.io.File fromFile,
java.io.File toFile,
boolean move)
Deprecated. |
static void |
createLocalDir(java.lang.String path)
Deprecated. |
static AdminBase |
elementToAdminObject(org.jdom.Element element)
Return the administration java element from XML element |
static void |
elementToStream(org.jdom.Element element,
java.io.OutputStreamWriter writer,
boolean pretty,
java.lang.String encoding)
Deprecated. |
static java.lang.String |
elementToString(org.jdom.Element element,
boolean pretty,
java.lang.String encoding)
Deprecated. |
static java.lang.String |
getAdminUser()
Get the Administrator User name |
static byte[] |
getBytesFromFile(java.lang.String filepath)
Deprecated. |
static java.lang.Class<?> |
getClassFromType(java.lang.String adminType)
Returns the related java class for an administration type |
static java.lang.String |
getConnectionType()
Get the connection type (DB,RMI,HTTP) |
static java.lang.String |
getCurrentDate()
Returns current date/time (GMT) in dateFormat format |
static java.lang.String |
getDBBuild()
Get the Database Build number |
static java.lang.String |
getHexValue(int decValue)
Convert integer value (decimal) to hexadecimal value |
static int |
getIntValue(java.lang.String hexValue)
Convert hexadecimal value to integer value (decimal) |
static java.lang.String |
getMailServer()
Get the Mail server name or IP |
static java.lang.String |
getStringPart(java.lang.String sourceText,
java.lang.String leftBound,
java.lang.String rightBound)
Deprecated. |
static java.lang.String[] |
getSVNAccount()
Get the SVN repository account |
static java.lang.String |
getSVNUrl()
Get the SVN repository url |
static java.lang.String |
getTempDir()
Get the Temporary directory |
static java.lang.String |
getWebRoot()
Get the Web server url |
static java.lang.String |
hashPassword(java.lang.String password,
int length)
Deprecated. |
static java.util.Vector |
hashTableKeysToVector(java.util.Hashtable hTable)
Collect hashtable keys into a vector |
static boolean |
isBlank(java.lang.String string)
Deprecated. |
static java.util.Vector<java.lang.String> |
listFiles(java.lang.String path,
boolean subdirs)
Deprecated. |
static void |
orderVector(java.util.Vector vector,
boolean increase,
boolean asString)
Deprecated. |
static org.jdom.Element |
parseXML(java.lang.String xmlText)
Deprecated. |
static java.lang.String |
performOOQL(java.lang.String command,
Framework framework)
Execute a single OOQL command |
static java.util.Vector<java.lang.String> |
performOOQLCommands(java.lang.String commands,
Framework framework)
Execute OOQL commands |
static java.lang.String |
replaceDictionaryKeyWords(java.lang.String inputString,
boolean encode,
java.lang.String language,
Framework framework)
Replace dictionary keywords with translations |
static java.lang.String |
replaceObjectKeyWords(java.lang.String inputString,
ObjectBase objlink,
boolean encode,
java.lang.String language,
Framework framework)
Replace substitution keywords with ObjectObj or Link data values or dictionary translations |
static java.lang.String |
replaceObjectKeyWords(java.lang.String inputString,
ObjectBase objlink,
java.lang.String language,
Framework framework)
Replace substitution keywords with ObjectObj or Link data values. |
static java.lang.String |
replaceString(java.lang.String source,
java.lang.String replace,
java.lang.String substitute)
Deprecated. |
static java.io.File |
saveBytesToFile(java.lang.String path,
java.lang.String filename,
byte[] filedata)
Deprecated. |
static void |
setSVNUrl(java.lang.String url)
Set the SVN repository url |
static java.util.Vector<java.lang.String> |
StringTokensToVector(java.lang.String stringToTokenize,
java.lang.String delim)
Deprecated. |
static java.lang.String |
vectorToString(java.util.Vector<?> vector,
java.lang.String delim)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ATTRSEP
Field
s
public static final java.lang.String version
public static final java.lang.String appName
public static final java.lang.String build
public static final java.lang.String copyright
public static final java.lang.String credits
public static final java.text.SimpleDateFormat dateFormat
Constructor Detail |
---|
public JLClient()
Method Detail |
---|
public static java.lang.String getTempDir()
public static java.lang.String getMailServer()
public static java.lang.String getWebRoot()
public static void setSVNUrl(java.lang.String url)
public static java.lang.String getSVNUrl()
public static java.lang.String[] getSVNAccount()
public static java.lang.String getAdminUser()
public static java.lang.String getDBBuild()
public static java.lang.String getConnectionType()
public static java.lang.String getHexValue(int decValue)
public static int getIntValue(java.lang.String hexValue)
public static java.util.Vector hashTableKeysToVector(java.util.Hashtable hTable)
public static java.lang.String getCurrentDate()
dateFormat
format
public static java.lang.Class<?> getClassFromType(java.lang.String adminType)
public static AdminBase elementToAdminObject(org.jdom.Element element)
element
- the xml element rootpublic static long computeDateDiff(java.lang.String sStartDate, java.lang.String sEndDate)
@Deprecated public static boolean isBlank(java.lang.String string)
@Deprecated public static java.lang.String replaceString(java.lang.String source, java.lang.String replace, java.lang.String substitute)
source
- the source stringreplace
- the sub-string to replacesubstitute
- the substitute sub-string
Example: replaceString("My source string"," s"," S") return "My Source String"@Deprecated public static java.lang.String getStringPart(java.lang.String sourceText, java.lang.String leftBound, java.lang.String rightBound)
sourceText
- the source stringleftBound
- the left side sub-stringrightBound
- the right side sub-string
Example: getStringPart("user[MyName]","user[","]") return "MyName"@Deprecated public static boolean checkPattern(java.util.Vector<java.lang.String> patterns, java.lang.String text)
patterns
- Vector of the pattern (use wildcards "*" match 0/n chars and "?" match a single char)text
- the text to verify@Deprecated public static java.lang.String vectorToString(java.util.Vector<?> vector, java.lang.String delim)
vector
- the input vectordelim
- the element separator@Deprecated public static java.lang.String arrayToString(java.lang.String[] array, java.lang.String delim)
array
- the input arraydelim
- the element separator@Deprecated public static java.util.Vector<java.lang.String> StringTokensToVector(java.lang.String stringToTokenize, java.lang.String delim)
stringToTokenize
- the input stringdelim
- the token separator@Deprecated public static void orderVector(java.util.Vector vector, boolean increase, boolean asString)
vector
- the vector to sortincrease
- if true order from less values to high valuesasString
- if true treat the vector elements as strings@Deprecated public static java.lang.String elementToString(org.jdom.Element element, boolean pretty, java.lang.String encoding) throws OberonException
element
- the xml element rootpretty
- enable/disable the xml indented styleencoding
- set the encoding charset ( UTF-8 , ISO-8859-1 , ...)
OberonException
@Deprecated public static void elementToStream(org.jdom.Element element, java.io.OutputStreamWriter writer, boolean pretty, java.lang.String encoding) throws java.io.IOException, OberonException
element
- the xml element rootwriter
- the output stream writerpretty
- enable/disable the xml indented styleencoding
- set the encoding charset ( UTF-8 , ISO-8859-1 , ...)
java.io.IOException
OberonException
@Deprecated public static org.jdom.Element parseXML(java.lang.String xmlText) throws java.lang.Exception
xmlText
- the xml text
java.lang.Exception
@Deprecated public static java.lang.String hashPassword(java.lang.String password, int length)
password
- the password to hashlength
- length of the result string@Deprecated public static byte[] getBytesFromFile(java.lang.String filepath) throws java.io.IOException, OberonException
filepath
- the file absolute path
java.io.IOException
OberonException
@Deprecated public static java.io.File saveBytesToFile(java.lang.String path, java.lang.String filename, byte[] filedata) throws java.io.IOException, OberonException
path
- the file pathfilename
- the file namefiledata
- the file content data
java.io.IOException
OberonException
@Deprecated public static void createLocalDir(java.lang.String path) throws java.io.IOException, OberonException
path
- the directory path
java.io.IOException
OberonException
@Deprecated public static void copyFile(java.io.File fromFile, java.io.File toFile, boolean move) throws java.io.IOException, OberonException
fromFile
- the original filetoFile
- the destination filemove
- if true move (rename) the file
java.io.IOException
OberonException
@Deprecated public static java.util.Vector<java.lang.String> listFiles(java.lang.String path, boolean subdirs)
path
- the directory pathsubdirs
- if true recurse on sub-directories (return the full paths)@Deprecated public static void cleanDirs(java.lang.String path)
path
- the directory start pathpublic static java.util.Vector<java.lang.String> performOOQLCommands(java.lang.String commands, Framework framework) throws OberonException
commands
- multiple OOQL commands (each command must ends with ";")framework
- the current User
framework
OberonException
public static java.lang.String performOOQL(java.lang.String command, Framework framework) throws OberonException
command
- the OOQL command (must ends with ";")framework
- the current User
framework
OberonException
public static java.lang.String replaceObjectKeyWords(java.lang.String inputString, ObjectBase objlink, java.lang.String language, Framework framework) throws java.lang.Exception
inputString
- the input string containing the substitution keywordsobjlink
- the ObjectObj
or Link
instancelanguage
- the translation languageframework
- the User framework
java.lang.Exception
public static java.lang.String replaceObjectKeyWords(java.lang.String inputString, ObjectBase objlink, boolean encode, java.lang.String language, Framework framework) throws java.lang.Exception
inputString
- the input string containing the substitution keywordsobjlink
- the ObjectObj
or Link
instanceencode
- if true apply the url encoding to keyword valueslanguage
- the translation languageframework
- the User framework
java.lang.Exception
public static java.lang.String replaceDictionaryKeyWords(java.lang.String inputString, boolean encode, java.lang.String language, Framework framework) throws java.lang.Exception
inputString
- the input string containing the substitution keywordsencode
- if true apply the url encoding to keyword valueslanguage
- the translation languageframework
- the User framework
java.lang.Exception
|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |