com.trackstudio.app
Class CalculatedValue

java.lang.Object
  extended by com.trackstudio.app.CalculatedValue

public class CalculatedValue
extends java.lang.Object


Field Summary
static java.lang.String CREATED_OBJECTS
           
static java.lang.String INPUT_MAP
           
static java.lang.String LOG
           
static java.lang.String MESSAGE
           
static java.lang.String SC
           
static java.lang.String TASK
           
static java.lang.String USER
           
 
Constructor Summary
CalculatedValue(java.lang.String formula, java.util.Map map, SessionContext sc, java.util.ArrayList createdObjects)
           
CalculatedValue(java.lang.String formula, Secured tci)
          Possible it need checks for vulnerability
 
Method Summary
static java.lang.String decode(java.lang.String s)
           
static java.lang.String encode(java.lang.String sent)
           
 java.util.HashMap getConstants()
           
 java.util.Map getCsvImportMethods()
           
 java.util.Map getCsvImportProperties()
           
 java.util.Map getCsvImportVariables()
           
static CalculatedValue getInstance()
           
 java.util.HashMap getMethods()
           
 java.util.Map getMsgProperties()
           
 bsh.NameSpace getNameSpace()
           
 java.util.HashMap getOperators()
           
 java.util.Map getTaskProperties()
           
 java.lang.Object getValue()
           
 java.lang.Object getValue(java.lang.String formula, Secured tci, java.lang.String scriptId)
           
 void setCsvImportVariables(java.util.Map csvImportVariables)
           
 void setFormula(java.lang.String formula)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TASK

public static final java.lang.String TASK
See Also:
Constant Field Values

USER

public static final java.lang.String USER
See Also:
Constant Field Values

MESSAGE

public static final java.lang.String MESSAGE
See Also:
Constant Field Values

INPUT_MAP

public static final java.lang.String INPUT_MAP
See Also:
Constant Field Values

SC

public static final java.lang.String SC
See Also:
Constant Field Values

LOG

public static final java.lang.String LOG
See Also:
Constant Field Values

CREATED_OBJECTS

public static final java.lang.String CREATED_OBJECTS
See Also:
Constant Field Values
Constructor Detail

CalculatedValue

public CalculatedValue(java.lang.String formula,
                       Secured tci)
                throws GranException
Possible it need checks for vulnerability

Parameters:
formula - Encoded formula. Use decode() to decoding
tci -
Throws:
GranException

CalculatedValue

public CalculatedValue(java.lang.String formula,
                       java.util.Map map,
                       SessionContext sc,
                       java.util.ArrayList createdObjects)
                throws GranException
Throws:
GranException
Method Detail

getCsvImportVariables

public java.util.Map getCsvImportVariables()

setCsvImportVariables

public void setCsvImportVariables(java.util.Map csvImportVariables)

getInstance

public static CalculatedValue getInstance()
                                   throws GranException
Throws:
GranException

getNameSpace

public bsh.NameSpace getNameSpace()

getMethods

public java.util.HashMap getMethods()

getOperators

public java.util.HashMap getOperators()

getConstants

public java.util.HashMap getConstants()

getMsgProperties

public java.util.Map getMsgProperties()

getTaskProperties

public java.util.Map getTaskProperties()

getCsvImportProperties

public java.util.Map getCsvImportProperties()

getCsvImportMethods

public java.util.Map getCsvImportMethods()

setFormula

public void setFormula(java.lang.String formula)

getValue

public java.lang.Object getValue()
                          throws java.lang.Exception
Throws:
java.lang.Exception

decode

public static java.lang.String decode(java.lang.String s)

encode

public static java.lang.String encode(java.lang.String sent)

getValue

public java.lang.Object getValue(java.lang.String formula,
                                 Secured tci,
                                 java.lang.String scriptId)
                          throws GranException,
                                 bsh.EvalError
Throws:
GranException
bsh.EvalError


Copyright © 2002-2008 TrackStudio, Ltd. All Rights Reserved.