Package com.tivoli.am.rba.pip
Class JavaScriptPIP.Configuration
- java.lang.Object
-
- com.tivoli.am.rba.pip.JavaScriptPIP.Configuration
-
- Enclosing class:
- JavaScriptPIP
public static class JavaScriptPIP.Configuration extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>
getInstanceConfiguration()
java.lang.String
getInstanceName()
java.util.Map
getInstanceStorage()
This instance storage can be used by JS PIPs to storage items for their instancestatic JavaScriptPIP.Configuration
readConfiguration(java.lang.String instanceName, java.util.Map<java.lang.String,java.lang.String> instanceConfigurationMap)
This method will read in all the configuration for this PIPjava.lang.Object
runJavascript(JavaScriptPIP parent, java.util.List<Attribute> attributes, java.util.List<Attribute> behaviorAttributes, RequestContext context, AttributeIdentifier requestedAttrIdentifier, Attribute.Category category, java.lang.String functionName)
This method will execute the java script rule for the given functionName, If the method returns a results it will be returned as an Object and will need to be casted to the expected result.static java.lang.String
unescapeConfigurationEntry(java.lang.String escapedString)
This method will return a javascript code that has been escaped to store
-
-
-
Method Detail
-
getInstanceName
public java.lang.String getInstanceName()
-
getInstanceConfiguration
public java.util.Map<java.lang.String,java.lang.String> getInstanceConfiguration()
-
getInstanceStorage
public java.util.Map getInstanceStorage()
This instance storage can be used by JS PIPs to storage items for their instance- Returns:
-
readConfiguration
public static JavaScriptPIP.Configuration readConfiguration(java.lang.String instanceName, java.util.Map<java.lang.String,java.lang.String> instanceConfigurationMap)
This method will read in all the configuration for this PIP- Returns:
-
unescapeConfigurationEntry
public static java.lang.String unescapeConfigurationEntry(java.lang.String escapedString)
This method will return a javascript code that has been escaped to store- Parameters:
escapedString
-- Returns:
- String without the escaped quotes and newlines
-
runJavascript
public java.lang.Object runJavascript(JavaScriptPIP parent, java.util.List<Attribute> attributes, java.util.List<Attribute> behaviorAttributes, RequestContext context, AttributeIdentifier requestedAttrIdentifier, Attribute.Category category, java.lang.String functionName)
This method will execute the java script rule for the given functionName, If the method returns a results it will be returned as an Object and will need to be casted to the expected result.- Parameters:
parent
-attrList
-context
-requestedAttrIdentifier
-category
-functionName
-- Returns:
-
-