public class JacksonMongoSessionConverter extends AbstractMongoSessionConverter
AbstractMongoSessionConverter implementation using Jackson.GenericConverter.ConvertiblePair| 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, setIndexResolverpublic JacksonMongoSessionConverter()
public JacksonMongoSessionConverter(Iterable<com.fasterxml.jackson.databind.Module> modules)
public JacksonMongoSessionConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
@Nullable protected org.springframework.data.mongodb.core.query.Query getQueryForIndex(String indexName, Object indexValue)
AbstractMongoSessionConvertergetQueryForIndex in class AbstractMongoSessionConverterindexName - name of the indexindexValue - value to query againstprotected com.mongodb.DBObject convert(MongoSession source)
convert in class AbstractMongoSessionConverter@Nullable protected MongoSession convert(org.bson.Document source)
convert in class AbstractMongoSessionConverterCopyright © 2014-2019–2020 Pivotal, Inc.. All rights reserved.