Package com.day.cq.commons
Interface ListInfoProvider
public interface ListInfoProvider
A
ListInfoProvider enables injecting custom information into a JSON object-
Method Summary
Modifier and TypeMethodDescriptionvoidupdateListGlobalInfo(SlingHttpServletRequest request, JSONObject info, Resource resource) Update list global information with custom propertiesvoidupdateListItemInfo(SlingHttpServletRequest request, JSONObject info, Resource resource) Update list item information with custom properties
-
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 objectinfo- the JSON object to updateresource- 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 objectinfo- the JSON object to updateresource- a sling resource object- Throws:
JSONException- if updating list information failed
-