public interface TargetedContentManager
Modifier and Type | Method and Description |
---|---|
java.util.List<Location> |
findLocations(ResourceResolver resolver,
java.lang.String... locationName)
Finds the actual content paths for a given list of location names.
|
java.util.List<Location> |
getCampaignLocations(ResourceResolver resolver,
java.lang.String campaignPath)
Retrieves the list of locations for this campaign.
|
java.util.List<Page> |
getCampaigns(ResourceResolver resourceResolver)
Returns a list of campaigns sorted by priority.
|
java.util.List<Page> |
getCampaigns(ResourceResolver resolver,
java.lang.String location)
Returns a list of campaigns which hold offers with the specified
location value. |
JSONObject |
getTeaserInfo(ResourceResolver resolver,
java.lang.String campaignPath,
java.lang.String location)
Deprecated.
use
getTeasers(ResourceResolver, String, String) instead |
JSONObject |
getTeaserInfo(SlingHttpServletRequest request,
java.lang.String campaignPath,
java.lang.String location)
Deprecated.
use
getTeasers(SlingHttpServletRequest, String) instead |
java.util.List<Teaser> |
getTeasers(ResourceResolver resolver,
java.lang.String location,
java.lang.String pageUrl)
Deprecated.
use
getTeasers(SlingHttpServletRequest, String) instead |
java.util.List<Teaser> |
getTeasers(SlingHttpServletRequest request,
java.lang.String location)
Returns a list of teasers that are available for a location
|
JSONObject getTeaserInfo(ResourceResolver resolver, java.lang.String campaignPath, java.lang.String location)
getTeasers(ResourceResolver, String, String)
insteadresolver
- A resourceResolver from the request (for access control).campaignPath
- A campaign path for a legacy teaser (or null).location
- A named destination (or null for a legacy teaser).JSONObject getTeaserInfo(SlingHttpServletRequest request, java.lang.String campaignPath, java.lang.String location)
getTeasers(SlingHttpServletRequest, String)
insteadrequest
- A sling servlet request. Cannot be null
campaignPath
- A campaign path for a legacy teaser (or null).location
- A named destination (or null for a legacy teaser).getTeaserInfo(ResourceResolver, String, String)
.java.util.List<Teaser> getTeasers(ResourceResolver resolver, java.lang.String location, java.lang.String pageUrl)
getTeasers(SlingHttpServletRequest, String)
insteadresolver
- a ResourceResolver
used to access the repository. Cannot be null
location
- the name of the location for which to return the teasers. Cannot be null
pageUrl
- the url of the page for which to retrieve the teasers. This url includes the extensions and the selectors.
If null
or empty string then the teasers url won't contain the selectors
and the default teaser won't be in the list of teasers returned by this methodTeaser
objects or an empty list if no teasers are foundjava.util.List<Teaser> getTeasers(SlingHttpServletRequest request, java.lang.String location)
request
- a SlingHttpServletRequest
. Cannot be null
location
- the name of the location for which to return the teasers. Cannot be null
Teaser
objects or an empty list if no teasers are foundjava.util.List<Page> getCampaigns(ResourceResolver resourceResolver) throws RepositoryException
resourceResolver
- A resourceResolver from the request (for access control).RepositoryException
- if an error occurs during repository operations.java.util.List<Page> getCampaigns(ResourceResolver resolver, java.lang.String location) throws RepositoryException
location
value.resolver
- ResourceResolver bound to the users sessionlocation
- A named destinationlocation
RepositoryException
- if an error occurs during repository operations.java.util.List<Location> findLocations(ResourceResolver resolver, java.lang.String... locationName)
resolver
- a ResourceResolver
used to access the repositorylocationName
- one or more location names for which to retrieve the pathList
of Location
objects an empty list if no paths were found.java.util.List<Location> getCampaignLocations(ResourceResolver resolver, java.lang.String campaignPath)
resolver
- a ResourceResolver
used to access the repocampaignPath
- the path to the campaignList
of Location
objects or an empty list if the campaign doesn't have any locations (i.e
. offers)"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"