Class TypeController
java.lang.Object
de.hybris.platform.cmswebservices.types.controller.TypeController
Controller to deal with component types.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllComponentTypes(Boolean readOnly) getAllComponentTypesByCategory(String category, Boolean readOnly) getComponentTypeByCode(String code, Boolean readOnly) getComponentTypeByCodeAndMode(String code, String mode, Boolean readOnly) protected DataMappervoidsetComponentTypeFacade(ComponentTypeFacade componentTypeFacade) voidsetDataMapper(DataMapper dataMapper)
-
Constructor Details
-
TypeController
public TypeController()
-
-
Method Details
-
getAllComponentTypes
@GetMapping @ResponseBody public ComponentTypeListData getAllComponentTypes(@RequestParam(value="readOnly",required=false,defaultValue="false") Boolean readOnly) -
getAllComponentTypesByCategory
@GetMapping(params="category") @ResponseBody public ComponentTypeListData getAllComponentTypesByCategory(@RequestParam("category") String category, @RequestParam(value="readOnly",required=false,defaultValue="false") Boolean readOnly) -
getComponentTypeByCode
@GetMapping("/{code}") @ResponseBody public ComponentTypeData getComponentTypeByCode(@PathVariable String code, @RequestParam(value="readOnly",required=false,defaultValue="false") Boolean readOnly) throws ComponentTypeNotFoundException - Throws:
ComponentTypeNotFoundException
-
getComponentTypeByCodeAndMode
@GetMapping(params={"code","mode"}) @ResponseBody public ComponentTypeListData getComponentTypeByCodeAndMode(@RequestParam("code") String code, @RequestParam("mode") String mode, @RequestParam(value="readOnly",required=false,defaultValue="false") Boolean readOnly) throws ComponentTypeNotFoundException - Throws:
ComponentTypeNotFoundException
-
getComponentTypeFacade
-
setComponentTypeFacade
-
getDataMapper
-
setDataMapper
-