Package com.adobe.aemds.guide.utils
Class GuidePropertyProviderUtils
- java.lang.Object
-
- com.adobe.aemds.guide.utils.GuidePropertyProviderUtils
-
@Service(GuidePropertyProviderUtils.class) public class GuidePropertyProviderUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description ICloudConfigurationResourceProviderconfigurationResourceProvider
-
Constructor Summary
Constructors Constructor Description GuidePropertyProviderUtils()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description JSONArrayfetchCaptchaCloudServiceConfiguration(Resource captchaResource, java.lang.String captchaType)JSONArrayfetchCoreRecaptchaCloudServiceConfiguration(Resource captchaResource)Fetches all the recaptcha cloud service configuration applicable for captcha core component resourceJSONArrayfetchEsignCloudServiceConfiguration(java.lang.String rootPath)Deprecated.JSONArrayfetchEsignCloudServiceConfiguration(java.lang.String rootPath, Resource guideContainer)Fetches all the adobe sign cloud service configuration from /conf and /etc/cloudservices/echosignJSONArrayfetchEsignCloudServiceConfiguration(Resource guideContainer)Fetches all adobe sign cloud service configuration from /conf applicable for passed resourceJSONArrayfetchEsignCloudServiceConfigurations()Fetches all adobe sign cloud service configuration from /conf, /libs, /apps, /etc without a resource Used by workflow esigns stepJSONArrayfetchRecaptchaCloudServiceConfiguration(java.lang.String rootPath)Deprecated.JSONArrayfetchRecaptchaCloudServiceConfiguration(java.lang.String rootPath, Resource captchaResource)Fetches all the recaptcha cloud service configuration from /etc/cloudservices/recaptcha and those that are applicable for captcha resource from /confJSONArrayfetchRecaptchaCloudServiceConfiguration(Resource captchaResource)Fetches all the recaptcha cloud service configuration applicable for captcha resourceJSONArrayfetchTypekitCloudServiceConfiguration(SlingHttpServletRequest slingRequest)Fetches the list of Typekit cloud service configurations for theme configuration page.JSONArraygetAfterPaginationList(SlingHttpServletRequest request, I18n i18n)JSONArraygetBeforePaginationList(SlingHttpServletRequest request, I18n i18n)JSONArraygetChildPaginationList(SlingHttpServletRequest request, java.lang.String areaType)java.util.Iterator<JSONObject>getJSONIterator(JSONArray arr)java.util.Map<java.lang.String,java.lang.Object>getMapFromJSONObject(JSONObject object)JSONArraygetOverflowPaginationList(SlingHttpServletRequest request, I18n i18n)JSONArrayqueryAction(java.lang.String[] searchPaths)Queries for submit actions present in the systemJSONArrayqueryAppearance(java.lang.String[] searchPaths, java.util.Map<java.lang.String,java.lang.String> options)JSONArrayqueryCaptchaService(java.lang.String[] searchPaths)Queries for submit actions or auto save action based on the given parametersJSONArrayqueryChartReducer(java.lang.String[] searchPaths)JSONArrayqueryDocumentFragmentLayout(java.lang.String[] searchPaths)Queries for document fragment layouts present in the systemJSONArrayqueryFormatters(java.lang.String guideNodeClass, java.lang.String[] searchPaths)Queries for formatters present in the systemJSONArrayqueryFormDataModel(SlingHttpServletRequest request)JSONArrayqueryFormModelSchema(SlingHttpServletRequest request)JSONObjectqueryFragFinder(java.lang.String formType, java.lang.String resourceType, java.util.Map<java.lang.String,java.lang.String> options)JSONArrayqueryLayout(java.lang.String[] searchPaths, java.util.Map<java.lang.String,java.lang.String> options, SlingHttpServletRequest request)JSONArrayqueryLcProcess()Queries for LC services present in the systemJSONArrayqueryMobileLayout(java.lang.String[] searchPaths)Queries for mobile layouts present in the systemJSONArrayqueryPrefillServiceProviders()JSONArrayqueryProgressiveLayout(java.lang.String[] searchPaths)Queries the progressive layouts present in the systemJSONArrayqueryProgressiveStrategies(java.lang.String[] searchPaths)Query to get all progressive strategiesJSONArrayquerySubmitOrAutoSaveAction(java.lang.String[] searchPaths, java.util.Map<java.lang.String,java.lang.String> options)JSONArrayqueryTheme()Queries for theme assets present in the systemJSONArrayqueryValidators(java.lang.String guideNodeClass, java.lang.String[] searchPaths)Queries for validators present in the system
-
-
-
Field Detail
-
configurationResourceProvider
@Reference(policy=DYNAMIC, cardinality=OPTIONAL_UNARY) public volatile ICloudConfigurationResourceProvider configurationResourceProvider
-
-
Method Detail
-
queryAppearance
public JSONArray queryAppearance(java.lang.String[] searchPaths, java.util.Map<java.lang.String,java.lang.String> options)
- Parameters:
searchPaths-options-
-
queryFragFinder
public JSONObject queryFragFinder(java.lang.String formType, java.lang.String resourceType, java.util.Map<java.lang.String,java.lang.String> options)
- Parameters:
formType- It can be AF,AD or FragmentresourceType-options-
-
queryLayout
public JSONArray queryLayout(java.lang.String[] searchPaths, java.util.Map<java.lang.String,java.lang.String> options, SlingHttpServletRequest request)
- Parameters:
searchPaths-options-request-
-
getBeforePaginationList
public JSONArray getBeforePaginationList(SlingHttpServletRequest request, I18n i18n)
- Parameters:
request-request- It contains the sling requesti18n-- Returns:
- This method would return before break pagination list.
-
getAfterPaginationList
public JSONArray getAfterPaginationList(SlingHttpServletRequest request, I18n i18n)
- Parameters:
request-request- It contains the sling requesti18n-- Returns:
- This method would return break after pagination list.
-
getOverflowPaginationList
public JSONArray getOverflowPaginationList(SlingHttpServletRequest request, I18n i18n)
- Parameters:
request-request- It contains the sling requesti18n-- Returns:
- This method would return overflow pagination list.
-
getChildPaginationList
public JSONArray getChildPaginationList(SlingHttpServletRequest request, java.lang.String areaType)
- Parameters:
request- It contains the sling requestareaType- It contains the area type ex : Go To Page, In Page etc- Returns:
- This method would return list of master pages/ content areas.
-
queryPrefillServiceProviders
public JSONArray queryPrefillServiceProviders()
-
queryTheme
public JSONArray queryTheme()
Queries for theme assets present in the system
-
queryAction
public JSONArray queryAction(java.lang.String[] searchPaths)
Queries for submit actions present in the system- Parameters:
searchPaths-
-
queryProgressiveStrategies
public JSONArray queryProgressiveStrategies(java.lang.String[] searchPaths)
Query to get all progressive strategies- Parameters:
searchPaths-
-
queryProgressiveLayout
public JSONArray queryProgressiveLayout(java.lang.String[] searchPaths)
Queries the progressive layouts present in the system- Parameters:
searchPaths-
-
queryValidators
public JSONArray queryValidators(java.lang.String guideNodeClass, java.lang.String[] searchPaths)
Queries for validators present in the system- Parameters:
guideNodeClass-searchPaths-
-
queryFormatters
public JSONArray queryFormatters(java.lang.String guideNodeClass, java.lang.String[] searchPaths)
Queries for formatters present in the system- Parameters:
guideNodeClass-searchPaths-
-
queryCaptchaService
public JSONArray queryCaptchaService(java.lang.String[] searchPaths)
Queries for submit actions or auto save action based on the given parameters- Parameters:
searchPaths-- Returns:
-
querySubmitOrAutoSaveAction
public JSONArray querySubmitOrAutoSaveAction(java.lang.String[] searchPaths, java.util.Map<java.lang.String,java.lang.String> options)
- Parameters:
searchPaths-options-
-
queryLcProcess
public JSONArray queryLcProcess()
Queries for LC services present in the system- Returns:
- JSON array containing the LC Service description
-
queryMobileLayout
public JSONArray queryMobileLayout(java.lang.String[] searchPaths)
Queries for mobile layouts present in the system- Parameters:
searchPaths-
-
queryChartReducer
public JSONArray queryChartReducer(java.lang.String[] searchPaths)
-
fetchRecaptchaCloudServiceConfiguration
public JSONArray fetchRecaptchaCloudServiceConfiguration(Resource captchaResource)
Fetches all the recaptcha cloud service configuration applicable for captcha resource- Parameters:
captchaResource- captcha resource
-
fetchRecaptchaCloudServiceConfiguration
public JSONArray fetchRecaptchaCloudServiceConfiguration(java.lang.String rootPath, Resource captchaResource)
Fetches all the recaptcha cloud service configuration from /etc/cloudservices/recaptcha and those that are applicable for captcha resource from /conf- Parameters:
rootPath- path pointing to root directory for captcha providers in /etc e.g. /etc/cloudservices/recaptchacaptchaResource- captcha resource on the form
-
fetchRecaptchaCloudServiceConfiguration
@Deprecated public JSONArray fetchRecaptchaCloudServiceConfiguration(java.lang.String rootPath)
Deprecated.Fetches all the recaptcha cloud service configuration from the system- Parameters:
rootPath-
-
fetchCoreRecaptchaCloudServiceConfiguration
public JSONArray fetchCoreRecaptchaCloudServiceConfiguration(Resource captchaResource)
Fetches all the recaptcha cloud service configuration applicable for captcha core component resource- Parameters:
captchaResource- captcha resource
-
fetchCaptchaCloudServiceConfiguration
public JSONArray fetchCaptchaCloudServiceConfiguration(Resource captchaResource, java.lang.String captchaType)
-
fetchEsignCloudServiceConfigurations
public JSONArray fetchEsignCloudServiceConfigurations()
Fetches all adobe sign cloud service configuration from /conf, /libs, /apps, /etc without a resource Used by workflow esigns step
-
fetchEsignCloudServiceConfiguration
public JSONArray fetchEsignCloudServiceConfiguration(Resource guideContainer)
Fetches all adobe sign cloud service configuration from /conf applicable for passed resource- Parameters:
guideContainer- resource
-
fetchEsignCloudServiceConfiguration
public JSONArray fetchEsignCloudServiceConfiguration(java.lang.String rootPath, Resource guideContainer)
Fetches all the adobe sign cloud service configuration from /conf and /etc/cloudservices/echosign- Parameters:
rootPath- /etc/cloudservices/echosign
-
fetchEsignCloudServiceConfiguration
@Deprecated public JSONArray fetchEsignCloudServiceConfiguration(java.lang.String rootPath)
Deprecated.Fetches all the esign cloud service configuration from the system- Parameters:
rootPath-
-
getJSONIterator
public java.util.Iterator<JSONObject> getJSONIterator(JSONArray arr)
-
getMapFromJSONObject
public java.util.Map<java.lang.String,java.lang.Object> getMapFromJSONObject(JSONObject object)
- Parameters:
object-
-
queryDocumentFragmentLayout
public JSONArray queryDocumentFragmentLayout(java.lang.String[] searchPaths)
Queries for document fragment layouts present in the system- Parameters:
searchPaths-
-
fetchTypekitCloudServiceConfiguration
public JSONArray fetchTypekitCloudServiceConfiguration(SlingHttpServletRequest slingRequest)
Fetches the list of Typekit cloud service configurations for theme configuration page.- Parameters:
slingRequest- slingrequest object to get the locale- Returns:
- The array of configurations with "text" and "value" keys set to title and path of configuration respectively.
-
queryFormModelSchema
public JSONArray queryFormModelSchema(SlingHttpServletRequest request)
-
queryFormDataModel
public JSONArray queryFormDataModel(SlingHttpServletRequest request)
-
-