Class DefaultComponentTypeFacade

    • Constructor Detail

      • DefaultComponentTypeFacade

        public DefaultComponentTypeFacade()
    • Method Detail

      • getAllComponentTypes

        @Deprecated(since="1905",
                    forRemoval=true)
        public java.util.List<ComponentTypeData> getAllComponentTypes()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Find all cms component types. This does not include abstract component types nor action component types.
        Specified by:
        getAllComponentTypes in interface ComponentTypeFacade
        Returns:
        list of component types; never null
      • getAllComponentTypes

        @Deprecated(since="1905",
                    forRemoval=true)
        public java.util.List<ComponentTypeData> getAllComponentTypes​(java.lang.String category)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Find all component types by category. This does not include abstract component types nor action component types.
        Specified by:
        getAllComponentTypes in interface ComponentTypeFacade
        Parameters:
        category - - the category of the component type to retrieve
        Returns:
        list of types; never null
      • getAllCmsItemTypes

        public java.util.List<ComponentTypeData> getAllCmsItemTypes​(java.util.List<StructureTypeCategory> categories,
                                                                    boolean readOnly)
        Description copied from interface: ComponentTypeFacade
        Find all cms item types by category. This does not include abstract component types nor action component types.
        Specified by:
        getAllCmsItemTypes in interface ComponentTypeFacade
        Parameters:
        categories - - the list of categories for the cms item type to retrieve
        readOnly - - make all attributes read only (editable=false)
        Returns:
        list of types; never null. Empty result is returned if the list of categories is empty.
      • getComponentTypeByCodeAndMode

        @Deprecated(since="1905",
                    forRemoval=true)
        public ComponentTypeData getComponentTypeByCodeAndMode​(java.lang.String code,
                                                               java.lang.String mode)
                                                        throws ComponentTypeNotFoundException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Get a single component type structure for a given structure type mode.
        Specified by:
        getComponentTypeByCodeAndMode in interface ComponentTypeFacade
        Parameters:
        code - - the type code of the component type to retrieve
        mode - - the mode of the structure type
        Returns:
        the component type structure or null when the code and mode provided do not match any existing types
        Throws:
        ComponentTypeNotFoundException - when the code provided does not match any existing types
      • setStructureTypeContext

        protected void setStructureTypeContext​(boolean readOnly)
        Sets the type structure context. The context contains information about whether all attributes for a given type should be editable or not. In read-only mode, all attributes will have their editable property set to FALSE.
        Parameters:
        readOnly - defines whether all attributes will have their editable property set to FALSE.
      • setComponentTypeStructureService

        public void setComponentTypeStructureService​(ComponentTypeStructureService componentTypeStructureService)
      • getTypeService

        protected TypeService getTypeService()
      • setTypeService

        public void setTypeService​(TypeService typeService)
      • setStructureTypeModeService

        public void setStructureTypeModeService​(StructureTypeModeService structureTypeModeService)
      • setCmsAdminSiteService

        public void setCmsAdminSiteService​(CMSAdminSiteService cmsAdminSiteService)