Interface AssociatedContentService
-
@ProviderType public interface AssociatedContentServiceThis services provides access to content associated with products an categories. It uses queries, optimised for the product's out-of-the-box indexes to retrieve them.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAssociatedContentService.AssetParamsDefines the parameters used to queryAssets (exceptContentFragments) as associated content.static classAssociatedContentService.CfParamsDefines the parameters used to queryContentFragments as associated content.static classAssociatedContentService.PageParamsDefines the parameters used to queryPages as associated content.static classAssociatedContentService.XfParamsDefines the parameters used to query experience fragments as associated content.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AssociatedContentQuery<com.adobe.cq.dam.cfm.ContentFragment>listCategoryContentFragments(org.apache.sling.api.resource.ResourceResolver rr, AssociatedContentService.CfParams params)Returns anAssociatedContentQueryto query for allContentFragments, that are associated to the category with the given identifier.AssociatedContentQuery<com.day.cq.wcm.api.Page>listCategoryContentPages(org.apache.sling.api.resource.ResourceResolver rr, AssociatedContentService.PageParams params)Returns anAssociatedContentQueryto query for allPages, that are associated to the category with the given identifier.AssociatedContentQuery<com.day.cq.wcm.api.Page>listCategoryExperienceFragments(org.apache.sling.api.resource.ResourceResolver rr, AssociatedContentService.XfParams params)Returns anAssociatedContentQueryto query for all Experience Fragments, that are associated to the category with the given identifier.AssociatedContentQuery<com.day.cq.dam.api.Asset>listProductAssets(org.apache.sling.api.resource.ResourceResolver rr, AssociatedContentService.AssetParams params)Returns anAssociatedContentQueryto query for allAssets (excl.AssociatedContentQuery<com.adobe.cq.dam.cfm.ContentFragment>listProductContentFragments(org.apache.sling.api.resource.ResourceResolver rr, AssociatedContentService.CfParams params)Returns anAssociatedContentQueryto query for allContentFragments, that are associated to the product with the given identifier.AssociatedContentQuery<com.day.cq.wcm.api.Page>listProductContentPages(org.apache.sling.api.resource.ResourceResolver rr, AssociatedContentService.PageParams params)Returns anAssociatedContentQueryto query for allPages, that are associated to the product with the given identifier.AssociatedContentQuery<com.day.cq.wcm.api.Page>listProductExperienceFragments(org.apache.sling.api.resource.ResourceResolver rr, AssociatedContentService.XfParams params)Returns anAssociatedContentQueryto query for all Experience Fragments, that are associated to the product with the given identifier.
-
-
-
Method Detail
-
listProductAssets
AssociatedContentQuery<com.day.cq.dam.api.Asset> listProductAssets(org.apache.sling.api.resource.ResourceResolver rr, AssociatedContentService.AssetParams params)
Returns anAssociatedContentQueryto query for allAssets (excl.ContentFragments), that are associated to the product with the given identifier.- Parameters:
rr- theResourceResolverto use for queryingparams- search parameters- Returns:
- a prepared
AssociatedContentQuery
-
listProductExperienceFragments
AssociatedContentQuery<com.day.cq.wcm.api.Page> listProductExperienceFragments(org.apache.sling.api.resource.ResourceResolver rr, AssociatedContentService.XfParams params)
Returns anAssociatedContentQueryto query for all Experience Fragments, that are associated to the product with the given identifier.- Parameters:
rr- theResourceResolverto use for queryingparams- search parameters- Returns:
- a prepared
AssociatedContentQuery
-
listCategoryExperienceFragments
AssociatedContentQuery<com.day.cq.wcm.api.Page> listCategoryExperienceFragments(org.apache.sling.api.resource.ResourceResolver rr, AssociatedContentService.XfParams params)
Returns anAssociatedContentQueryto query for all Experience Fragments, that are associated to the category with the given identifier.- Parameters:
rr- theResourceResolverto use for queryingparams- search parameters- Returns:
- a prepared
AssociatedContentQuery
-
listProductContentFragments
AssociatedContentQuery<com.adobe.cq.dam.cfm.ContentFragment> listProductContentFragments(org.apache.sling.api.resource.ResourceResolver rr, AssociatedContentService.CfParams params)
Returns anAssociatedContentQueryto query for allContentFragments, that are associated to the product with the given identifier. The bothCfParams.modelandCfParams.propertyshould be provided to have effect, they are ignored otherwise.- Parameters:
rr- theResourceResolverto use for queryingparams- search parameters- Returns:
- a prepared
AssociatedContentQuery
-
listCategoryContentFragments
AssociatedContentQuery<com.adobe.cq.dam.cfm.ContentFragment> listCategoryContentFragments(org.apache.sling.api.resource.ResourceResolver rr, AssociatedContentService.CfParams params)
Returns anAssociatedContentQueryto query for allContentFragments, that are associated to the category with the given identifier. The bothCfParams.modelandCfParams.propertyshould be provided to have effect, they are ignored otherwise.- Parameters:
rr- theResourceResolverto use for queryingparams- search parameters- Returns:
- a prepared
AssociatedContentQuery
-
listProductContentPages
AssociatedContentQuery<com.day.cq.wcm.api.Page> listProductContentPages(org.apache.sling.api.resource.ResourceResolver rr, AssociatedContentService.PageParams params)
Returns anAssociatedContentQueryto query for allPages, that are associated to the product with the given identifier.- Parameters:
rr- theResourceResolverto use for queryingparams- search parameters- Returns:
- a prepared
AssociatedContentQuery
-
listCategoryContentPages
AssociatedContentQuery<com.day.cq.wcm.api.Page> listCategoryContentPages(org.apache.sling.api.resource.ResourceResolver rr, AssociatedContentService.PageParams params)
Returns anAssociatedContentQueryto query for allPages, that are associated to the category with the given identifier.- Parameters:
rr- theResourceResolverto use for queryingparams- search parameters- Returns:
- a prepared
AssociatedContentQuery
-
-