public interface PublishDataSource
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
convertJSONtoMap(JSONArray json) |
JSONObject |
getArticles(Map searchCriteria)
Get articles from AEM and DPS.
|
JSONObject |
getBanners(Map searchCriteria) |
JSONObject |
getCollection(DPSCollection dpsCollection) |
JSONObject |
getCollections(Map searchCriteria)
Get collections from AEM and DPS.
|
JSONObject |
getLayouts(Map searchCriteria) |
JSONObject |
getReferences(Map<String,Object> searchCriteria)
Retrieve which collections reference the one indicated by the 'page' parameter.
|
JSONObject getArticles(Map searchCriteria) throws DPSException
searchCriteria - Name/Value pairs used to filter the results. Acceptable values are:
- text: will search through string properties and see if the string contains the specified value
- source: AEM or DPS will only extract entries from that source
'searchCriteria' can be null.
Hint: To get articles in a collection, get that collection and check its contentDetails propertyDPSExceptionJSONObject getBanners(Map searchCriteria) throws DPSException
DPSExceptionJSONObject getCollection(DPSCollection dpsCollection) throws DPSException
DPSExceptionJSONObject getCollections(Map searchCriteria) throws DPSException
searchCriteria - - source: 'AEM' or 'DPS' will only extract entries from that source
- flatten: true or false. If false, only return collections that are not contained in other collections.
'searchCriteria' can be null.DPSExceptionJSONObject getLayouts(Map searchCriteria) throws DPSException
DPSExceptionJSONObject getReferences(Map<String,Object> searchCriteria) throws DPSException
searchCriteria - - page: the DPS entity as represented by a com.day.cq.wcm.api.Page
- includeAncestors: false by default
If false: only those entities that directly reference the 'entityId'
will be returned.
If true: a number of json arrays containing the reference path, down to
the root, will be returned. As entities can be referenced by more then one collection
there may be more than 1 path returned.DPSExceptionMap<String,Object> convertJSONtoMap(JSONArray json) throws DPSException
DPSException"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"