Package cronapi.util
Class Operations
- java.lang.Object
-
- cronapi.util.Operations
-
public class Operations extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static booleanIS_DEBUGstatic booleanIS_LINUXstatic booleanIS_WINDOWSstatic booleanLOG_DEFINEDstatic LevelLOG_LEVELstatic ConcurrentHashMap<String,Logger>LOGGERS
-
Constructor Summary
Constructors Constructor Description Operations()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaudit(Var type, Var command, Var category, Var data)static VarcallBlockly(Var classNameWithMethod, boolean checkSecurity, String restMethod, Var... params)static VarcallBlockly(Var classNameWithMethod, Var... params)static voidcallBlocklyNoReturn(Var classNameWithMethod, Var... params)static voidcallClientFunction(Var function, Var... params)static VarcallSOAP(Var urlVar, Var soapAction, Var headers, Var content)static VarcompressToZip(Var value)static VarcreateDownloadLink(Var file)static VarcreateException(Var msg)static VardecodeZipFromByte(Var value)static Vardecrypt(Var messageVar, Var keyVar)static VarencodeMD5(Var value)static Varencrypt(Var messageVar, Var keyVar)static VarencryptPassword(Var password)static voidexecuteAsync(Runnable cmd)static StringfirstToUpper(String text)static VargenerateUUID()static VargetApplicationId()static VargetBaseUrl()static VargetContentFromURL(Var method, Var contentType, Var address, Var params, Var cookieContainer, Var returnType, Var postData)static VargetCookie(Var key)static VargetCurrentUserName()static VargetExceptionMessage(Var exception)static VargetFormDataObject(Var value, Var contentType, Var filename)static VargetFromRequest(Var fieldName)static VargetFromThread(Var fieldName)static VargetHeadersFromExternalURL(Var method, Var contentType, Var address, Var params, Var cookieContainer)static VargetIp()static VargetItemFromHttpResponse(Var httpResponseVar, Var returnType)static VargetSystemParameter(Var key)static VargetSystemProfile()static VargetURLFromOthers(Var method, Var contentType, Var address, Var params, Var cookieContainer)static VargetURLFromOthers(Var method, Var contentType, Var address, Var params, Var cookieContainer, Var postData)static VargetURLFromOthers(Var method, Var contentType, Var address, Var params, Var cookieContainer, Var postData, Var path)static VargetURLFromOthers(Var method, Var contentType, Var address, Var params, Var cookieContainer, Var postData, Var path, Var returnType)static VargetValueFromSession(Var fieldName)static voidlog(Var category, Var type, Var message, Var exception)static VarmatchesencryptPassword(Var password, Var encrypted)static Varrandom(Var maxValue)static voidreadBytesFromStream(Var input, Var size, Callback callback)static voidreadLinesFromStream(Var input, Callback callback)static voidredirect(Var location)static StringreduceVariable(String var, boolean notClassName)static StringsafeNameForMethodBlockly(String s)static voidscheduleExecution(Runnable cmd, Var initialTime, Var updateTime, Var unit)static VarsetCookie(Var key, Var value, Var measurementUnit, Var expiration)static voidsetInRequest(Var fieldName, Var fieldValue)static voidsetInSession(Var fieldName, Var fieldValue)static voidsetInThread(Var fieldName, Var fieldValue)static voidsetReturn(Var param)static VarshellExecute(Var cmdline, Var waitFor)static voidsleep(Var time)static voidthrowException(Var exception)static StringtranslateAcentos(String aValue)static voidupload(Var description, Var filter, Var maxSize, Var multiple, Callback callback)
-
-
-
Field Detail
-
IS_DEBUG
public static boolean IS_DEBUG
-
IS_WINDOWS
public static boolean IS_WINDOWS
-
IS_LINUX
public static boolean IS_LINUX
-
LOGGERS
public static ConcurrentHashMap<String,Logger> LOGGERS
-
LOG_LEVEL
public static Level LOG_LEVEL
-
LOG_DEFINED
public static boolean LOG_DEFINED
-
-
Method Detail
-
shellExecute
public static final Var shellExecute(Var cmdline, Var waitFor) throws Exception
- Throws:
Exception
-
decodeZipFromByte
public static final Var decodeZipFromByte(Var value) throws Exception
- Throws:
Exception
-
throwException
public static final void throwException(Var exception) throws Exception
- Throws:
Exception
-
createException
public static final Var createException(Var msg) throws Exception
- Throws:
Exception
-
getExceptionMessage
public static final Var getExceptionMessage(Var exception) throws Exception
- Throws:
Exception
-
callBlocklyNoReturn
public static final void callBlocklyNoReturn(Var classNameWithMethod, Var... params) throws Exception
- Throws:
Exception
-
callClientFunction
public static final void callClientFunction(Var function, Var... params) throws Exception
- Throws:
Exception
-
callBlockly
public static final Var callBlockly(Var classNameWithMethod, Var... params) throws Exception
- Throws:
Exception
-
callBlockly
public static final Var callBlockly(Var classNameWithMethod, boolean checkSecurity, String restMethod, Var... params) throws Exception
- Throws:
Exception
-
encryptPassword
public static final Var encryptPassword(Var password) throws Exception
- Throws:
Exception
-
matchesencryptPassword
public static final Var matchesencryptPassword(Var password, Var encrypted) throws Exception
- Throws:
Exception
-
getHeadersFromExternalURL
public static final Var getHeadersFromExternalURL(Var method, Var contentType, Var address, Var params, Var cookieContainer) throws Exception
- Throws:
Exception
-
getURLFromOthers
public static final Var getURLFromOthers(Var method, Var contentType, Var address, Var params, Var cookieContainer) throws Exception
- Throws:
Exception
-
getURLFromOthers
public static Var getURLFromOthers(Var method, Var contentType, Var address, Var params, Var cookieContainer, Var postData, Var path, Var returnType) throws Exception
- Throws:
Exception
-
getItemFromHttpResponse
public static Var getItemFromHttpResponse(Var httpResponseVar, Var returnType) throws Exception
- Throws:
Exception
-
getURLFromOthers
public static Var getURLFromOthers(Var method, Var contentType, Var address, Var params, Var cookieContainer, Var postData) throws Exception
- Throws:
Exception
-
getURLFromOthers
public static Var getURLFromOthers(Var method, Var contentType, Var address, Var params, Var cookieContainer, Var postData, Var path) throws Exception
- Throws:
Exception
-
getContentFromURL
public static final Var getContentFromURL(Var method, Var contentType, Var address, Var params, Var cookieContainer, Var returnType, Var postData) throws Exception
- Throws:
Exception
-
getFormDataObject
public static final Var getFormDataObject(Var value, Var contentType, Var filename) throws Exception
- Throws:
Exception
-
setInSession
public static final void setInSession(Var fieldName, Var fieldValue) throws Exception
- Throws:
Exception
-
readLinesFromStream
public static void readLinesFromStream(Var input, Callback callback) throws Exception
- Throws:
Exception
-
readBytesFromStream
public static final void readBytesFromStream(Var input, Var size, Callback callback) throws Exception
- Throws:
Exception
-
generateUUID
public static final Var generateUUID()
-
executeAsync
public static final void executeAsync(Runnable cmd) throws Exception
- Throws:
Exception
-
scheduleExecution
public static final void scheduleExecution(Runnable cmd, Var initialTime, Var updateTime, Var unit) throws Exception
- Throws:
Exception
-
upload
public static final void upload(Var description, Var filter, Var maxSize, Var multiple, Callback callback) throws Exception
- Throws:
Exception
-
getSystemProfile
public static Var getSystemProfile()
-
audit
public static void audit(Var type, Var command, Var category, Var data) throws Exception
- Throws:
Exception
-
getApplicationId
public static Var getApplicationId()
-
encrypt
public static final Var encrypt(Var messageVar, Var keyVar) throws Exception
- Throws:
Exception
-
decrypt
public static final Var decrypt(Var messageVar, Var keyVar) throws Exception
- Throws:
Exception
-
getFromThread
public static final Var getFromThread(Var fieldName) throws Exception
- Throws:
Exception
-
setInThread
public static final void setInThread(Var fieldName, Var fieldValue) throws Exception
- Throws:
Exception
-
getFromRequest
public static final Var getFromRequest(Var fieldName) throws Exception
- Throws:
Exception
-
setInRequest
public static final void setInRequest(Var fieldName, Var fieldValue) throws Exception
- Throws:
Exception
-
setCookie
public static Var setCookie(Var key, Var value, Var measurementUnit, Var expiration) throws Exception
- Throws:
Exception
-
callSOAP
public static final Var callSOAP(Var urlVar, Var soapAction, Var headers, Var content) throws Exception
- Throws:
Exception
-
-