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