public final class ProfileHelper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static CommonProfile |
buildUserProfileByClassCompleteName(java.lang.String completeName)
Build a profile by its class name.
|
static <U extends CommonProfile> |
flatIntoAProfileList(java.util.LinkedHashMap<java.lang.String,U> profiles)
Flat the linked hashmap of profiles into a list of profiles.
|
static <U extends CommonProfile> |
flatIntoOneProfile(java.util.LinkedHashMap<java.lang.String,U> profiles)
Flat the linked hashmap of profiles into a single optional profile.
|
static InternalAttributeHandler |
getInternalAttributeHandler() |
static boolean |
isTypedIdOf(java.lang.String id,
java.lang.Class<? extends CommonProfile> clazz)
Indicate if the user identifier matches this kind of profile.
|
static CommonProfile |
restoreOrBuildProfile(ProfileDefinition<? extends CommonProfile> profileDefinition,
java.lang.String typedId,
java.util.Map<java.lang.String,java.lang.Object> profileAttributes,
java.util.Map<java.lang.String,java.lang.Object> authenticationAttributes,
java.lang.Object... parameters)
Restore or build a profile.
|
static CommonProfile |
restoreOrBuildProfile(ProfileDefinition<? extends CommonProfile> profileDefinition,
java.lang.String typedId,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.lang.Object... parameters)
Deprecated.
|
static void |
setInternalAttributeHandler(InternalAttributeHandler internalAttributeHandler) |
public static boolean isTypedIdOf(java.lang.String id,
java.lang.Class<? extends CommonProfile> clazz)
id - user identifierclazz - profile class@Deprecated public static CommonProfile restoreOrBuildProfile(ProfileDefinition<? extends CommonProfile> profileDefinition, java.lang.String typedId, java.util.Map<java.lang.String,java.lang.Object> attributes, java.lang.Object... parameters)
restoreOrBuildProfile(ProfileDefinition, String, Map, Map, Object...) instead.restoreOrBuildProfile(ProfileDefinition, String, Map, Map, Object...) which supports authentication
attributes.profileDefinition - the profile definitiontypedId - the typed identifierattributes - The profile attributes. May be null.parameters - additional parameters for the profile definitionpublic static CommonProfile restoreOrBuildProfile(ProfileDefinition<? extends CommonProfile> profileDefinition, java.lang.String typedId, java.util.Map<java.lang.String,java.lang.Object> profileAttributes, java.util.Map<java.lang.String,java.lang.Object> authenticationAttributes, java.lang.Object... parameters)
profileDefinition - the profile definitiontypedId - the typed identifierprofileAttributes - The profile attributes. May be null.authenticationAttributes - The authentication attributes. May be null.parameters - additional parameters for the profile definitionpublic static CommonProfile buildUserProfileByClassCompleteName(java.lang.String completeName)
completeName - the class namepublic static <U extends CommonProfile> java.util.Optional<U> flatIntoOneProfile(java.util.LinkedHashMap<java.lang.String,U> profiles)
U - the kind of profileprofiles - the linked hashmap of profilespublic static <U extends CommonProfile> java.util.List<U> flatIntoAProfileList(java.util.LinkedHashMap<java.lang.String,U> profiles)
U - the kind of profileprofiles - the linked hashmap of profilespublic static InternalAttributeHandler getInternalAttributeHandler()
public static void setInternalAttributeHandler(InternalAttributeHandler internalAttributeHandler)
Copyright © 2018. All Rights Reserved.