Package com.tivoli.am.rba.pip
Class JavaScriptPIP.Context
- java.lang.Object
- 
- com.tivoli.am.rba.pip.JavaScriptPIP.Context
 
- 
- Enclosing class:
- JavaScriptPIP
 
 public static class JavaScriptPIP.Context extends java.lang.ObjectThis class is used to pass information into the javascript rule and allow the rule to pass attributes to the RequestContext. It's used to abstract out the internal classes- Since:
- 8.0.0.3
 
- 
- 
Constructor SummaryConstructors Constructor Description Context(JavaScriptPIP parent, java.util.List sessAttributeList, java.util.List behaveAttributeList, RequestContext context)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttribute(AttributeIdentifier attributeIdentifier, java.lang.String[] values)Add the specified values to the session tablevoidaddBehaviorAttribute(AttributeIdentifier attributeIdentifier, java.lang.String[] values)Add the specified values to the usage data tablejava.lang.Object[]getAttribute(Attribute.Category category, AttributeIdentifier attrIdentifier)This will fetch all of the values for the requested attribute for the user in the context.java.lang.Object[]getBehaviorAttribute(AttributeIdentifier attrIdentifier)java.lang.Object[]getBehaviorAttribute(AttributeIdentifier attrIdentifier, java.lang.String tenantId)This will fetch all of the values for the requested attribute for the user in the context.java.lang.StringgetCurrentUser()java.lang.StringgetCurrentUUID()
 
- 
- 
- 
Constructor Detail- 
Contextpublic Context(JavaScriptPIP parent, java.util.List sessAttributeList, java.util.List behaveAttributeList, RequestContext context) 
 
- 
 - 
Method Detail- 
getCurrentUserpublic java.lang.String getCurrentUser() - Returns:
- the current user
- Since:
- 8.0.0.3
 
 - 
getCurrentUUIDpublic java.lang.String getCurrentUUID() - Returns:
- the current users UUID
- Since:
- 8.0.0.3
 
 - 
getAttributepublic java.lang.Object[] getAttribute(Attribute.Category category, AttributeIdentifier attrIdentifier) This will fetch all of the values for the requested attribute for the user in the context. The values are retrieved from the usage data table in the runtime database- Parameters:
- attrIdentifier- is the- AttributeIdentifierobject that contains the uri, datatype and issuer (optional) of the attribute to find.
- Returns:
- an Object[] of all of the matching values for the requested attribute for this user
- Since:
- 8.0.0.3
- See Also:
- AttributeIdentifier,- Attribute.Category
 
 - 
addAttributepublic void addAttribute(AttributeIdentifier attributeIdentifier, java.lang.String[] values) Add the specified values to the session table- Parameters:
- attrIdentifier- is the- AttributeIdentifierobject that contains the uri, datatype and issuer (optional) of the attribute to add the values to.
- values- are the values to for attribute being passed in.
- Since:
- 8.0.0.3
- See Also:
- AttributeIdentifier
 
 - 
getBehaviorAttributepublic java.lang.Object[] getBehaviorAttribute(AttributeIdentifier attrIdentifier) 
 - 
getBehaviorAttributepublic java.lang.Object[] getBehaviorAttribute(AttributeIdentifier attrIdentifier, java.lang.String tenantId) This will fetch all of the values for the requested attribute for the user in the context. The values are retrieved from the usage data table in the runtime database- Parameters:
- attrIdentifier- is the- AttributeIdentifierobject that contains the uri, datatype and issuer (optional) of the attribute to find.
- Returns:
- an Object[] of all of the matching values for the requested attribute for this user
- Since:
- 8.0.0.4
- See Also:
- AttributeIdentifier
 
 - 
addBehaviorAttributepublic void addBehaviorAttribute(AttributeIdentifier attributeIdentifier, java.lang.String[] values) Add the specified values to the usage data table- Parameters:
- attrIdentifier- is the- AttributeIdentifierobject that contains the uri, datatype and issuer (optional) of the attribute to add the values to.
- values- are the values to for attribute being passed in.
- Since:
- 8.0.0.4
- See Also:
- AttributeIdentifier
 
 
- 
 
-