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 ICloudConfigurationResourceProvider
configurationResourceProvider
-
Constructor Summary
Constructors Constructor Description GuidePropertyProviderUtils()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description JSONArray
fetchCaptchaCloudServiceConfiguration(Resource captchaResource, java.lang.String captchaType)
JSONArray
fetchCoreRecaptchaCloudServiceConfiguration(Resource captchaResource)
Fetches all the recaptcha cloud service configuration applicable for captcha core component resourceJSONArray
fetchEsignCloudServiceConfiguration(java.lang.String rootPath)
Deprecated.JSONArray
fetchEsignCloudServiceConfiguration(java.lang.String rootPath, Resource guideContainer)
Fetches all the adobe sign cloud service configuration from /conf and /etc/cloudservices/echosignJSONArray
fetchEsignCloudServiceConfiguration(Resource guideContainer)
Fetches all adobe sign cloud service configuration from /conf applicable for passed resourceJSONArray
fetchEsignCloudServiceConfigurations()
Fetches all adobe sign cloud service configuration from /conf, /libs, /apps, /etc without a resource Used by workflow esigns stepJSONArray
fetchRecaptchaCloudServiceConfiguration(java.lang.String rootPath)
Deprecated.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 /confJSONArray
fetchRecaptchaCloudServiceConfiguration(Resource captchaResource)
Fetches all the recaptcha cloud service configuration applicable for captcha resourceJSONArray
fetchTypekitCloudServiceConfiguration(SlingHttpServletRequest slingRequest)
Fetches the list of Typekit cloud service configurations for theme configuration page.JSONArray
getAfterPaginationList(SlingHttpServletRequest request, I18n i18n)
JSONArray
getBeforePaginationList(SlingHttpServletRequest request, I18n i18n)
JSONArray
getChildPaginationList(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)
JSONArray
getOverflowPaginationList(SlingHttpServletRequest request, I18n i18n)
JSONArray
queryAction(java.lang.String[] searchPaths)
Queries for submit actions present in the systemJSONArray
queryAppearance(java.lang.String[] searchPaths, java.util.Map<java.lang.String,java.lang.String> options)
JSONArray
queryCaptchaService(java.lang.String[] searchPaths)
Queries for submit actions or auto save action based on the given parametersJSONArray
queryChartReducer(java.lang.String[] searchPaths)
JSONArray
queryDocumentFragmentLayout(java.lang.String[] searchPaths)
Queries for document fragment layouts present in the systemJSONArray
queryFormatters(java.lang.String guideNodeClass, java.lang.String[] searchPaths)
Queries for formatters present in the systemJSONArray
queryFormDataModel(SlingHttpServletRequest request)
JSONArray
queryFormModelSchema(SlingHttpServletRequest request)
JSONObject
queryFragFinder(java.lang.String formType, java.lang.String resourceType, java.util.Map<java.lang.String,java.lang.String> options)
JSONArray
queryLayout(java.lang.String[] searchPaths, java.util.Map<java.lang.String,java.lang.String> options, SlingHttpServletRequest request)
JSONArray
queryLcProcess()
Queries for LC services present in the systemJSONArray
queryMobileLayout(java.lang.String[] searchPaths)
Queries for mobile layouts present in the systemJSONArray
queryPrefillServiceProviders()
JSONArray
queryProgressiveLayout(java.lang.String[] searchPaths)
Queries the progressive layouts present in the systemJSONArray
queryProgressiveStrategies(java.lang.String[] searchPaths)
Query to get all progressive strategiesJSONArray
querySubmitOrAutoSaveAction(java.lang.String[] searchPaths, java.util.Map<java.lang.String,java.lang.String> options)
JSONArray
queryTheme()
Queries for theme assets present in the systemJSONArray
queryValidators(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)
-
-