Class TmaProductsController
java.lang.Object
de.hybris.platform.b2ctelcooccaddon.controllers.BaseController
de.hybris.platform.b2ctelcooccaddon.controllers.TmaProductsController
@Controller
@RequestMapping("/{baseSiteId}/products")
public class TmaProductsController
extends BaseController
Web Services Controller to expose the functionality of the
TmaProductOfferFacade and SearchFacade.-
Field Summary
Fields inherited from class de.hybris.platform.b2ctelcooccaddon.controllers.BaseController
DEFAULT_FIELD_SET, FULL_FIELD_SET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetApplicableUID(String userId) getProductByCode(String productCode, String processType, String userId, String fields, @Valid String region) protected booleanMethods inherited from class de.hybris.platform.b2ctelcooccaddon.controllers.BaseController
getDataMapper, getI18nService, getMessageSource, handleErrorInternal, handleModelNotFoundException, sanitize, setDataMapper, setI18nService, setMessageSource, validate
-
Constructor Details
-
TmaProductsController
public TmaProductsController()
-
-
Method Details
-
getProductByCode
@RequestMapping(value="/{productCode}", method=GET) @Cacheable(value="productCache", key="T(de.hybris.platform.commercewebservicescommons.cache.CommerceCacheKeyGenerator).generateKey(true,true,true,true,true,#productCode,#processType,#userId,#fields,#region)") @ResponseStatus(OK) @ResponseBody public ProductWsDTO getProductByCode(@PathVariable String productCode, @RequestParam(required=false) String processType, @RequestParam(required=false) String userId, @RequestParam(defaultValue="DEFAULT") String fields, @Valid @RequestParam(value="region",required=false) @Valid String region) -
getApplicableUID
-
hasRole
-