Class DefaultWarehousingPointOfServiceFacade
java.lang.Object
de.hybris.platform.ordermanagementfacades.OmsBaseFacade
de.hybris.platform.warehousingfacades.pointofservice.impl.DefaultWarehousingPointOfServiceFacade
- All Implemented Interfaces:
WarehousingPointOfServiceFacade
public class DefaultWarehousingPointOfServiceFacade
extends OmsBaseFacade
implements WarehousingPointOfServiceFacade
Default implementation of
WarehousingPointOfServiceFacade-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeleteWarehouseFromPointOfService(String posName, String warehouseCode) API to delete warehouses fromPointOfServiceModelprotected Converter<AddressData,AddressModel> getPointOfServiceByName(String posName) API to get a point of service by posNameprotected Converter<PointOfServiceModel,PointOfServiceData> protected GenericDao<PointOfServiceModel>protected PointOfServiceModelgetPointOfServiceModelByName(String posName) FindsPointOfServiceModelfor the givenPointOfServiceModel.NAMEprotected Converter<WarehouseModel,WarehouseData> protected PagedGenericDao<WarehouseModel>protected WarehouseServicegetWarehousesForPointOfService(PageableData pageableData, String posName) API to get allWarehouseModelin the system, for the givenPointOfServiceModel.NAMEvoidsetAddressReverseConverter(Converter<AddressData, AddressModel> addressReverseConverter) voidsetPointOfServiceConverter(Converter<PointOfServiceModel, PointOfServiceData> pointOfServiceConverter) voidsetPointOfServiceGenericDao(GenericDao<PointOfServiceModel> pointOfServiceGenericDao) voidsetWarehouseConverter(Converter<WarehouseModel, WarehouseData> warehouseConverter) voidsetWarehousesByPointOfServicePagedDao(PagedGenericDao<WarehouseModel> warehousesByPointOfServicePagedDao) voidsetWarehouseService(WarehouseService warehouseService) updatePointOfServiceWithAddress(String posName, AddressData addressData) API to update aPointOfServiceModelupdatePointOfServiceWithWarehouses(String posName, WarehouseCodesDataList warehouseCodes) API to update aPointOfServiceModelwith a list of warehousesMethods inherited from class de.hybris.platform.ordermanagementfacades.OmsBaseFacade
convertSearchPageData, createPaginationData, discardOrderSnapshot, getModelService, getOrderGenericDao, getOrderModelForCode, setModelService, setOrderGenericDao
-
Constructor Details
-
DefaultWarehousingPointOfServiceFacade
public DefaultWarehousingPointOfServiceFacade()
-
-
Method Details
-
getPointOfServiceByName
Description copied from interface:WarehousingPointOfServiceFacadeAPI to get a point of service by posName- Specified by:
getPointOfServiceByNamein interfaceWarehousingPointOfServiceFacade- Parameters:
posName- the point of service's posName- Returns:
- the point of service
-
getWarehousesForPointOfService
public SearchPageData<WarehouseData> getWarehousesForPointOfService(PageableData pageableData, String posName) Description copied from interface:WarehousingPointOfServiceFacadeAPI to get allWarehouseModelin the system, for the givenPointOfServiceModel.NAME- Specified by:
getWarehousesForPointOfServicein interfaceWarehousingPointOfServiceFacade- Parameters:
pageableData- pageable object that contains info on the number or pages and how many items in each page in addition the sorting infoposName- the posName of the PointOfService for which warehouses are being retrieved- Returns:
- the list of warehouses for the given PointOfService
-
updatePointOfServiceWithWarehouses
public PointOfServiceData updatePointOfServiceWithWarehouses(String posName, WarehouseCodesDataList warehouseCodes) Description copied from interface:WarehousingPointOfServiceFacadeAPI to update aPointOfServiceModelwith a list of warehouses- Specified by:
updatePointOfServiceWithWarehousesin interfaceWarehousingPointOfServiceFacade- Parameters:
posName- the posName of the PointOfService for which warehouses will be deletedwarehouseCodes- the object containing the list of warehouse codes to add to the point of service- Returns:
- the updated
PointOfServiceDatawithout the specified warehouses
-
deleteWarehouseFromPointOfService
Description copied from interface:WarehousingPointOfServiceFacadeAPI to delete warehouses fromPointOfServiceModel- Specified by:
deleteWarehouseFromPointOfServicein interfaceWarehousingPointOfServiceFacade- Parameters:
posName- the posName of the PointOfService for which warehouses will be deletedwarehouseCode- the warehouse which has to be removed from the point of service.- Returns:
- the updated
PointOfServiceDatawithout the specified warehouses
-
updatePointOfServiceWithAddress
Description copied from interface:WarehousingPointOfServiceFacadeAPI to update aPointOfServiceModel- Specified by:
updatePointOfServiceWithAddressin interfaceWarehousingPointOfServiceFacade- Parameters:
posName- the posName of POS that we want to updateaddressData- the address which we want to update the pos with- Returns:
- the
PointOfServiceDataupdated with the passed address and converted from the newly updatedPointOfServiceModel
-
getPointOfServiceModelByName
FindsPointOfServiceModelfor the givenPointOfServiceModel.NAME- Parameters:
posName- the pointOfServiceModel's posName- Returns:
- the requested pointOfService for the given code
-
getWarehouseConverter
-
setWarehouseConverter
-
getPointOfServiceConverter
-
setPointOfServiceConverter
public void setPointOfServiceConverter(Converter<PointOfServiceModel, PointOfServiceData> pointOfServiceConverter) -
getPointOfServiceGenericDao
-
setPointOfServiceGenericDao
-
getWarehousesByPointOfServicePagedDao
-
setWarehousesByPointOfServicePagedDao
public void setWarehousesByPointOfServicePagedDao(PagedGenericDao<WarehouseModel> warehousesByPointOfServicePagedDao) -
getWarehouseService
-
setWarehouseService
-
getAddressReverseConverter
-
setAddressReverseConverter
-