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 WarehousingBaseControllerWebResource exposingWarehousingAsnFacadehttp://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 Constructor Description WarehousingAsnsController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsnWsDTOcancelAsn(@NotNull java.lang.String internalId, java.lang.String fields)Request to cancel anAsnWsDTOAsnWsDTOconfirmAsnReceipt(@NotNull java.lang.String internalId, java.lang.String fields)Request to confirm receipt ofAsnWsDTOAsnWsDTOcreateAsn(AsnWsDTO asnWsDTO, java.lang.String fields)Request to create aAdvancedShippingNoticeModelin the system-
Methods inherited from class de.hybris.platform.warehousingwebservices.controllers.WarehousingBaseController
createPageable, validate
-
-
-
-
Method Detail
-
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") java.lang.String fields) throws WebserviceValidationExceptionRequest 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 java.lang.String internalId, @RequestParam(required=false,defaultValue="DEFAULT") java.lang.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 java.lang.String internalId, @RequestParam(required=false,defaultValue="DEFAULT") java.lang.String fields)Request to cancel anAsnWsDTO- Parameters:
internalId-AdvancedShippingNoticeModel.INTERNALIDfor theAdvancedShippingNoticeModelto be cancelled
-
-