Class CatalogsController
java.lang.Object
de.hybris.platform.commercewebservices.core.v2.controller.BaseController
de.hybris.platform.commercewebservices.core.v2.controller.CatalogsController
@Controller
@RequestMapping("/{baseSiteId}/catalogs")
public class CatalogsController
extends BaseController
-
Field Summary
Fields inherited from class de.hybris.platform.commercewebservices.core.v2.controller.BaseController
BASIC_FIELD_SET, DEFAULT_CURRENT_PAGE, DEFAULT_FIELD_SET, DEFAULT_PAGE_SIZE, HEADER_TOTAL_COUNT, INVALID_REQUEST_BODY_ERROR_MESSAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intcountRecurrecyLevel(List<CatalogData> catalogDataList) protected intcountRecurrencyForCatalogData(CatalogData catalog) protected intcountRecurrencyForCatalogVersionData(CatalogVersionData catalogVersion) protected intcountRecurrencyForCategoryHierarchyData(int currentValue, CategoryHierarchyData hierarchy) getCatalog(String catalogId, String fields) getCatalogs(String fields) getCatalogVersion(String catalogId, String catalogVersionId, String fields) getCategories(String catalogId, String catalogVersionId, String categoryId, String fields) Methods inherited from class de.hybris.platform.commercewebservices.core.v2.controller.BaseController
addPaginationField, getDataMapper, handleDuplicateUidException, handleErrorInternal, handleHttpMessageNotReadableException, handleModelNotFoundException, logParam, logParam, logValue, sanitize, setDataMapper, setTotalCountHeader, setTotalCountHeader, validate
-
Constructor Details
-
CatalogsController
public CatalogsController()
-
-
Method Details
-
getCatalogs
@RequestMapping(method=GET) @ResponseBody public CatalogListWsDTO getCatalogs(@RequestParam(defaultValue="DEFAULT") String fields) -
getCatalog
@RequestMapping(value="/{catalogId}", method=GET) @ResponseBody public CatalogWsDTO getCatalog(@PathVariable String catalogId, @RequestParam(defaultValue="DEFAULT") String fields) -
getCatalogVersion
@RequestMapping(value="/{catalogId}/{catalogVersionId}", method=GET) @ResponseBody public CatalogVersionWsDTO getCatalogVersion(@PathVariable String catalogId, @PathVariable String catalogVersionId, @RequestParam(defaultValue="DEFAULT") String fields) -
getCategories
@RequestMapping(value="/{catalogId}/{catalogVersionId}/categories/{categoryId}", method=GET) @ResponseBody public CategoryHierarchyWsDTO getCategories(@PathVariable String catalogId, @PathVariable String catalogVersionId, @PathVariable String categoryId, @RequestParam(defaultValue="DEFAULT") String fields) -
countRecurrecyLevel
-
countRecurrencyForCatalogData
-
countRecurrencyForCatalogVersionData
-
countRecurrencyForCategoryHierarchyData
protected int countRecurrencyForCategoryHierarchyData(int currentValue, CategoryHierarchyData hierarchy)
-