Class TagsExportService
java.lang.Object
com.adobe.acs.commons.exporters.impl.tags.TagsExportService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexportLocalizedTagsForPath(String path, org.apache.sling.api.resource.ResourceResolver rr) Export all tags under passed root path in localized structure ex.exportLocalizedTagsForPath(String path, org.apache.sling.api.resource.ResourceResolver rr, String lang) Export all tags under passed root path in localized structure ex.exportNonLocalizedTagsForPath(String path, org.apache.sling.api.resource.ResourceResolver rr) Export all tags under passed root path in non-localized structure ex.
-
Constructor Details
-
TagsExportService
public TagsExportService()
-
-
Method Details
-
exportNonLocalizedTagsForPath
public String exportNonLocalizedTagsForPath(String path, org.apache.sling.api.resource.ResourceResolver rr) Export all tags under passed root path in non-localized structure ex. 'product {{product}}'- Parameters:
path- root path from which export will beginrr- ResourceResolver object- Returns:
- tags structure as single String
-
exportLocalizedTagsForPath
public String exportLocalizedTagsForPath(String path, org.apache.sling.api.resource.ResourceResolver rr) Export all tags under passed root path in localized structure ex. 'es[Produtos] fr[Products in french] en[Products] {{products}}' If tag does not contain assigned localization as default is used 'en'- Parameters:
path- root path from which export will beginrr- ResourceResolver object- Returns:
- tags structure as single String
-
exportLocalizedTagsForPath
public String exportLocalizedTagsForPath(String path, org.apache.sling.api.resource.ResourceResolver rr, String lang) Export all tags under passed root path in localized structure ex. 'es[Produtos] fr[Products in french] en[Products] {{products}}'- Parameters:
path- root path from which export will beginrr- ResourceResolver objectlang- localization, which will be used as default if tag do not contain any- Returns:
- tags structure as single String
-