BrightSide Workbench Full Report + Source Code
org.turro.financials.cart.www.LogisticDashboard Class Reference
Inheritance diagram for org.turro.financials.cart.www.LogisticDashboard:
Collaboration diagram for org.turro.financials.cart.www.LogisticDashboard:

Public Member Functions

void loadData () throws ServletException, IOException
 
void startConstruction () throws ServletException, IOException
 
String getStart ()
 
String getEnd ()
 
- Public Member Functions inherited from org.turro.elephant.impl.abstracts.AbstractElement
 AbstractElement ()
 
String getId ()
 
String getType ()
 
String getTitle ()
 
void setTitle (String title)
 
Collection< String > getMetas ()
 
void setMetas (Collection< String > metas)
 
ElContext getContext ()
 
IConstructor getConstructor ()
 
void setConfiguration (IConstructor constructor, ElContext context)
 
String getStartTitle ()
 
String getEndTitle ()
 
String getStartBody ()
 
String getEndBody ()
 
String getStartFooter ()
 
String getEndFooter ()
 
String getStartOption ()
 
String getEndOption ()
 
boolean canDisplay ()
 
boolean isSelectable ()
 
boolean isInRole ()
 
boolean canPrint ()
 
String getElementFolder ()
 
boolean isOriginalContext ()
 
void setRootCategories (ElContext root)
 
String getTypeName ()
 
AttributeSupport getAttributes ()
 
void applyChanges ()
 
void populateFromParent ()
 
void setDefaultMetas ()
 
void setConfiguration (Element conf, Element factory)
 

Protected Attributes

String sclass
 
Long item
 
IContact contact
 
FollowUp followUp
 
- Protected Attributes inherited from org.turro.elephant.impl.abstracts.AbstractElement
IConstructor constructor
 
ElContext context
 
AttributeSupport attrSupport
 
Element conf = null
 
String[] types
 
String title
 
Collection< String > metas
 

Detailed Description

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

Definition at line 48 of file LogisticDashboard.java.

Member Function Documentation

◆ getEnd()

String org.turro.financials.cart.www.LogisticDashboard.getEnd ( )

Reimplemented from org.turro.elephant.impl.abstracts.AbstractElement.

Definition at line 119 of file LogisticDashboard.java.

119  {
120  return "</div>";
121  }

◆ getStart()

String org.turro.financials.cart.www.LogisticDashboard.getStart ( )

Reimplemented from org.turro.elephant.impl.abstracts.AbstractElement.

Definition at line 114 of file LogisticDashboard.java.

114  {
115  return "<div class='" + sclass + "dossier-web'>";
116  }

◆ loadData()

void org.turro.financials.cart.www.LogisticDashboard.loadData ( ) throws ServletException, IOException

This method loads element's data. It gets called within IConstructor.startConstruction() and before element's startConstruction() method.

Exceptions
javax.servlet.ServletException
java.io.IOException

Implements org.turro.elephant.context.IElement.

Definition at line 56 of file LogisticDashboard.java.

56  {
57  sclass = getAttributes().getAttributeValue("attrib:sclass", "");
58  fullTemplate = getAttributes().getAttributeValue("attrib:fullTemplate", "");
59  summaryTemplate = getAttributes().getAttributeValue("attrib:summaryTemplate", "");
60 
61  processActions();
62 
63  item = (Long) ObjectString.parseString(getConstructor().getParameter("item"), Long.class, true);
64 
65  if(item > 0) {
66  followUp = new FinancialsPU().find(FollowUp.class, item);
67  }
68 
69  if(followUp != null) {
71  } else {
72  item = 0L;
73  }
74 
75  contact = Authentication.getIContact();
76  }
Here is the call graph for this function:

◆ startConstruction()

void org.turro.financials.cart.www.LogisticDashboard.startConstruction ( ) throws ServletException, IOException

This method start element's construction. It gets called within IConstructor.startConstruction().

Exceptions
javax.servlet.ServletException
java.io.IOException

Implements org.turro.elephant.context.IElement.

Definition at line 79 of file LogisticDashboard.java.

79  {
80  PrintWriter out = getConstructor().getOut();
81 
82  ElephantMarker marker = new ElephantMarker(getConstructor());
83  if(item > 0) {
84  prepareValues(marker, followUp, 0);
85  marker.process("followup", getFullTemplate());
86  } else {
87  int index = 0;
88  List<FollowUp> lfu = FollowUps.notPrepared(contact);
89  for(FollowUp fu : lfu) {
90  marker.put("divider", index > 0);
91  marker.put("header", index == 0);
92  marker.put("title", I_.get("Not prepared"));
93  marker.put("footer", index == lfu.size() - 1);
94  prepareValues(marker, fu, 0);
95  marker.process("followup", getSummaryTemplate());
96  index++;
97  }
98  index = 0;
99  lfu = FollowUps.notDelivered(contact);
100  for(FollowUp fu : lfu) {
101  marker.put("divider", index > 0);
102  marker.put("header", index == 0);
103  marker.put("title", I_.get("Not delivered"));
104  marker.put("footer", index == lfu.size() - 1);
105  prepareValues(marker, fu, 0);
106  marker.process("followup", getSummaryTemplate());
107  index++;
108  }
109  }
110 
111  }
Here is the call graph for this function:

Member Data Documentation

◆ contact

IContact org.turro.financials.cart.www.LogisticDashboard.contact
protected

Definition at line 52 of file LogisticDashboard.java.

◆ followUp

FollowUp org.turro.financials.cart.www.LogisticDashboard.followUp
protected

Definition at line 53 of file LogisticDashboard.java.

◆ item

Long org.turro.financials.cart.www.LogisticDashboard.item
protected

Definition at line 51 of file LogisticDashboard.java.

◆ sclass

String org.turro.financials.cart.www.LogisticDashboard.sclass
protected

Definition at line 50 of file LogisticDashboard.java.


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