public class PPInteractionHelper extends Object
PPInteractionHelper
is a helper class for the
Personal Profile Service for creating questions for Interaction for value
and interaction for consent.
The question key will always be of the following form in a properties file.
Question: Constructor and Description |
---|
PPInteractionHelper(String lang)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getInteractForConsentQuestion(boolean isQuery,
String ppElement)
Gets the inquiry question for interaction for consent.
|
Map |
getInteractForValueQuestions(boolean isQuery,
String ppElement)
Gets Interact For value questions for an idpp element.
|
String |
getPPAttribute(String key)
Gets the Personal Profile DS Attribute from the attribute mapper.
|
BigInteger |
getTextMaxChars(String resource)
Gets the text maxmimum characters for a given attribute.
|
BigInteger |
getTextMinChars(String resource)
Gets the text minimum characters
|
public PPInteractionHelper(String lang)
lang
- Language for the properties file.public String getInteractForConsentQuestion(boolean isQuery, String ppElement)
isQuery
- true if this is a PP
query request,
false if this is a PP
modify request.ppElement
- leaf element in PP
select expresssion.public Map getInteractForValueQuestions(boolean isQuery, String ppElement)
isQuery
- true if this is a PP
query request,
false if this is a PP
modify request.ppElement
- leaf element in PP
select expression.PP
element and question.
key is the ppelement for e.g. CN
value is the question for e.g. "What's the CN value?";public String getPPAttribute(String key)
key
- PP Attributepublic BigInteger getTextMinChars(String resource) throws NumberFormatException
resource
- a resource that's looking for minimum text chars.NumberFormatException
- if it can not parse the number.public BigInteger getTextMaxChars(String resource) throws NumberFormatException
resource
- an attribute that's looking for the max text chars.NumberFormatException
- if it can not parse the number.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.