public abstract class ProfileDefinition<P extends CommonProfile>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
protected java.util.function.Function<java.lang.Object[],P> |
newProfile |
| Constructor and Description |
|---|
ProfileDefinition() |
| Modifier and Type | Method and Description |
|---|---|
void |
convertAndAdd(CommonProfile profile,
AttributeLocation attributeLocation,
java.lang.String name,
java.lang.Object value)
Convert a profile or authentication attribute, if necessary, and add it to the profile.
|
void |
convertAndAdd(CommonProfile profile,
java.util.Map<java.lang.String,java.lang.Object> attributes)
Deprecated.
Use
convertAndAdd(CommonProfile, Map, Map) instead. |
void |
convertAndAdd(CommonProfile profile,
java.util.Map<java.lang.String,java.lang.Object> profileAttributes,
java.util.Map<java.lang.String,java.lang.Object> authenticationAttributes)
Convert the profile and authentication attributes, if necessary, and add them to the profile.
|
void |
convertAndAdd(CommonProfile profile,
java.lang.String name,
java.lang.Object value)
Deprecated.
|
protected java.util.Map<java.lang.String,AttributeConverter<? extends java.lang.Object>> |
getConverters() |
java.util.List<java.lang.String> |
getPrimaryAttributes() |
java.util.List<java.lang.String> |
getSecondaryAttributes() |
P |
newProfile(java.lang.Object... parameters)
Return the new built profile.
|
protected void |
primary(java.lang.String name,
AttributeConverter<? extends java.lang.Object> converter)
Add an attribute as a primary one and its converter.
|
protected void |
secondary(java.lang.String name,
AttributeConverter<? extends java.lang.Object> converter)
Add an attribute as a secondary one and its converter.
|
protected void |
setProfileFactory(java.util.function.Function<java.lang.Object[],P> profileFactory)
Define the way to build the profile.
|
protected final org.slf4j.Logger logger
protected java.util.function.Function<java.lang.Object[],P extends CommonProfile> newProfile
public P newProfile(java.lang.Object... parameters)
parameters - some optional input parameters@Deprecated public void convertAndAdd(CommonProfile profile, java.lang.String name, java.lang.Object value)
convertAndAdd(CommonProfile, AttributeLocation, String, Object) instead.profile - the profilename - the attribute namevalue - the attribute valuepublic void convertAndAdd(CommonProfile profile, AttributeLocation attributeLocation, java.lang.String name, java.lang.Object value)
profile - The profile.attributeLocation - Location of the attribute inside the profile: classic profile attribute, authentication attribute, ...name - The attribute name.value - The attribute value.@Deprecated public void convertAndAdd(CommonProfile profile, java.util.Map<java.lang.String,java.lang.Object> attributes)
convertAndAdd(CommonProfile, Map, Map) instead.convertAndAdd(CommonProfile, Map, Map) which supports adding authentication attributes.profile - The profile.attributes - The profile attributes. May be null.public void convertAndAdd(CommonProfile profile, java.util.Map<java.lang.String,java.lang.Object> profileAttributes, java.util.Map<java.lang.String,java.lang.Object> authenticationAttributes)
profile - The profile.profileAttributes - The profile attributes. May be null.authenticationAttributes - The authentication attributes. May be null.protected void setProfileFactory(java.util.function.Function<java.lang.Object[],P> profileFactory)
profileFactory - the way to build the profileprotected void primary(java.lang.String name,
AttributeConverter<? extends java.lang.Object> converter)
name - name of the attributeconverter - converterprotected void secondary(java.lang.String name,
AttributeConverter<? extends java.lang.Object> converter)
name - name of the attributeconverter - converterpublic java.util.List<java.lang.String> getPrimaryAttributes()
public java.util.List<java.lang.String> getSecondaryAttributes()
protected java.util.Map<java.lang.String,AttributeConverter<? extends java.lang.Object>> getConverters()
Copyright © 2018. All Rights Reserved.