Class PmOrganizationController
java.lang.Object
de.hybris.platform.partytmfwebservices.v2.controllers.PmBaseController
de.hybris.platform.partytmfwebservices.v2.controllers.PmOrganizationController
- All Implemented Interfaces:
OrganizationApi
@Controller
public class PmOrganizationController
extends PmBaseController
implements OrganizationApi
Controller handling
Organization related actions.- Since:
- 2208
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Organization>createOrganization(@Valid Organization organization) org.springframework.http.ResponseEntity<Void>protected PmCreateOrganizationValidatorprotected TuaOrganizationServiceprotected PmPaginationServiceprotected org.springframework.transaction.support.TransactionTemplateorg.springframework.http.ResponseEntity<List<Organization>>listOrganization(@Valid String fields, @Valid Integer offset, @Valid Integer limit, @Valid String tradingName) org.springframework.http.ResponseEntity<Organization>retrieveOrganization(String id, @Valid String fields) Methods inherited from class de.hybris.platform.partytmfwebservices.v2.controllers.PmBaseController
filter, getDataMapper, getI18nService, getMessageSource, getObjectMapper, getQueryStringWithoutOffsetAndLimit, getUnsuccessfulResponse, getUnsuccessfulResponse, handleInternalError, handleModelNotFoundException, init, sanitize, validate
-
Constructor Details
-
PmOrganizationController
@Autowired public PmOrganizationController(javax.servlet.http.HttpServletRequest request)
-
-
Method Details
-
retrieveOrganization
@RequestMapping(value="/organization/{id}", produces="application/json;charset=utf-8", method=GET) public org.springframework.http.ResponseEntity<Organization> retrieveOrganization(@PathVariable("id") String id, @Valid @RequestParam(value="fields",required=false) @Valid String fields) - Specified by:
retrieveOrganizationin interfaceOrganizationApi
-
listOrganization
@RequestMapping(value="/organization", produces="application/json;charset=utf-8", method=GET) @Secured("ROLE_TRUSTED_CLIENT") public org.springframework.http.ResponseEntity<List<Organization>> listOrganization(@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="tradingName",required=false) @Valid String tradingName) - Specified by:
listOrganizationin interfaceOrganizationApi
-
createOrganization
@RequestMapping(value="/organization", produces="application/json;charset=utf-8", consumes="application/json;charset=utf-8", method=POST) @Secured("ROLE_TRUSTED_CLIENT") public org.springframework.http.ResponseEntity<Organization> createOrganization(@Valid @RequestBody @Valid Organization organization) - Specified by:
createOrganizationin interfaceOrganizationApi
-
deleteOrganization
@Secured("ROLE_TRUSTED_CLIENT") @RequestMapping(value="/organization/{id}", produces="application/json;charset=utf-8", method=DELETE) public org.springframework.http.ResponseEntity<Void> deleteOrganization(@PathVariable("id") String id) - Specified by:
deleteOrganizationin interfaceOrganizationApi
-
getPmPaginationService
-
getOrganizationService
-
getTxTemplate
protected org.springframework.transaction.support.TransactionTemplate getTxTemplate() -
getCreateOrganizationValidator
-