Class TmaSubscriptionBaseController
java.lang.Object
de.hybris.platform.b2ctelcowebservices.v1.controller.BaseController
de.hybris.platform.b2ctelcowebservices.v1.controller.TmaSubscriptionBaseController
@Controller
@Secured("ROLE_TRUSTED_CLIENT")
@RequestMapping("/subscriptionBases")
public class TmaSubscriptionBaseController
extends BaseController
Controller exposing operations related to the
TmaSubscriptionBaseData.- Since:
- 6.6
-
Field Summary
Fields inherited from class de.hybris.platform.b2ctelcowebservices.v1.controller.BaseController
DEFAULT_FIELD_SET, FULL_FIELD_SET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSubscriptionBase(TmaSubscriptionBaseWsDto subscriptionBaseWsDto, String fields) Creates a new subscription base with the details received in the request.voiddeleteSubscriptionBase(String billingSystemId, String subscriberIdentity) Deletes the subscription base found with the given subscriber identity.protected TmaSubscriptionBaseFacadeprotected de.hybris.platform.webservicescommons.validators.CompositeValidatorvoidinitBinder(org.springframework.web.bind.WebDataBinder binder) voidsetTmaSubscriptionBaseFacade(TmaSubscriptionBaseFacade tmaSubscriptionBaseFacade) voidsetTmaSubscriptionBaseWsDtoValidator(de.hybris.platform.webservicescommons.validators.CompositeValidator tmaSubscriptionBaseWsDtoValidator) Methods inherited from class de.hybris.platform.b2ctelcowebservices.v1.controller.BaseController
getDataMapper, handleErrorInternal, handleModelNotFoundException, sanitize, setDataMapper, validate
-
Constructor Details
-
TmaSubscriptionBaseController
public TmaSubscriptionBaseController()
-
-
Method Details
-
createSubscriptionBase
@ResponseBody @RequestMapping(method=POST, consumes={"application/json","application/xml"}) @ResponseStatus(CREATED) public TmaSubscriptionBaseWsDto createSubscriptionBase(@RequestBody TmaSubscriptionBaseWsDto subscriptionBaseWsDto, @RequestParam(defaultValue="DEFAULT") String fields) Creates a new subscription base with the details received in the request.- Parameters:
subscriptionBaseWsDto- theTmaSubscriptionBaseWsDtoobject with the details based on which the subscription base will be created.fields- response configuration (list of fields, to be returned in response)- Returns:
TmaSubscriptionBaseWsDtothe newly created Subscription Base
-
deleteSubscriptionBase
@RequestMapping(value="/{billingSystemId}/{subscriberIdentity}", method=DELETE) @ResponseStatus(NO_CONTENT) public void deleteSubscriptionBase(@PathVariable("billingSystemId") String billingSystemId, @PathVariable("subscriberIdentity") String subscriberIdentity) Deletes the subscription base found with the given subscriber identity.- Parameters:
subscriberIdentity- unique identifier of the subscription base
-
getTmaSubscriptionBaseFacade
-
setTmaSubscriptionBaseFacade
-
getTmaSubscriptionBaseWsDtoValidator
protected de.hybris.platform.webservicescommons.validators.CompositeValidator getTmaSubscriptionBaseWsDtoValidator() -
setTmaSubscriptionBaseWsDtoValidator
public void setTmaSubscriptionBaseWsDtoValidator(de.hybris.platform.webservicescommons.validators.CompositeValidator tmaSubscriptionBaseWsDtoValidator) -
initBinder
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
-