Package com.adobe.aemds.guide.service
Interface GuideLocalizationService
-
public interface GuideLocalizationService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
createDictionary(Resource guideContainerResource)
Creates dictionary nodes for a guide container resource.org.apache.sling.commons.json.JSONObject
createDictionaryWithFragmentContent(Resource containerResource)
Create a dictionary with all the referencing Adaptive Forms Fragments included as well This would create dictionary for all the locales inGuideLocalizationService
org.apache.sling.commons.json.JSONObject
createDictionaryWithFragmentContent(Resource containerResource, java.lang.String locale)
Create a dictionary with all the referencing Adaptive Forms Fragments included as well for the locale providedorg.apache.sling.commons.json.JSONObject
createDictionaryWithFragmentContent(Resource containerResource, java.util.List localeList)
Create a dictionary with all the referencing Adaptive Forms Fragments included as well for the list of locales providedorg.apache.sling.commons.json.JSONObject
getAvailableLocales(Resource containerResource)
Get language codes for all the available dictionariesjava.util.Map<java.lang.String,java.lang.String>
getLocaleTitleCodeMap()
Get Map of code and title of supported localesjava.lang.String[]
getSupportedLocales()
Get a list of supported locales.void
updateAFTimestamp(Resource guideContainerResource, ResourceResolver resolver)
Update the last modified for Adaptive Form for both page and damvoid
updateDictionaryBaseName(Resource guideContainerResource)
Updates dictionary nodes to reflect the current guide container resource path in the base name.
-
-
-
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 inGuideLocalizationService
- 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 resourceresolver
- resource resolver to be used for update operation
-
-