1 package se.citerus.dddsample.domain.model.handling;
2
3 import se.citerus.dddsample.domain.model.cargo.TrackingId;
4
5 /**
6 * Handling event repository.
7 */
8 public interface HandlingEventRepository {
9
10 /**
11 * Stores a (new) handling event.
12 *
13 * @param event handling event to save
14 */
15 void store(HandlingEvent event);
16
17
18 /**
19 * @param trackingId cargo tracking id
20 * @return The handling history of this cargo
21 */
22 HandlingHistory lookupHandlingHistoryOfCargo(TrackingId trackingId);
23
24 }