Class CMSItemDropdownComponentTypeAttributePopulator

    • Constructor Detail

      • CMSItemDropdownComponentTypeAttributePopulator

        public CMSItemDropdownComponentTypeAttributePopulator()
    • Method Detail

      • getComponentParams

        protected java.util.Map<java.lang.String,​java.lang.String> getComponentParams​(java.lang.Class<?> type,
                                                                                            ComponentTypeAttributeData target)
      • getComponentSubTypes

        protected java.util.Map<java.lang.String,​java.lang.String> getComponentSubTypes​(java.lang.Class<?> type)
        This method retrieves a map of concrete subtypes of the provided type. (If the provided type is concrete it will also be included in the map).
        Parameters:
        type - The type for which to retrieve its map of subtypes.
        Returns:
        map Map of concrete component subtypes. The key is the code of the sub-type and the value is its i18n key.
      • getComponentTypeI18nKey

        protected java.lang.String getComponentTypeI18nKey​(ComposedTypeModel typeModel)
        This method retrieves the i18n key of the provided component type.
        Parameters:
        typeModel - The type for which to retrieve its map of subtypes.
        Returns:
        String The i18n key of the provided component type.
      • setTypeService

        public void setTypeService​(TypeService typeService)
      • getTypeService

        protected TypeService getTypeService()
      • setI18nComponentTypePopulator

        public void setI18nComponentTypePopulator​(I18nComponentTypePopulator i18nComponentTypePopulator)
      • setComponentTypeDataFactory

        public void setComponentTypeDataFactory​(org.springframework.beans.factory.ObjectFactory<ComponentTypeData> componentTypeDataFactory)
      • getComponentTypeDataFactory

        protected org.springframework.beans.factory.ObjectFactory<ComponentTypeData> getComponentTypeDataFactory()
      • setSearchParams

        public void setSearchParams​(java.lang.String searchParams)
        If searchParams is set, the value will be added to the "params" map for the "itemSearchParams" key. This is useful when the "itemSearchParams" query-parameter needs to be set when calling the CMS Item Search API. Example of usage of this setter:
         
         	<property name="searchParams" value="pageStatus:active" />
         
         
        Parameters:
        searchParams - the searchParams value
      • getSearchParams

        protected java.lang.String getSearchParams()
      • getPlaceholder

        protected java.lang.String getPlaceholder()
      • setPlaceholder

        public void setPlaceholder​(java.lang.String placeholder)