Class AgrAgreementsController

java.lang.Object
de.hybris.platform.agreementtmfwebservices.controller.AgrBaseController
de.hybris.platform.agreementtmfwebservices.v3.controllers.AgrAgreementsController
All Implemented Interfaces:
AgreementApi

@Controller public class AgrAgreementsController extends AgrBaseController implements AgreementApi
Default implementation of AgreementApi
Since:
2302
  • Constructor Details

    • AgrAgreementsController

      @Autowired public AgrAgreementsController(javax.servlet.http.HttpServletRequest request)
  • Method Details

    • retrieveAgreement

      @GetMapping(value="/agreement/{id}", produces="application/json;charset=utf-8") public org.springframework.http.ResponseEntity<Agreement> retrieveAgreement(@PathVariable("id") String id, @Valid @RequestParam(value="fields",required=false) @Valid String fields)
      Specified by:
      retrieveAgreement in interface AgreementApi
    • createAgreement

      @PostMapping(value="/agreement", produces="application/json;charset=utf-8", consumes="application/json;charset=utf-8") @Secured("ROLE_TRUSTED_CLIENT") public org.springframework.http.ResponseEntity<Agreement> createAgreement(@Valid @RequestBody @Valid Agreement agreement)
      Specified by:
      createAgreement in interface AgreementApi
    • deleteAgreement

      @DeleteMapping(value="/agreement/{id}", produces="application/json;charset=utf-8") @Secured("ROLE_TRUSTED_CLIENT") public org.springframework.http.ResponseEntity<Void> deleteAgreement(@PathVariable("id") String id)
      Specified by:
      deleteAgreement in interface AgreementApi
    • listAgreement

      @GetMapping(value="/agreement", produces="application/json;charset=utf-8") 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:
      listAgreement in interface AgreementApi
    • patchAgreement

      @PatchMapping(value="/agreement/{id}", produces="application/json;charset=utf-8", consumes="application/json;charset=utf-8") @Secured("ROLE_TRUSTED_CLIENT") public org.springframework.http.ResponseEntity<Agreement> patchAgreement(@PathVariable("id") String id, @Valid @RequestBody @Valid Agreement agreement)
      Specified by:
      patchAgreement in interface AgreementApi
    • getAgreementService

      protected TuaAgreementsService getAgreementService()
    • getAgreementGenericService

      protected TuaGenericService getAgreementGenericService()
    • getAgrAgreementCreateValidator

      protected AgrAgreementCreateValidator getAgrAgreementCreateValidator()
    • getTxTemplate

      protected org.springframework.transaction.support.TransactionTemplate getTxTemplate()