public class ScriptUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTR_DUMP_KEYS
Key to look up in scriptframework.properties file to decide if we should
print the keys contained in the attributes map out to the trace log.
|
| Constructor and Description |
|---|
ScriptUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Properties |
getFESIScriptProperties()
Get all the properties for the FESI script engine from
fesiextensions.properties.
|
static java.lang.String |
getGUID()
Generate a globally unique id.
|
static java.util.Properties |
getScriptProperties()
Get all the properties for the scripting framework.
|
static java.lang.String |
getScriptProperty(java.lang.String property)
Gets the value of the specified property from a configuration file.
|
static void |
updateLogicalContext(ModelScriptInterface si,
ContextItem item,
java.util.List<ContextItem> beans)
Update the ContextItem, item, with the logical context and add item to
the beans List but only if
si.getLogicalContext(); returns
a non-null value. |
static void |
updateRootDN(ModelScriptInterface si,
ContextItem item,
java.util.List<ContextItem> beans)
Update the ContextItem, item, with the root DN and add item to the beans
List but only if
si.getRootDN(); returns a non-null value. |
static void |
updateServiceProfile(ModelScriptInterface si,
ContextItem item,
java.util.List<ContextItem> beans)
Update the ContextItem, item, with the service profile context and add
item to the beans List but only if
si.getServiceProfileContext(); returns a non-null value. |
public static final java.lang.String ATTR_DUMP_KEYS
public static java.util.Properties getScriptProperties()
public static java.util.Properties getFESIScriptProperties()
public static java.lang.String getScriptProperty(java.lang.String property)
property - The name of the property to lookup.public static java.lang.String getGUID()
public static void updateRootDN(ModelScriptInterface si, ContextItem item, java.util.List<ContextItem> beans)
si.getRootDN(); returns a non-null value.
This is a helper method for model extensions which may or may not
implement each part of the ModelScriptInterface.si - The ModelScriptInterface to query.item - The ContextItem to update.beans - The List to add item to.public static void updateLogicalContext(ModelScriptInterface si, ContextItem item, java.util.List<ContextItem> beans)
si.getLogicalContext(); returns
a non-null value. This is a helper method for model extensions which may
or may not implement each part of the ModelScriptInterface.si - The ModelScriptInterface to query.item - The ContextItem to update.beans - The List to add item to.public static void updateServiceProfile(ModelScriptInterface si, ContextItem item, java.util.List<ContextItem> beans)
si.getServiceProfileContext(); returns a non-null value.
This is a helper method for model extensions which may or may not
implement each part of the ModelScriptInterface.si - The ModelScriptInterface to query.item - The ContextItem to update.beans - The List to add item to.