| 6627 |
kshitij.so |
1 |
package in.shop2020.serving.controllers;
|
|
|
2 |
|
|
|
3 |
import java.util.List;
|
|
|
4 |
|
|
|
5 |
import org.apache.log4j.Logger;
|
|
|
6 |
|
|
|
7 |
import in.shop2020.serving.controllers.BaseController;
|
|
|
8 |
import in.shop2020.serving.model.ShipmentUpdate;
|
|
|
9 |
import in.shop2020.serving.services.FirstFlightTrackingService;
|
|
|
10 |
|
|
|
11 |
|
|
|
12 |
public class FirstflightUpdatesController extends BaseController{
|
|
|
13 |
|
|
|
14 |
private static final long serialVersionUID = 1L;
|
|
|
15 |
private static Logger log = Logger.getLogger(Class.class);
|
|
|
16 |
private String id;
|
|
|
17 |
private List<ShipmentUpdate> updates;
|
|
|
18 |
|
|
|
19 |
public FirstflightUpdatesController(){
|
|
|
20 |
super();
|
|
|
21 |
}
|
|
|
22 |
|
|
|
23 |
public String show() {
|
|
|
24 |
log.info("FirstflightUpdatesController.show " + id);
|
|
|
25 |
FirstFlightTrackingService trackingService = new FirstFlightTrackingService();
|
|
|
26 |
updates = trackingService.getUpdates(id);
|
|
|
27 |
return "show";
|
|
|
28 |
}
|
|
|
29 |
|
|
|
30 |
public String getId(){
|
|
|
31 |
return id;
|
|
|
32 |
}
|
|
|
33 |
|
|
|
34 |
public void setId(String id){
|
|
|
35 |
this.id = id;
|
|
|
36 |
}
|
|
|
37 |
|
|
|
38 |
public List<ShipmentUpdate> getUpdates(){
|
|
|
39 |
return updates;
|
|
|
40 |
}
|
|
|
41 |
}
|