Interface GuideLocalizationService


  • public interface GuideLocalizationService
    • Method Detail

      • createDictionary

        void createDictionary​(Resource guideContainerResource)
                       throws GuideException
        Creates dictionary nodes for a guide container resource.
        Parameters:
        guideContainerResource - The guide container resource for which the dictionary is to be created.
        Throws:
        GuideException
      • updateDictionaryBaseName

        void updateDictionaryBaseName​(Resource guideContainerResource)
                               throws GuideException
        Updates dictionary nodes to reflect the current guide container resource path in the base name.
        Parameters:
        guideContainerResource - The guide container resource for which the dictionary is to be updated.
        Throws:
        GuideException
      • getLocaleTitleCodeMap

        java.util.Map<java.lang.String,​java.lang.String> getLocaleTitleCodeMap()
        Get Map of code and title of supported locales
        Returns:
        map containing locale specific title
      • getSupportedLocales

        java.lang.String[] getSupportedLocales()
        Get a list of supported locales.
        Returns:
        A string array of supported locales
      • createDictionaryWithFragmentContent

        org.apache.sling.commons.json.JSONObject createDictionaryWithFragmentContent​(Resource containerResource)
                                                                              throws GuideException
        Create a dictionary with all the referencing Adaptive Forms Fragments included as well This would create dictionary for all the locales in GuideLocalizationService
        Parameters:
        containerResource -
        Throws:
        GuideException
      • createDictionaryWithFragmentContent

        org.apache.sling.commons.json.JSONObject createDictionaryWithFragmentContent​(Resource containerResource,
                                                                                     java.util.List localeList)
                                                                              throws GuideException
        Create a dictionary with all the referencing Adaptive Forms Fragments included as well for the list of locales provided
        Parameters:
        containerResource -
        localeList -
        Throws:
        GuideException
      • createDictionaryWithFragmentContent

        org.apache.sling.commons.json.JSONObject createDictionaryWithFragmentContent​(Resource containerResource,
                                                                                     java.lang.String locale)
                                                                              throws GuideException
        Create a dictionary with all the referencing Adaptive Forms Fragments included as well for the locale provided
        Parameters:
        containerResource -
        locale -
        Throws:
        GuideException
      • getAvailableLocales

        org.apache.sling.commons.json.JSONObject getAvailableLocales​(Resource containerResource)
                                                              throws GuideException
        Get language codes for all the available dictionaries
        Parameters:
        containerResource -
        Throws:
        GuideException
      • updateAFTimestamp

        void updateAFTimestamp​(Resource guideContainerResource,
                               ResourceResolver resolver)
        Update the last modified for Adaptive Form for both page and dam
        Parameters:
        guideContainerResource - guide container resource
        resolver - resource resolver to be used for update operation