Package org.pac4j.couch.profile.service
Class CouchProfileService
java.lang.Object
org.pac4j.core.util.InitializableObject
org.pac4j.core.profile.definition.ProfileDefinitionAware
org.pac4j.core.profile.service.AbstractProfileService<CouchProfile>
org.pac4j.couch.profile.service.CouchProfileService
- All Implemented Interfaces:
org.pac4j.core.credentials.authenticator.Authenticator
,org.pac4j.core.profile.service.ProfileService<CouchProfile>
public class CouchProfileService
extends org.pac4j.core.profile.service.AbstractProfileService<CouchProfile>
The CouchDB profile service.
- Since:
- 2.0.0
- Author:
- Elie Roux
-
Field Summary
FieldsFields inherited from class org.pac4j.core.profile.service.AbstractProfileService
attributeNames, ID, LINKEDID, logger, SERIALIZED_PROFILE
Fields inherited from interface org.pac4j.core.credentials.authenticator.Authenticator
ALWAYS_VALIDATE
-
Constructor Summary
ConstructorsConstructorDescriptionCouchProfileService
(org.ektorp.CouchDbConnector couchDbConnector) CouchProfileService
(org.ektorp.CouchDbConnector couchDbConnector, String attributes) CouchProfileService
(org.ektorp.CouchDbConnector couchDbConnector, String attributes, org.pac4j.core.credentials.password.PasswordEncoder passwordEncoder) CouchProfileService
(org.ektorp.CouchDbConnector couchDbConnector, org.pac4j.core.credentials.password.PasswordEncoder passwordEncoder) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
deleteById
(String id) org.ektorp.CouchDbConnector
com.fasterxml.jackson.databind.ObjectMapper
protected void
protected void
internalInit
(boolean forceReinit) void
setCouchDbConnector
(org.ektorp.CouchDbConnector couchDbConnector) void
setObjectMapper
(com.fasterxml.jackson.databind.ObjectMapper objectMapper) toString()
protected void
Methods inherited from class org.pac4j.core.profile.service.AbstractProfileService
convertAttributesToProfile, convertProfileAndPasswordToAttributes, create, defineAttributesToRead, findById, findByLinkedId, getAttributes, getIdAttribute, getPasswordAttribute, getPasswordEncoder, getSerializer, getUsernameAttribute, isLegacyMode, remove, removeById, setAttributes, setIdAttribute, setPasswordAttribute, setPasswordEncoder, setSerializer, setUsernameAttribute, update, validate
Methods inherited from class org.pac4j.core.profile.definition.ProfileDefinitionAware
defaultProfileDefinition, getProfileDefinition, setProfileDefinition
Methods inherited from class org.pac4j.core.util.InitializableObject
afterInternalInit, beforeInternalInit, getLastAttempt, getMaxAttempts, getMinTimeIntervalBetweenAttemptsInMilliseconds, getNbAttempts, init, init, isInitialized, reinit, setMaxAttempts, setMinTimeIntervalBetweenAttemptsInMilliseconds, shouldInitialize
-
Field Details
-
COUCH_ID
- See Also:
-
-
Constructor Details
-
CouchProfileService
public CouchProfileService(org.ektorp.CouchDbConnector couchDbConnector, String attributes, org.pac4j.core.credentials.password.PasswordEncoder passwordEncoder) -
CouchProfileService
public CouchProfileService() -
CouchProfileService
public CouchProfileService(org.ektorp.CouchDbConnector couchDbConnector) -
CouchProfileService
-
CouchProfileService
public CouchProfileService(org.ektorp.CouchDbConnector couchDbConnector, org.pac4j.core.credentials.password.PasswordEncoder passwordEncoder)
-
-
Method Details
-
internalInit
protected void internalInit(boolean forceReinit) - Overrides:
internalInit
in classorg.pac4j.core.profile.service.AbstractProfileService<CouchProfile>
-
insert
- Specified by:
insert
in classorg.pac4j.core.profile.service.AbstractProfileService<CouchProfile>
-
update
- Specified by:
update
in classorg.pac4j.core.profile.service.AbstractProfileService<CouchProfile>
-
deleteById
- Specified by:
deleteById
in classorg.pac4j.core.profile.service.AbstractProfileService<CouchProfile>
-
read
- Specified by:
read
in classorg.pac4j.core.profile.service.AbstractProfileService<CouchProfile>
-
getCouchDbConnector
public org.ektorp.CouchDbConnector getCouchDbConnector() -
setCouchDbConnector
public void setCouchDbConnector(org.ektorp.CouchDbConnector couchDbConnector) -
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
setObjectMapper
public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
toString
-