Class BaBillingAccountController
java.lang.Object
de.hybris.platform.billingaccounttmfwebservices.v2.controllers.BaBaseController
de.hybris.platform.billingaccounttmfwebservices.v2.controllers.BaBillingAccountController
- All Implemented Interfaces:
BillingAccountApi
@Controller
public class BaBillingAccountController
extends BaBaseController
implements BillingAccountApi
Default implementation of controller for
BillingAccountApi.- Since:
- 2208
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<BillingAccount>createBillingAccount(@Valid BillingAccount billingAccount) org.springframework.http.ResponseEntity<Void>protected BaCreateBillingAccountValidatorprotected BaPaginationServiceprotected TuaGenericServiceprotected TuaBillingAccountServiceprotected org.springframework.transaction.support.TransactionTemplateprotected de.hybris.platform.servicelayer.user.UserServiceorg.springframework.http.ResponseEntity<List<BillingAccount>>listBillingAccount(@Valid String fields, @Valid Integer offset, @Valid Integer limit, @Valid String paymentStatus) org.springframework.http.ResponseEntity<BillingAccount>patchBillingAccount(String id, @Valid BillingAccount billingAccount) org.springframework.http.ResponseEntity<BillingAccount>retrieveBillingAccount(String id, @Valid String fields) Methods inherited from class de.hybris.platform.billingaccounttmfwebservices.v2.controllers.BaBaseController
filter, getDataMapper, getI18nService, getMessageSource, getObjectMapper, getQueryStringWithoutOffsetAndLimit, getUnsuccessfulResponse, getUnsuccessfulResponse, handleInternalError, handleModelNotFoundException, hasRole, init, sanitize, sanitizeQueryString, validate
-
Constructor Details
-
BaBillingAccountController
@Autowired public BaBillingAccountController(javax.servlet.http.HttpServletRequest request)
-
-
Method Details
-
createBillingAccount
@RequestMapping(value="/billingAccount", produces="application/json;charset=utf-8", consumes="application/json;charset=utf-8", method=POST) @Secured("ROLE_TRUSTED_CLIENT") public org.springframework.http.ResponseEntity<BillingAccount> createBillingAccount(@Valid @RequestBody @Valid BillingAccount billingAccount) - Specified by:
createBillingAccountin interfaceBillingAccountApi
-
deleteBillingAccount
@RequestMapping(value="/billingAccount/{id:.+}", produces="application/json;charset=utf-8", method=DELETE) @Secured("ROLE_TRUSTED_CLIENT") public org.springframework.http.ResponseEntity<Void> deleteBillingAccount(@PathVariable("id") String id) - Specified by:
deleteBillingAccountin interfaceBillingAccountApi
-
listBillingAccount
@RequestMapping(value="/billingAccount", produces="application/json", method=GET) public org.springframework.http.ResponseEntity<List<BillingAccount>> listBillingAccount(@Valid @RequestParam(value="fields",required=false) @Valid String fields, @Valid @RequestParam(value="offset",required=false) @Valid Integer offset, @Valid @RequestParam(value="limit",required=false) @Valid Integer limit, @Valid @RequestParam(value="paymentStatus",required=false) @Valid String paymentStatus) - Specified by:
listBillingAccountin interfaceBillingAccountApi
-
patchBillingAccount
@RequestMapping(value="/billingAccount/{id:.+}", produces="application/json;charset=utf-8", consumes="application/json;charset=utf-8", method=PATCH) @Secured("ROLE_TRUSTED_CLIENT") public org.springframework.http.ResponseEntity<BillingAccount> patchBillingAccount(@PathVariable("id") String id, @Valid @RequestBody @Valid BillingAccount billingAccount) - Specified by:
patchBillingAccountin interfaceBillingAccountApi
-
retrieveBillingAccount
@RequestMapping(value="/billingAccount/{id:.+}", produces="application/json", method=GET) public org.springframework.http.ResponseEntity<BillingAccount> retrieveBillingAccount(@PathVariable("id") String id, @Valid @RequestParam(value="fields",required=false) @Valid String fields) - Specified by:
retrieveBillingAccountin interfaceBillingAccountApi
-
getTuaBillingAccountService
-
getBaPaginationService
-
getGenericService
-
getUserService
protected de.hybris.platform.servicelayer.user.UserService getUserService() -
getBaCreateBillingAccountValidator
-
getTxTemplate
protected org.springframework.transaction.support.TransactionTemplate getTxTemplate()
-