Class WarehousingAsnsController

java.lang.Object
de.hybris.platform.warehousingwebservices.controllers.WarehousingBaseController
de.hybris.platform.warehousingwebservices.controllers.asn.WarehousingAsnsController

@Controller @RequestMapping("/asns") public class WarehousingAsnsController extends WarehousingBaseController
WebResource exposing WarehousingAsnFacade http://host:port/warehousingwebservices/asns
  • Constructor Details

    • WarehousingAsnsController

      public WarehousingAsnsController()
  • Method Details

    • createAsn

      @Secured({"ROLE_WAREHOUSEAGENTGROUP","ROLE_WAREHOUSEMANAGERGROUP","ROLE_WAREHOUSEADMINISTRATORGROUP"}) @RequestMapping(method=POST, produces={"application/json","application/xml"}, consumes={"application/json","application/xml"}) @ResponseStatus(CREATED) @ResponseBody public AsnWsDTO createAsn(@RequestBody AsnWsDTO asnWsDTO, @RequestParam(required=false,defaultValue="DEFAULT") String fields) throws WebserviceValidationException
      Request to create a AdvancedShippingNoticeModel in the system
      Parameters:
      fields - defaulted to DEFAULT but can be FULL or BASIC
      asnWsDTO - object representing AsnWsDTO
      Returns:
      created AsnData
      Throws:
      WebserviceValidationException
    • confirmAsnReceipt

      @Secured({"ROLE_WAREHOUSEAGENTGROUP","ROLE_WAREHOUSEMANAGERGROUP","ROLE_WAREHOUSEADMINISTRATORGROUP"}) @RequestMapping(value="{internalId}/confirm-receipt", method=POST, consumes={"application/xml","application/json"}, produces={"application/json","application/xml"}) @ResponseStatus(OK) @ResponseBody public AsnWsDTO confirmAsnReceipt(@PathVariable @NotNull @NotNull String internalId, @RequestParam(required=false,defaultValue="DEFAULT") String fields)
      Request to confirm receipt of AsnWsDTO
      Parameters:
      internalId - AdvancedShippingNoticeModel.INTERNALID for the AdvancedShippingNoticeModel to be confirmed
    • cancelAsn

      @Secured({"ROLE_WAREHOUSEAGENTGROUP","ROLE_WAREHOUSEMANAGERGROUP","ROLE_WAREHOUSEADMINISTRATORGROUP"}) @RequestMapping(value="{internalId}/cancel", method=POST, consumes={"application/xml","application/json"}, produces={"application/json","application/xml"}) @ResponseStatus(ACCEPTED) @ResponseBody public AsnWsDTO cancelAsn(@PathVariable @NotNull @NotNull String internalId, @RequestParam(required=false,defaultValue="DEFAULT") String fields)
      Request to cancel an AsnWsDTO
      Parameters:
      internalId - AdvancedShippingNoticeModel.INTERNALID for the AdvancedShippingNoticeModel to be cancelled