Class AgrAgreementsSpecificationsController
java.lang.Object
de.hybris.platform.agreementtmfwebservices.controller.AgrBaseController
de.hybris.platform.agreementtmfwebservices.v2.controllers.AgrBaseController
de.hybris.platform.agreementtmfwebservices.v2.controllers.AgrAgreementsSpecificationsController
- All Implemented Interfaces:
AgreementSpecificationApi
@Controller
public class AgrAgreementsSpecificationsController
extends AgrBaseController
implements AgreementSpecificationApi
Default implementation of
AgreementSpecificationApi- Since:
- 2208
-
Constructor Summary
ConstructorsConstructorDescriptionAgrAgreementsSpecificationsController(javax.servlet.http.HttpServletRequest request) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<AgreementSpecification>createAgreementSpecification(@Valid AgreementSpecification agreementSpecification) org.springframework.http.ResponseEntity<Void>protected AgrAgreementSpecificationCreateValidatorprotected TuaAgreementSpecificationServiceprotected org.springframework.transaction.support.TransactionTemplateorg.springframework.http.ResponseEntity<List<AgreementSpecification>>listAgreementSpecification(@Valid String fields, @Valid Integer offset, @Valid Integer limit, @Valid String lifecycleStatus) org.springframework.http.ResponseEntity<AgreementSpecification>patchAgreementSpecification(String id, @Valid AgreementSpecification agreementSpecification) org.springframework.http.ResponseEntity<AgreementSpecification>retrieveAgreementSpecification(String id, @Valid String fields) Methods inherited from class de.hybris.platform.agreementtmfwebservices.controller.AgrBaseController
filter, getDataMapper, getI18nService, getMessageSource, getObjectMapper, getQueryStringWithoutOffsetAndLimit, getUnsuccessfulResponse, getUnsuccessfulResponse, handleInternalError, handleModelNotFoundException, hasRole, init, sanitize, validate
-
Constructor Details
-
AgrAgreementsSpecificationsController
@Autowired public AgrAgreementsSpecificationsController(javax.servlet.http.HttpServletRequest request)
-
-
Method Details
-
retrieveAgreementSpecification
@RequestMapping(value="/agreementSpecification/{id}", produces="application/json;charset=utf-8", method=GET) public org.springframework.http.ResponseEntity<AgreementSpecification> retrieveAgreementSpecification(@PathVariable("id") String id, @Valid @RequestParam(value="fields",required=false) @Valid String fields) - Specified by:
retrieveAgreementSpecificationin interfaceAgreementSpecificationApi
-
createAgreementSpecification
@RequestMapping(value="/agreementSpecification", produces="application/json;charset=utf-8", consumes="application/json;charset=utf-8", method=POST) @Secured("ROLE_TRUSTED_CLIENT") public org.springframework.http.ResponseEntity<AgreementSpecification> createAgreementSpecification(@Valid @RequestBody @Valid AgreementSpecification agreementSpecification) - Specified by:
createAgreementSpecificationin interfaceAgreementSpecificationApi
-
deleteAgreementSpecification
@RequestMapping(value="/agreementSpecification/{id}", produces="application/json;charset=utf-8", method=DELETE) @Secured("ROLE_TRUSTED_CLIENT") public org.springframework.http.ResponseEntity<Void> deleteAgreementSpecification(@PathVariable("id") String id) - Specified by:
deleteAgreementSpecificationin interfaceAgreementSpecificationApi
-
listAgreementSpecification
@RequestMapping(value="/agreementSpecification", produces="application/json;charset=utf-8", method=GET) public org.springframework.http.ResponseEntity<List<AgreementSpecification>> listAgreementSpecification(@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="lifecycleStatus",required=false) @Valid String lifecycleStatus) - Specified by:
listAgreementSpecificationin interfaceAgreementSpecificationApi
-
patchAgreementSpecification
@RequestMapping(value="/agreementSpecification/{id}", produces="application/json;charset=utf-8", consumes="application/json;charset=utf-8", method=PATCH) @Secured("ROLE_TRUSTED_CLIENT") public org.springframework.http.ResponseEntity<AgreementSpecification> patchAgreementSpecification(@PathVariable("id") String id, @Valid @RequestBody @Valid AgreementSpecification agreementSpecification) - Specified by:
patchAgreementSpecificationin interfaceAgreementSpecificationApi
-
getAgreementSpecificationService
-
getAgrAgreementSpecificationCreateValidator
-
getTxTemplate
protected org.springframework.transaction.support.TransactionTemplate getTxTemplate()
-