Class CmsResourceDataJsonHelper

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addPathAndLink​(JSONObject json)
      Adds path and link fields for the resource to the given JSON object.
      void addProperties​(JSONObject result)
      Adds property data to the result object.
      JSONObject attributes()
      Creates a JSON object with the attributes of the resource.
      JSONObject properties​(boolean inherited)
      Creates a JSON object with the properties of the resource.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CmsResourceDataJsonHelper

        public CmsResourceDataJsonHelper​(CmsObject cms,
                                         CmsResource resource,
                                         java.util.function.Predicate<java.lang.String> propertyFilter)
        Creates a new instance.
        Parameters:
        cms - the CMS context
        resource - the resource
        propertyFilter - the property filter, which decides whether properties should be written to JSON or not