BrightSide Workbench Full Report + Source Code
org.turro.plugin.command.TimelineReport Class Reference
Inheritance diagram for org.turro.plugin.command.TimelineReport:
Collaboration diagram for org.turro.plugin.command.TimelineReport:

Public Member Functions

void afterCompose ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 39 of file TimelineReport.java.

Member Function Documentation

◆ afterCompose()

void org.turro.plugin.command.TimelineReport.afterCompose ( )

Definition at line 42 of file TimelineReport.java.

42  {
43  IContact contact = Authentication.getIContact();
44  String xml = TimelinePlugin.getTimelineFor(contact),
45  fname = "/_internal/tmp/tl-" + contact.getId() + "-" + contact.getId() + ".xml";
46  File fxml = new File(ElephantContext.getRealPath(fname));
47  FileUtil.checkDirs(fxml);
48  Date now = new Date();
49  try {
50  FileUtil.setContent(fxml, xml, null);
51  Bandinfo bm1 = new Bandinfo();
52  bm1.setId(IdGenerator.generate());
53  bm1.setWidth("80%");
54  bm1.setIntervalUnit("month");
55  bm1.setDate(now);
56  bm1.setIntervalPixels(100);
57  bm1.setEventSourceUrl(fname);
58  appendChild(bm1);
59  Bandinfo bm2 = new Bandinfo();
60  bm2.setWidth("20%");
61  bm2.setIntervalUnit("year");
62  bm2.setDate(now);
63  bm2.setIntervalPixels(200);
64  bm2.setEventSourceUrl(fname);
65  bm2.setOverview(true);
66  appendChild(bm2);
67  bm2.setSyncWith(bm1.getId());
68  if(bm1 instanceof AfterCompose) {
69  ((AfterCompose) bm1).afterCompose();
70  }
71  if(bm2 instanceof AfterCompose) {
72  ((AfterCompose) bm2).afterCompose();
73  }
74  } catch (IOException ex) {
75  Logger.getLogger(TimelineReport.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
76  }
77  }
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: