public class CouchProfileService extends AbstractProfileService<CouchProfile>
Modifier and Type | Field and Description |
---|---|
static String |
COUCH_ID |
attributeNames, ID, LINKEDID, logger, SERIALIZED_PROFILE
Constructor and Description |
---|
CouchProfileService() |
CouchProfileService(org.ektorp.CouchDbConnector couchDbConnector) |
CouchProfileService(org.ektorp.CouchDbConnector couchDbConnector,
PasswordEncoder passwordEncoder) |
CouchProfileService(org.ektorp.CouchDbConnector couchDbConnector,
String attributes) |
CouchProfileService(org.ektorp.CouchDbConnector couchDbConnector,
String attributes,
PasswordEncoder passwordEncoder) |
Modifier and Type | Method and Description |
---|---|
protected void |
deleteById(String id)
Delete a profile by its identifier in the storage.
|
org.ektorp.CouchDbConnector |
getCouchDbConnector() |
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
protected void |
insert(Map<String,Object> attributes)
Insert the attributes in the storage.
|
protected void |
internalInit(WebContext context)
Internal initialization of the object.
|
protected List<Map<String,Object>> |
read(List<String> names,
String key,
String value)
Read the list of defined attributes in the storage for key=value query.
|
void |
setCouchDbConnector(org.ektorp.CouchDbConnector couchDbConnector) |
void |
setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
String |
toString() |
protected void |
update(Map<String,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, validate
defaultProfileDefinition, getProfileDefinition, setProfileDefinition
init, reinit
public static final String COUCH_ID
public CouchProfileService(org.ektorp.CouchDbConnector couchDbConnector, String attributes, PasswordEncoder passwordEncoder)
public CouchProfileService()
public CouchProfileService(org.ektorp.CouchDbConnector couchDbConnector)
public CouchProfileService(org.ektorp.CouchDbConnector couchDbConnector, String attributes)
public CouchProfileService(org.ektorp.CouchDbConnector couchDbConnector, PasswordEncoder passwordEncoder)
protected void internalInit(WebContext context)
InitializableWebObject
internalInit
in class AbstractProfileService<CouchProfile>
context
- the web contextprotected void insert(Map<String,Object> attributes)
AbstractProfileService
insert
in class AbstractProfileService<CouchProfile>
attributes
- the attributesprotected void update(Map<String,Object> attributes)
AbstractProfileService
update
in class AbstractProfileService<CouchProfile>
attributes
- the attributesprotected void deleteById(String id)
AbstractProfileService
deleteById
in class AbstractProfileService<CouchProfile>
id
- the identifierprotected List<Map<String,Object>> read(List<String> names, String key, String value)
AbstractProfileService
read
in class AbstractProfileService<CouchProfile>
names
- the attribute names to readkey
- the key for the queryvalue
- the value for the querypublic org.ektorp.CouchDbConnector getCouchDbConnector()
public void setCouchDbConnector(org.ektorp.CouchDbConnector couchDbConnector)
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Copyright © 2018. All rights reserved.