public class InMemoryProfileService<U extends CommonProfile> extends AbstractProfileService<U>
| Modifier and Type | Field and Description |
|---|---|
java.util.function.Function<java.lang.Object[],U> |
profileFactory |
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> |
profiles |
attributeNames, ID, LINKEDID, logger, SERIALIZED_PROFILE| Constructor and Description |
|---|
InMemoryProfileService(java.util.function.Function<java.lang.Object[],U> profileFactory) |
InMemoryProfileService(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> profiles,
java.util.function.Function<java.lang.Object[],U> profileFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
deleteById(java.lang.String id)
Delete a profile by its identifier in the storage.
|
protected void |
insert(java.util.Map<java.lang.String,java.lang.Object> attributes)
Insert the attributes in the storage.
|
protected void |
internalInit(WebContext context)
Internal initialization of the object.
|
protected java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
read(java.util.List<java.lang.String> names,
java.lang.String key,
java.lang.String value)
Read the list of defined attributes in the storage for key=value query.
|
protected void |
update(java.util.Map<java.lang.String,java.lang.Object> attributes)
Update the attributes in the storage.
|
convertAttributesToProfile, convertProfileAndPasswordToAttributes, create, defineAttributesToRead, findById, findByLinkedId, getAttributes, getIdAttribute, getJavaSerializationHelper, getPasswordAttribute, getPasswordEncoder, getUsernameAttribute, isLegacyMode, remove, removeById, setAttributes, setIdAttribute, setJavaSerializationHelper, setPasswordAttribute, setPasswordEncoder, setUsernameAttribute, update, validatedefaultProfileDefinition, getProfileDefinition, setProfileDefinitioninit, reinitpublic java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> profiles
public java.util.function.Function<java.lang.Object[],U extends CommonProfile> profileFactory
public InMemoryProfileService(java.util.function.Function<java.lang.Object[],U> profileFactory)
public InMemoryProfileService(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> profiles,
java.util.function.Function<java.lang.Object[],U> profileFactory)
protected void internalInit(WebContext context)
InitializableWebObjectinternalInit in class AbstractProfileService<U extends CommonProfile>context - the web contextprotected void insert(java.util.Map<java.lang.String,java.lang.Object> attributes)
AbstractProfileServiceinsert in class AbstractProfileService<U extends CommonProfile>attributes - the attributesprotected void update(java.util.Map<java.lang.String,java.lang.Object> attributes)
AbstractProfileServiceupdate in class AbstractProfileService<U extends CommonProfile>attributes - the attributesprotected void deleteById(java.lang.String id)
AbstractProfileServicedeleteById in class AbstractProfileService<U extends CommonProfile>id - the identifierprotected java.util.List<java.util.Map<java.lang.String,java.lang.Object>> read(java.util.List<java.lang.String> names,
java.lang.String key,
java.lang.String value)
AbstractProfileServiceread in class AbstractProfileService<U extends CommonProfile>names - the attribute names to readkey - the key for the queryvalue - the value for the queryCopyright © 2018. All Rights Reserved.