public interface ShipmentService
| Modifier and Type | Method and Description |
|---|---|
long |
create(Shipment shipment)
Creates new shipment
|
void |
delete(Shipment shipment)
Deletes shipment
|
List<Shipment> |
getAllShipments()
Get all shipments
|
Shipment |
getById(long id)
Return shipment of given id
|
void |
update(Shipment shipment)
Updates shipment
|
long create(Shipment shipment) throws ServiceException
shipment - Shipment to be createdServiceException - when there are any unexpected problemsvoid delete(Shipment shipment) throws ServiceException
shipment - Shipment to be deletedServiceException - when there are any unexpected problemsvoid update(Shipment shipment) throws ServiceException
shipment - Shipment to be updatedServiceException - when there are any unexpected problemsShipment getById(long id)
id - Id of shipmentCopyright © 2017 Pivotal Software, Inc.. All rights reserved.