Package com.tivoli.am.rba.pip
Class JavaScriptPIP.Context
java.lang.Object
com.tivoli.am.rba.pip.JavaScriptPIP.Context
- Enclosing class:
com.tivoli.am.rba.pip.JavaScriptPIP
This 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(AttributeIdentifier attributeIdentifier, String[] values) Add the specified values to the session tablevoid
addBehaviorAttribute
(AttributeIdentifier attributeIdentifier, String[] values) Add the specified values to the usage data tableObject[]
getAttribute
(Attribute.Category category, AttributeIdentifier attrIdentifier) This will fetch all of the values for the requested attribute for the user in the context.Object[]
getBehaviorAttribute
(AttributeIdentifier attrIdentifier) Object[]
getBehaviorAttribute
(AttributeIdentifier attrIdentifier, String tenantId) This will fetch all of the values for the requested attribute for the user in the context.
-
Constructor Details
-
Context
-
-
Method Details
-
getCurrentUser
- Returns:
- the current user
- Since:
- 8.0.0.3
-
getCurrentUUID
- Returns:
- the current users UUID
- Since:
- 8.0.0.3
-
getAttribute
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 theAttributeIdentifier
object 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:
-
addAttribute
Add the specified values to the session table- Parameters:
values
- are the values to for attribute being passed in.attrIdentifier
- is theAttributeIdentifier
object that contains the uri, datatype and issuer (optional) of the attribute to add the values to.- Since:
- 8.0.0.3
- See Also:
-
getBehaviorAttribute
-
getBehaviorAttribute
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 theAttributeIdentifier
object 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:
-
addBehaviorAttribute
Add the specified values to the usage data table- Parameters:
values
- are the values to for attribute being passed in.attrIdentifier
- is theAttributeIdentifier
object that contains the uri, datatype and issuer (optional) of the attribute to add the values to.- Since:
- 8.0.0.4
- See Also:
-