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 Summary
Constructors Constructor Description Context(JavaScriptPIP parent, java.util.List sessAttributeList, java.util.List behaveAttributeList, RequestContext context)
-
Method Summary
All 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
-
Context
public Context(JavaScriptPIP parent, java.util.List sessAttributeList, java.util.List behaveAttributeList, RequestContext context)
-
-
Method Detail
-
getCurrentUser
public java.lang.String getCurrentUser()
- Returns:
- the current user
- Since:
- 8.0.0.3
-
getCurrentUUID
public java.lang.String getCurrentUUID()
- Returns:
- the current users UUID
- Since:
- 8.0.0.3
-
getAttribute
public 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 theAttributeIdentifierobject 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
-
addAttribute
public void addAttribute(AttributeIdentifier attributeIdentifier, java.lang.String[] values)
Add the specified values to the session table- Parameters:
attrIdentifier- is theAttributeIdentifierobject 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
-
getBehaviorAttribute
public java.lang.Object[] getBehaviorAttribute(AttributeIdentifier attrIdentifier)
-
getBehaviorAttribute
public 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 theAttributeIdentifierobject 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
-
addBehaviorAttribute
public void addBehaviorAttribute(AttributeIdentifier attributeIdentifier, java.lang.String[] values)
Add the specified values to the usage data table- Parameters:
attrIdentifier- is theAttributeIdentifierobject 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
-
-