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-
Field Summary
Fields inherited from class de.hybris.platform.warehousingwebservices.controllers.WarehousingBaseController
dataMapper, DEFAULT_CURRENT_PAGE, DEFAULT_FIELD_SET, DEFAULT_PAGE_SIZE, DEFAULT_SORT, WAREHOUSE_ADMINISTRATOR_GROUP, WAREHOUSE_AGENT_GROUP, WAREHOUSE_MANAGER_GROUP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRequest to cancel anAsnWsDTOconfirmAsnReceipt(@NotNull String internalId, String fields) Request to confirm receipt ofAsnWsDTORequest to create aAdvancedShippingNoticeModelin the systemMethods inherited from class de.hybris.platform.warehousingwebservices.controllers.WarehousingBaseController
createPageable, validate
-
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 aAdvancedShippingNoticeModelin the system- Parameters:
fields- defaulted to DEFAULT but can be FULL or BASICasnWsDTO- object representingAsnWsDTO- 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 ofAsnWsDTO- Parameters:
internalId-AdvancedShippingNoticeModel.INTERNALIDfor theAdvancedShippingNoticeModelto 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 anAsnWsDTO- Parameters:
internalId-AdvancedShippingNoticeModel.INTERNALIDfor theAdvancedShippingNoticeModelto be cancelled
-