public class JacksonMongoSessionConverter extends AbstractMongoSessionConverter
AbstractMongoSessionConverter
implementation using Jackson.GenericConverter.ConvertiblePair
EXPIRE_AT_FIELD_NAME
Constructor and Description |
---|
JacksonMongoSessionConverter() |
JacksonMongoSessionConverter(Iterable<com.fasterxml.jackson.databind.Module> modules) |
JacksonMongoSessionConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
Modifier and Type | Method and Description |
---|---|
protected MongoSession |
convert(org.bson.Document source) |
protected com.mongodb.DBObject |
convert(MongoSession source) |
protected org.springframework.data.mongodb.core.query.Query |
getQueryForIndex(String indexName,
Object indexValue)
Returns query to be executed to return sessions based on a particular index.
|
convert, ensureIndexes, extractPrincipal, getConvertibleTypes
public JacksonMongoSessionConverter()
public JacksonMongoSessionConverter(Iterable<com.fasterxml.jackson.databind.Module> modules)
public JacksonMongoSessionConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
protected org.springframework.data.mongodb.core.query.Query getQueryForIndex(String indexName, Object indexValue)
AbstractMongoSessionConverter
getQueryForIndex
in class AbstractMongoSessionConverter
indexName
- name of the indexindexValue
- value to query againstprotected com.mongodb.DBObject convert(MongoSession source)
convert
in class AbstractMongoSessionConverter
protected MongoSession convert(org.bson.Document source)
convert
in class AbstractMongoSessionConverter
Copyright © 2014-2018–2019 Pivotal, Inc.. All rights reserved.