BrightSide Workbench Full Report + Source Code
org.turro.dossier.www.PendingRevisionDashboard Class Reference
Inheritance diagram for org.turro.dossier.www.PendingRevisionDashboard:
Collaboration diagram for org.turro.dossier.www.PendingRevisionDashboard:

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
 
boolean allowInterest
 
PendingRevisionQuery prq
 
- 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 53 of file PendingRevisionDashboard.java.

Member Function Documentation

◆ getEnd()

String org.turro.dossier.www.PendingRevisionDashboard.getEnd ( )

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

Definition at line 118 of file PendingRevisionDashboard.java.

118  {
119  return "</div>";
120  }
Here is the caller graph for this function:

◆ getStart()

String org.turro.dossier.www.PendingRevisionDashboard.getStart ( )

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

Definition at line 113 of file PendingRevisionDashboard.java.

113  {
114  return "<div class='" + sclass + "dossier-web'>";
115  }
Here is the caller graph for this function:

◆ loadData()

void org.turro.dossier.www.PendingRevisionDashboard.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 60 of file PendingRevisionDashboard.java.

60  {
61  sclass = getAttributes().getAttributeValue("attrib:sclass", "");
62  allowInterest = getAttributes().getAttributeBooleanValue("attrib:allowInterest", true);
63  allowComments = getAttributes().getAttributeBooleanValue("attrib:allowComments", true);
64  allowVotes = getAttributes().getAttributeBooleanValue("attrib:allowVotes", true);
65  showDescriptions = getAttributes().getAttributeBooleanValue("attrib:showDescriptions", true);
66  fullTemplate = getAttributes().getAttributeValue("attrib:fullTemplate", "");
67  summaryTemplate = getAttributes().getAttributeValue("attrib:summaryTemplate", "");
68  issuePath = getAttributes().getAttributeValue("attrib:issuePath", "");
69 
70  prq = new PendingRevisionQuery();
71 
72  long archive = AttributeItem.getFromParameter(getConstructor(), "archive", "").getLongValue(0L);
73 
74  if(archive > 0) {
75  prq.archive(archive);
76  }
77  }
Here is the call graph for this function:

◆ startConstruction()

void org.turro.dossier.www.PendingRevisionDashboard.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 80 of file PendingRevisionDashboard.java.

80  {
81  PrintWriter out = getConstructor().getOut();
82  out.print(getStart());
83  out.print(getStartBody());
84 
85  List<IssueParticipant> list = prq.getResultList();
86 
87  ElephantMarker marker = new ElephantMarker(getConstructor());
88  if(list.isEmpty()) {
89  marker.put("divider", false);
90  marker.put("header", true);
91  marker.put("footer", true);
92  marker.put("empty", true);
93  marker.process("issue", getSummaryTemplate());
94  } else {
95  int index = 0;
96  marker.put("empty", false);
97  for(IssueParticipant ip : list) {
98  marker.put("divider", index > 0);
99  marker.put("header", index == 0);
100  marker.put("footer", index == list.size() - 1);
101  prepareValues(marker, ip, 0);
102  marker.put("ip", ip);
103  marker.process("issue", getSummaryTemplate());
104  index++;
105  }
106  }
107 
108  out.print(getEndBody());
109  out.print(getEnd());
110  }
Here is the call graph for this function:

Member Data Documentation

◆ allowInterest

boolean org.turro.dossier.www.PendingRevisionDashboard.allowInterest
protected

Definition at line 56 of file PendingRevisionDashboard.java.

◆ prq

PendingRevisionQuery org.turro.dossier.www.PendingRevisionDashboard.prq
protected

Definition at line 57 of file PendingRevisionDashboard.java.

◆ sclass

String org.turro.dossier.www.PendingRevisionDashboard.sclass
protected

Definition at line 55 of file PendingRevisionDashboard.java.


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