public class ContentQueryManagerImpl extends Object implements ContentQueryManager
Modifier and Type | Field and Description |
---|---|
static Integer |
DEFAULT_LIST_SIZE |
Constructor and Description |
---|
ContentQueryManagerImpl(ICS ics) |
Modifier and Type | Method and Description |
---|---|
List<AssetResultRow> |
execute(long contentQueryId, String siteName)
Given the id of Content Query, this fetches the list of assets matching Content Query's search criteria.
|
List<AssetResultRow> |
execute(long contentQueryId, String siteName, Integer listSize, String sortField, String sortOrder)
Given the name of Content Query, this fetches the list of assets matching Content Query's search criteria.
|
List<AssetResultRow> |
execute(String contentQueryName, String siteName)
Given the name of Content Query, this fetches the list of assets matching Content Query's search criteria.
|
List<AssetResultRow> |
execute(String contentQueryName, String siteName, Integer listSize, String sortField, String sortOrder)
Given the name of Content Query, this fetches the list of assets matching Content Query's search criteria.
|
public static final Integer DEFAULT_LIST_SIZE
public ContentQueryManagerImpl(ICS ics)
public List<AssetResultRow> execute(String contentQueryName, String siteName) throws AssetAccessException
ContentQueryManager
execute
in interface ContentQueryManager
contentQueryName
- Content Query asset name.siteName
- Name of the site/publicationAssetAccessException
- an AssetAccessExceptionpublic List<AssetResultRow> execute(String contentQueryName, String siteName, Integer listSize, String sortField, String sortOrder) throws AssetAccessException
ContentQueryManager
execute
in interface ContentQueryManager
contentQueryName
- Content Query asset name.siteName
- Name of the site/publicationlistSize
- The maximum size of the list which you want from Content Query. If no value is provided then it will pick "List Size" of Content Query asset.sortField
- The field on which the list of assets will be sorted. If no value is provided then it will pick the "Sort Field" value of Content Query asset.sortOrder
- The order in which the list of assets will be sorted. The default sort order is "ascending".AssetAccessException
- an AssetAccessExceptionpublic List<AssetResultRow> execute(long contentQueryId, String siteName) throws AssetAccessException
ContentQueryManager
execute
in interface ContentQueryManager
contentQueryId
- Content Query asset's id.siteName
- Name of the site/publicationAssetAccessException
- an AssetAccessExceptionpublic List<AssetResultRow> execute(long contentQueryId, String siteName, Integer listSize, String sortField, String sortOrder) throws AssetAccessException
ContentQueryManager
execute
in interface ContentQueryManager
contentQueryId
- Content Query asset's id.siteName
- Name of the site/publicationlistSize
- The maximum size of the list which you want from Content Query. If no value is provided then it will pick "List Size" of Content Query asset.sortField
- The field on which the list of assets will be sorted. If no value is provided then it will pick the "Sort Field" value of Content Query asset.sortOrder
- The order in which the list of assets will be sorted. The default sort order is "ascending".AssetAccessException
- an AssetAccessException