Class AccessAssertionPersister

java.lang.Object
org.mapfish.print.config.access.AccessAssertionPersister

public final class AccessAssertionPersister extends Object
Class for marshaling and unmarshaling AccessAssertionObjects to and from JSON.
  • Constructor Details

    • AccessAssertionPersister

      public AccessAssertionPersister()
  • Method Details

    • 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