Class TagsExportService

java.lang.Object
com.adobe.acs.commons.exporters.impl.tags.TagsExportService

public class TagsExportService extends Object
  • 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 begin
      rr - 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 begin
      rr - 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 begin
      rr - ResourceResolver object
      lang - localization, which will be used as default if tag do not contain any
      Returns:
      tags structure as single String