public class SitecatalystUtil extends Object
Modifier and Type | Method and Description |
---|---|
static Resource |
findAnalyticsResource(ResourceResolver resolver,
Resource resource)
|
static Integer |
getCookieDomainNamePeriod(SlingHttpServletRequest request,
String server)
Returns number of domain name periods.
|
static String |
getFormattedPagePath(Resource pageResource,
Configuration configuration)
Formats the resource path of a Resource
pageResource
relative to the provided
Configuration path. |
static String |
getPublishPreferredReportSuite(Configuration config)
Returns one of the configured report suites based on the following rules:
return first publish report suite, if not, return first report suite for all
run modes and if still nothing available return first author report suite
|
static String |
getReportSuites(SlingSettingsService settingsService,
Configuration configuration)
Returns a comma separated list of report suites depending on the current
run mode of the server.
|
static String |
getServer(SlingHttpServletRequest request,
Configuration config)
Returns server URL according to request scheme.
|
public static String getServer(SlingHttpServletRequest request, Configuration config)
request
- config
- public static String getReportSuites(SlingSettingsService settingsService, Configuration configuration)
settingsService
- configuration
- public static Integer getCookieDomainNamePeriod(SlingHttpServletRequest request, String server)
request
- server
- public static String getFormattedPagePath(Resource pageResource, Configuration configuration)
pageResource
relative to the provided
Configuration
path. A trailing
slash will be removed if present, all other slashes will be replaced by
colons.
/content/geometrixx/en/support
will be formatted to
content:geometrixx:en:support
configuration
- SiteCatalyst configurationpublic static Resource findAnalyticsResource(ResourceResolver resolver, Resource resource)
Resource
until a Page
with a valid analytics
configuration is found. The configuration is considered valid if the node
has a property cq:services.resolver
- resource
- null
if none could be found.public static String getPublishPreferredReportSuite(Configuration config)
config
- the Analytics configuration"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"