Interface ListInfoProvider


public interface ListInfoProvider
A ListInfoProvider enables injecting custom information into a JSON object
  • Method Details

    • updateListGlobalInfo

      void updateListGlobalInfo(SlingHttpServletRequest request, JSONObject info, Resource resource) throws JSONException
      Update list global information with custom properties
      Parameters:
      request - a sling http request object
      info - the JSON object to update
      resource - a sling resource object
      Throws:
      JSONException - if updating list information failed
    • updateListItemInfo

      void updateListItemInfo(SlingHttpServletRequest request, JSONObject info, Resource resource) throws JSONException
      Update list item information with custom properties
      Parameters:
      request - a sling http request object
      info - the JSON object to update
      resource - a sling resource object
      Throws:
      JSONException - if updating list information failed