public static class JavaScriptPIP.Configuration
extends java.lang.Object
Modifier and Type | Method and 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 instance
|
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
|
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.
|
static java.lang.String |
unescapeConfigurationEntry(java.lang.String escapedString)
This method will return a javascript code that has been escaped to store
|
public java.lang.String getInstanceName()
public java.util.Map<java.lang.String,java.lang.String> getInstanceConfiguration()
public java.util.Map getInstanceStorage()
public static JavaScriptPIP.Configuration readConfiguration(java.lang.String instanceName, java.util.Map<java.lang.String,java.lang.String> instanceConfigurationMap)
public static java.lang.String unescapeConfigurationEntry(java.lang.String escapedString)
escapedString
- 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)
parent
- attrList
- context
- requestedAttrIdentifier
- category
- functionName
-