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, NEVER_VALIDATE
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for CouchProfileService.CouchProfileService
(org.ektorp.CouchDbConnector couchDbConnector) Constructor for CouchProfileService.CouchProfileService
(org.ektorp.CouchDbConnector couchDbConnector, String attributes) Constructor for CouchProfileService.CouchProfileService
(org.ektorp.CouchDbConnector couchDbConnector, String attributes, org.pac4j.core.credentials.password.PasswordEncoder passwordEncoder) Constructor for CouchProfileService.CouchProfileService
(org.ektorp.CouchDbConnector couchDbConnector, org.pac4j.core.credentials.password.PasswordEncoder passwordEncoder) Constructor for CouchProfileService. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
deleteById
(String id) protected void
protected void
internalInit
(boolean forceReinit) 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
getProfileDefinition, setProfileDefinition, setProfileDefinitionIfUndefined
Methods inherited from class org.pac4j.core.util.InitializableObject
afterInternalInit, beforeInternalInit, getInitialized, getLastAttempt, getMaxAttempts, getMinTimeIntervalBetweenAttemptsInMilliseconds, getNbAttempts, init, init, isInitialized, reinit, setMaxAttempts, setMinTimeIntervalBetweenAttemptsInMilliseconds, shouldInitialize, toString
-
Field Details
-
COUCH_ID
ConstantCOUCH_ID="_id"
- See Also:
-
-
Constructor Details
-
CouchProfileService
public CouchProfileService(org.ektorp.CouchDbConnector couchDbConnector, String attributes, org.pac4j.core.credentials.password.PasswordEncoder passwordEncoder) Constructor for CouchProfileService.
- Parameters:
couchDbConnector
- aCouchDbConnector
objectattributes
- aString
objectpasswordEncoder
- aPasswordEncoder
object
-
CouchProfileService
public CouchProfileService()Constructor for CouchProfileService.
-
CouchProfileService
public CouchProfileService(org.ektorp.CouchDbConnector couchDbConnector) Constructor for CouchProfileService.
- Parameters:
couchDbConnector
- aCouchDbConnector
object
-
CouchProfileService
Constructor for CouchProfileService.
- Parameters:
couchDbConnector
- aCouchDbConnector
objectattributes
- aString
object
-
CouchProfileService
public CouchProfileService(org.ektorp.CouchDbConnector couchDbConnector, org.pac4j.core.credentials.password.PasswordEncoder passwordEncoder) Constructor for CouchProfileService.
- Parameters:
couchDbConnector
- aCouchDbConnector
objectpasswordEncoder
- aPasswordEncoder
object
-
-
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>
-