Class PrPartyRoleController
java.lang.Object
de.hybris.platform.partyroletmfwebservices.v2.controllers.PrBaseController
de.hybris.platform.partyroletmfwebservices.v2.controllers.PrPartyRoleController
- All Implemented Interfaces:
PartyRoleApi
Default implementation of controller for
PartyRoleApi.- Since:
- 2208
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<PartyRole>createPartyRole(@Valid PartyRole partyRole) org.springframework.http.ResponseEntity<Void>protected PrPaginationServiceprotected PrCreatePartyRoleValidatorprotected TuaPartyRoleServiceprotected org.springframework.transaction.support.TransactionTemplatelistPartyRole(@Valid String fields, @Valid Integer offset, @Valid Integer limit, @Valid String name, @Valid String status) org.springframework.http.ResponseEntity<PartyRole>patchPartyRole(String id, @Valid PartyRole partyRole) org.springframework.http.ResponseEntity<PartyRole>retrievePartyRole(String id, @Valid String fields) Methods inherited from class de.hybris.platform.partyroletmfwebservices.v2.controllers.PrBaseController
filter, getDataMapper, getI18nService, getMessageSource, getObjectMapper, getQueryStringWithoutOffsetAndLimit, getUnsuccessfulResponse, getUnsuccessfulResponse, handleInternalError, handleModelNotFoundException, init, sanitize, validate
-
Constructor Details
-
PrPartyRoleController
@Autowired public PrPartyRoleController(javax.servlet.http.HttpServletRequest request)
-
-
Method Details
-
retrievePartyRole
@RequestMapping(value="/partyRole/{id}", produces="application/json;charset=utf-8", method=GET) public org.springframework.http.ResponseEntity<PartyRole> retrievePartyRole(@PathVariable("id") String id, @Valid @RequestParam(value="fields",required=false) @Valid String fields) - Specified by:
retrievePartyRolein interfacePartyRoleApi
-
listPartyRole
@RequestMapping(value="/partyRole", produces="application/json;charset=utf-8", method=GET) @Secured("ROLE_TRUSTED_CLIENT") public org.springframework.http.ResponseEntity<List<PartyRole>> listPartyRole(@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="name",required=false) @Valid String name, @Valid @RequestParam(value="status",required=false) @Valid String status) - Specified by:
listPartyRolein interfacePartyRoleApi
-
createPartyRole
@RequestMapping(value="/partyRole", produces="application/json;charset=utf-8", consumes="application/json;charset=utf-8", method=POST) @Secured("ROLE_TRUSTED_CLIENT") public org.springframework.http.ResponseEntity<PartyRole> createPartyRole(@Valid @RequestBody @Valid PartyRole partyRole) - Specified by:
createPartyRolein interfacePartyRoleApi
-
patchPartyRole
@RequestMapping(value="/partyRole/{id}", produces="application/json;charset=utf-8", consumes="application/json;charset=utf-8", method=PATCH) @Secured("ROLE_TRUSTED_CLIENT") public org.springframework.http.ResponseEntity<PartyRole> patchPartyRole(@PathVariable("id") String id, @Valid @RequestBody @Valid PartyRole partyRole) - Specified by:
patchPartyRolein interfacePartyRoleApi
-
deletePartyRole
@RequestMapping(value="/partyRole/{id}", produces="application/json;charset=utf-8", method=DELETE) @Secured("ROLE_TRUSTED_CLIENT") public org.springframework.http.ResponseEntity<Void> deletePartyRole(@PathVariable("id") String id) - Specified by:
deletePartyRolein interfacePartyRoleApi
-
getTuaPartyRoleService
-
getPrCreatePartyRoleValidator
-
getTxTemplate
protected org.springframework.transaction.support.TransactionTemplate getTxTemplate() -
getPaginationService
-