Package io.meeds.commons.digest.service
Class DigestParamsCodec
java.lang.Object
io.meeds.commons.digest.service.DigestParamsCodec
Writes and reads back the PARAMS column of a waiting item: a small JSON
object of strings, ids only. Written at capture, read at send time.
-
Method Summary
-
Method Details
-
serialize
- Parameters:
ownerParameters- the parameters the notification plugin stored- Returns:
- the JSON to store, null when there is nothing worth storing
-
fragment
- Parameters:
name- a parameter namevalue- its value- Returns:
- the fragment a stored JSON contains for this parameter, used to find the items about one object
-
parse
- Parameters:
json- the stored PARAMS, as written byserialize(Map)- Returns:
- the parameters, in storage order, empty when nothing was stored or when the content is not what this codec writes
-