public static class JavaScriptPIP.Context
extends java.lang.Object
Constructor and Description |
---|
Context(JavaScriptPIP parent,
java.util.List sessAttributeList,
java.util.List behaveAttributeList,
RequestContext context) |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(AttributeIdentifier attributeIdentifier,
java.lang.String[] values)
Add the specified values to the session table
|
void |
addBehaviorAttribute(AttributeIdentifier attributeIdentifier,
java.lang.String[] values)
Add the specified values to the usage data table
|
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.
|
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.String |
getCurrentUser() |
java.lang.String |
getCurrentUUID() |
public Context(JavaScriptPIP parent, java.util.List sessAttributeList, java.util.List behaveAttributeList, RequestContext context)
public java.lang.String getCurrentUser()
public java.lang.String getCurrentUUID()
public java.lang.Object[] getAttribute(Attribute.Category category, AttributeIdentifier attrIdentifier)
attrIdentifier
- is the AttributeIdentifier
object that contains the uri, datatype and issuer (optional) of the attribute to find.AttributeIdentifier
,
Attribute.Category
public void addAttribute(AttributeIdentifier attributeIdentifier, java.lang.String[] values)
attrIdentifier
- is the AttributeIdentifier
object 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.AttributeIdentifier
public java.lang.Object[] getBehaviorAttribute(AttributeIdentifier attrIdentifier)
public java.lang.Object[] getBehaviorAttribute(AttributeIdentifier attrIdentifier, java.lang.String tenantId)
attrIdentifier
- is the AttributeIdentifier
object that contains the uri, datatype and issuer (optional) of the attribute to find.AttributeIdentifier
public void addBehaviorAttribute(AttributeIdentifier attributeIdentifier, java.lang.String[] values)
attrIdentifier
- is the AttributeIdentifier
object 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.AttributeIdentifier