Package de.xima.fc.converter.json
Class JsonPathMapConverter
- java.lang.Object
-
- de.xima.fc.converter.json.JsonPathMapConverter
-
public class JsonPathMapConverter extends Object
Converts objects to a Map of JSON path value pairs and back. This can be used when storing information of which the structure is unknown or variable in DB entities. The information can than be stored in POJOs and turned into a map of key value pairs by this converter which can be stored in an attributes map on the entity. (Migratable) Encryption is enabled by default for each value but can be turned of for specific fields with the annotationNoEncryption
.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
-
Field Summary
Fields Modifier and Type Field Description static JsonPathMapConverter
DEFAULT
A default instance of the converter that encrypts / decrypts all values (other than those explicitly marked withNoEncryption
).static JsonPathMapConverter
NO_ENCRYPTION
A default instance of the converter that does not encrypt / decrypt any values.
-
Constructor Summary
Constructors Constructor Description JsonPathMapConverter(boolean useEncryption)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
parseObject(Map<String,String> data, Class<T> modelClass)
Map<String,String>
toPathValueMap(Object object)
-
-
-
Field Detail
-
DEFAULT
public static final JsonPathMapConverter DEFAULT
A default instance of the converter that encrypts / decrypts all values (other than those explicitly marked withNoEncryption
).
-
NO_ENCRYPTION
public static final JsonPathMapConverter NO_ENCRYPTION
A default instance of the converter that does not encrypt / decrypt any values.
-
-