Class AgrAgreementsController
java.lang.Object
de.hybris.platform.agreementtmfwebservices.v2.controllers.AgrBaseController
de.hybris.platform.agreementtmfwebservices.v2.controllers.AgrAgreementsController
- All Implemented Interfaces:
AgreementApi
Default implementation of
AgreementApi- Since:
- 2208
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Agreement>createAgreement(@Valid Agreement agreement) org.springframework.http.ResponseEntity<Void>protected AgrAgreementCreateValidatorprotected TuaGenericServiceprotected TuaAgreementsServiceprotected de.hybris.platform.servicelayer.model.ModelServiceprotected org.springframework.transaction.support.TransactionTemplatelistAgreement(@Valid String fields, @Valid Integer offset, @Valid Integer limit, @Valid String status) org.springframework.http.ResponseEntity<Agreement>patchAgreement(String id, @Valid Agreement agreement) org.springframework.http.ResponseEntity<Agreement>retrieveAgreement(String id, @Valid String fields) Methods inherited from class de.hybris.platform.agreementtmfwebservices.v2.controllers.AgrBaseController
filter, getDataMapper, getI18nService, getMessageSource, getObjectMapper, getQueryStringWithoutOffsetAndLimit, getUnsuccessfulResponse, getUnsuccessfulResponse, handleInternalError, handleModelNotFoundException, hasRole, init, sanitize, validate
-
Constructor Details
-
AgrAgreementsController
@Autowired public AgrAgreementsController(javax.servlet.http.HttpServletRequest request)
-
-
Method Details
-
retrieveAgreement
@RequestMapping(value="/agreement/{id}", produces="application/json;charset=utf-8", method=GET) public org.springframework.http.ResponseEntity<Agreement> retrieveAgreement(@PathVariable("id") String id, @Valid @RequestParam(value="fields",required=false) @Valid String fields) - Specified by:
retrieveAgreementin interfaceAgreementApi
-
createAgreement
@RequestMapping(value="/agreement", produces="application/json;charset=utf-8", consumes="application/json;charset=utf-8", method=POST) @Secured("ROLE_TRUSTED_CLIENT") public org.springframework.http.ResponseEntity<Agreement> createAgreement(@Valid @RequestBody @Valid Agreement agreement) - Specified by:
createAgreementin interfaceAgreementApi
-
deleteAgreement
@RequestMapping(value="/agreement/{id}", produces="application/json;charset=utf-8", method=DELETE) @Secured("ROLE_TRUSTED_CLIENT") public org.springframework.http.ResponseEntity<Void> deleteAgreement(@PathVariable("id") String id) - Specified by:
deleteAgreementin interfaceAgreementApi
-
listAgreement
@RequestMapping(value="/agreement", produces="application/json;charset=utf-8", method=GET) public org.springframework.http.ResponseEntity<List<Agreement>> listAgreement(@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="status",required=false) @Valid String status) - Specified by:
listAgreementin interfaceAgreementApi
-
patchAgreement
@RequestMapping(value="/agreement/{id}", produces="application/json;charset=utf-8", consumes="application/json;charset=utf-8", method=PATCH) @Secured("ROLE_TRUSTED_CLIENT") public org.springframework.http.ResponseEntity<Agreement> patchAgreement(@PathVariable("id") String id, @Valid @RequestBody @Valid Agreement agreement) - Specified by:
patchAgreementin interfaceAgreementApi
-
getAgreementService
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService() -
getAgreementGenericService
-
getAgrAgreementCreateValidator
-
getTxTemplate
protected org.springframework.transaction.support.TransactionTemplate getTxTemplate()
-