Class GuidePropertyProviderUtils

    • Constructor Detail

      • GuidePropertyProviderUtils

        public GuidePropertyProviderUtils()
    • 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 Fragment
        resourceType -
        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 request
        i18n -
        Returns:
        This method would return before break pagination list.
      • getAfterPaginationList

        public JSONArray getAfterPaginationList​(SlingHttpServletRequest request,
                                                I18n i18n)
        Parameters:
        request -
        request - It contains the sling request
        i18n -
        Returns:
        This method would return break after pagination list.
      • getOverflowPaginationList

        public JSONArray getOverflowPaginationList​(SlingHttpServletRequest request,
                                                   I18n i18n)
        Parameters:
        request -
        request - It contains the sling request
        i18n -
        Returns:
        This method would return overflow pagination list.
      • getChildPaginationList

        public JSONArray getChildPaginationList​(SlingHttpServletRequest request,
                                                java.lang.String areaType)
        Parameters:
        request - It contains the sling request
        areaType - 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/recaptcha
        captchaResource - 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 -
      • 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.