Class CatalogsController
- java.lang.Object
-
- de.hybris.platform.ycommercewebservices.v2.controller.BaseController
-
- de.hybris.platform.ycommercewebservices.v2.controller.CatalogsController
-
@Controller @RequestMapping("/{baseSiteId}/catalogs") public class CatalogsController extends BaseController
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.ycommercewebservices.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 Constructor Description CatalogsController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intcountRecurrecyLevel(java.util.List<CatalogData> catalogDataList)protected intcountRecurrencyForCatalogData(CatalogData catalog)protected intcountRecurrencyForCatalogVersionData(CatalogVersionData catalogVersion)protected intcountRecurrencyForCategoryHierarchyData(int currentValue, CategoryHierarchyData hierarchy)CatalogWsDTOgetCatalog(java.lang.String catalogId, java.lang.String fields)CatalogListWsDTOgetCatalogs(java.lang.String fields)CatalogVersionWsDTOgetCatalogVersion(java.lang.String catalogId, java.lang.String catalogVersionId, java.lang.String fields)CategoryHierarchyWsDTOgetCategories(java.lang.String catalogId, java.lang.String catalogVersionId, java.lang.String categoryId, java.lang.String fields)-
Methods inherited from class de.hybris.platform.ycommercewebservices.v2.controller.BaseController
addPaginationField, getDataMapper, handleDuplicateUidException, handleErrorInternal, handleHttpMessageNotReadableException, handleModelNotFoundException, logParam, logParam, logValue, sanitize, setDataMapper, setTotalCountHeader, setTotalCountHeader, validate
-
-
-
-
Method Detail
-
getCatalogs
@RequestMapping(method=GET) @ResponseBody public CatalogListWsDTO getCatalogs(@RequestParam(defaultValue="DEFAULT") java.lang.String fields)
-
getCatalog
@RequestMapping(value="/{catalogId}", method=GET) @ResponseBody public CatalogWsDTO getCatalog(@PathVariable java.lang.String catalogId, @RequestParam(defaultValue="DEFAULT") java.lang.String fields)
-
getCatalogVersion
@RequestMapping(value="/{catalogId}/{catalogVersionId}", method=GET) @ResponseBody public CatalogVersionWsDTO getCatalogVersion(@PathVariable java.lang.String catalogId, @PathVariable java.lang.String catalogVersionId, @RequestParam(defaultValue="DEFAULT") java.lang.String fields)
-
getCategories
@RequestMapping(value="/{catalogId}/{catalogVersionId}/categories/{categoryId}", method=GET) @ResponseBody public CategoryHierarchyWsDTO getCategories(@PathVariable java.lang.String catalogId, @PathVariable java.lang.String catalogVersionId, @PathVariable java.lang.String categoryId, @RequestParam(defaultValue="DEFAULT") java.lang.String fields)
-
countRecurrecyLevel
protected int countRecurrecyLevel(java.util.List<CatalogData> catalogDataList)
-
countRecurrencyForCatalogData
protected int countRecurrencyForCatalogData(CatalogData catalog)
-
countRecurrencyForCatalogVersionData
protected int countRecurrencyForCatalogVersionData(CatalogVersionData catalogVersion)
-
countRecurrencyForCategoryHierarchyData
protected int countRecurrencyForCategoryHierarchyData(int currentValue, CategoryHierarchyData hierarchy)
-
-