I have noted down the steps as follows.

1.       Install in author and publish

2.       Add an entry in externalizer service config as (domain http://domain) for example(localhost http://localhost)  the domain name is the domain in url

[cid:image001.png@01CF2420.2CBCFC50]


3.       Create a sling:osgiconfig node (in both author and publish) of com.adobe.acs.commons.sitemaps.impl.SiteMapGeneratorImpl-domain

a.       Add com.acs.sitemap.domain and give the domain name (the name we gave in externalizer and the name of the domain in url)

b.      Add com.acs.sitemap.siterootpath and assign the site root path corresponding to that domain.(for example., “content/geometrixx/en”)

4.       Create a sling:osgiconfig node (only in publish) of com.adobe.acs.commons.sitemaps.impl.SiteMapFilter . This doesn’t have to have any configuration

5.       Create  a sling:osgiconfig node (in author only) of com.adobe.acs.commons.sitemaps.impl.PageReplicationEventListener . This doesn’t have to have any configuration

6.       In your dispatcherFlush agent, add a header CQ-Action-Scope: ResourceOnly as shown in the fig below.
[cid:image002.png@01CF2422.1B019410]


From: david g. [mailto:notifications@github.com]
Sent: Monday, February 10, 2014 9:37 AM
To: Adobe-Consulting-Services/acs-aem-commons
Cc: gopal Kalyanaraman
Subject: Re: [acs-aem-commons] Feature/site map generator (#117)


In bundle/src/main/java/com/adobe/acs/commons/sitemaps/impl/SiteMapFlushJobConsumer.java:

> +    }

> +    private Set<String> getListOfDomains(String[] paths , ReplicationAction action){

> +        Set<String> tobeFlushedDomains =  new HashSet<String>();

> +        for(String path :paths){

> +            for(String key : siteMapGenerators.keySet()){

> +                if(path.startsWith(key) &&!tobeFlushedDomains.contains(key)){

> +                   tobeFlushedDomains.add(key);

> +                }

> +            }

> +        }

> +        return tobeFlushedDomains;

> +    }

> +

> +    private void flushSiteMapXml(ReplicationAction action) throws LoginException, ReplicationException{

> +        ResourceResolver resolver = getResolver(action.getUserId());

> +        dispatcherFlusher.flush(resolver,ReplicationActionType.ACTIVATE, false, DispatcherFlushFilter.RESOURCE_ONLY, SiteMapConstants.SITEMAP_REQUEST_URL);

Well have to remember to note that for this to work, Resource-Only flush agents will have to be setup; else this dispatcherFlusher call won't find any replication agents to filter.

This is fine, just something to make very explicit in the "How to use" section of the feature doc.

—
Reply to this email directly or view it on GitHub<https://github.com/Adobe-Consulting-Services/acs-aem-commons/pull/117/files#r9573815>.