Package org.mapfish.print.config.access
Class AccessAssertionPersister
java.lang.Object
org.mapfish.print.config.access.AccessAssertionPersister
Class for marshaling and unmarshaling AccessAssertionObjects to and from JSON.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.json.JSONObject
marshal
(AccessAssertion assertion) Marshal the assertion as a JSON object.unmarshal
(org.json.JSONObject encodedAssertion) Load assertion from the provided json or throw exception if not possible.
-
Constructor Details
-
AccessAssertionPersister
public AccessAssertionPersister()
-
-
Method Details
-
unmarshal
Load assertion from the provided json or throw exception if not possible.- Parameters:
encodedAssertion
- the assertion as it was encoded in JSON.
-
marshal
Marshal the assertion as a JSON object.- Parameters:
assertion
- the assertion to marshal
-