Package com.day.cq.commons
Interface ListInfoProvider
-
public interface ListInfoProvider
AListInfoProvider
enables injecting custom information into a JSON object
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
updateListGlobalInfo(SlingHttpServletRequest request, JSONObject info, Resource resource)
Update list global information with custom propertiesvoid
updateListItemInfo(SlingHttpServletRequest request, JSONObject info, Resource resource)
Update list item information with custom properties
-
-
-
Method Detail
-
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
-
-