Class GuideStyleMigrationUtils


  • public class GuideStyleMigrationUtils
    extends java.lang.Object
    • Constructor Detail

      • GuideStyleMigrationUtils

        public GuideStyleMigrationUtils()
    • Method Detail

      • getSelectorResourceMap

        public static java.util.Map<java.lang.String,​java.lang.String> getSelectorResourceMap​(Resource styleConfig,
                                                                                                    java.util.Map map,
                                                                                                    java.lang.String pathPrefix)
      • getSelectorResourceMap

        public static java.util.Map<java.lang.String,​java.lang.String> getSelectorResourceMap​(Resource styleConfig,
                                                                                                    java.util.Map map)
      • getIDBasedSelector

        public static java.lang.String getIDBasedSelector​(java.util.Map<java.lang.String,​java.lang.String> selectorMap,
                                                          java.lang.String selectorKey)
      • getStatePropertiesMap

        public static java.util.Map getStatePropertiesMap​(java.lang.String breakpointName,
                                                          java.lang.String stateName,
                                                          JSONObject stateJSON)
                                                   throws javax.jcr.RepositoryException,
                                                          JSONException
        Save the theme information for the state.
        Parameters:
        breakpointName - state name for which the theme definition is to be saved
        stateName - state name for which the theme definition is to be saved
        stateJSON - theme definition for the state
        Throws:
        javax.jcr.RepositoryException
        JSONException
      • getSelectorMap

        public static java.util.Map getSelectorMap​(java.lang.String componentType,
                                                   ResourceResolver resolver,
                                                   ResourceMergerService resourceMergerService,
                                                   java.lang.String configNodeName)
      • getSelectorIDMap

        public static java.util.Map getSelectorIDMap​(java.lang.String componentType,
                                                     ResourceResolver resolver,
                                                     ResourceMergerService resourceMergerService,
                                                     java.lang.String configNodeName)