Class JavaScriptPIP.Context

java.lang.Object
com.tivoli.am.rba.pip.JavaScriptPIP.Context
Enclosing class:
com.tivoli.am.rba.pip.JavaScriptPIP

public static class JavaScriptPIP.Context extends Object
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 Details

    • Context

      public Context(com.tivoli.am.rba.pip.JavaScriptPIP parent, List sessAttributeList, List behaveAttributeList, RequestContext context)
  • Method Details

    • getCurrentUser

      public String getCurrentUser()
      Returns:
      the current user
      Since:
      8.0.0.3
    • getCurrentUUID

      public String getCurrentUUID()
      Returns:
      the current users UUID
      Since:
      8.0.0.3
    • getAttribute

      public 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 AttributeIdentifier 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

      public void addAttribute(AttributeIdentifier attributeIdentifier, String[] values)
      Add the specified values to the session table
      Parameters:
      values - are the values to for attribute being passed in.
      attrIdentifier - is the AttributeIdentifier 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

      public Object[] getBehaviorAttribute(AttributeIdentifier attrIdentifier)
    • getBehaviorAttribute

      public Object[] getBehaviorAttribute(AttributeIdentifier attrIdentifier, 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 AttributeIdentifier 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

      public void addBehaviorAttribute(AttributeIdentifier attributeIdentifier, String[] values)
      Add the specified values to the usage data table
      Parameters:
      values - are the values to for attribute being passed in.
      attrIdentifier - is the AttributeIdentifier object that contains the uri, datatype and issuer (optional) of the attribute to add the values to.
      Since:
      8.0.0.4
      See Also: