BrightSide Workbench Full Report + Source Code
org.turro.dashboard.AbstractDaoDashboard Class Referenceabstract
Inheritance diagram for org.turro.dashboard.AbstractDaoDashboard:
Collaboration diagram for org.turro.dashboard.AbstractDaoDashboard:

Public Member Functions

void loadData () throws ServletException, IOException
 
DaoHtmlIterator getIterator ()
 
String getFullTemplate ()
 
String getSummaryTemplate ()
 
int getCount ()
 
boolean isAllowInterest ()
 
boolean isAllowComments ()
 
boolean isAllowVotes ()
 
boolean isAllowDescriptions ()
 
boolean isAllowAttachments ()
 
boolean isAllowFiles ()
 
boolean isAllowPolls ()
 
boolean isRestricted ()
 
boolean isAllowRanking ()
 
boolean isAllowMatching ()
 
boolean isAllowSorting ()
 
boolean isDoMatching ()
 
String getSclass ()
 
String getStart ()
 
String getEnd ()
 
void startConstruction () throws ServletException, IOException
 
- 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 Member Functions

abstract DaoHtmlIterator initIterator ()
 
abstract void initSearchEngine ()
 
DaoHtmlSearch getSearchEngine ()
 

Additional Inherited Members

- 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 33 of file AbstractDaoDashboard.java.

Member Function Documentation

◆ getCount()

int org.turro.dashboard.AbstractDaoDashboard.getCount ( )

Definition at line 102 of file AbstractDaoDashboard.java.

102  {
103  return count;
104  }

◆ getEnd()

String org.turro.dashboard.AbstractDaoDashboard.getEnd ( )

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

Definition at line 164 of file AbstractDaoDashboard.java.

164  {
165  return "</div>";
166  }
Here is the caller graph for this function:

◆ getFullTemplate()

String org.turro.dashboard.AbstractDaoDashboard.getFullTemplate ( )

Definition at line 94 of file AbstractDaoDashboard.java.

94  {
95  return fullTemplate;
96  }

◆ getIterator()

DaoHtmlIterator org.turro.dashboard.AbstractDaoDashboard.getIterator ( )

Definition at line 90 of file AbstractDaoDashboard.java.

90  {
91  return iterator;
92  }
Here is the caller graph for this function:

◆ getSclass()

String org.turro.dashboard.AbstractDaoDashboard.getSclass ( )

Definition at line 154 of file AbstractDaoDashboard.java.

154  {
155  return sclass;
156  }
Here is the caller graph for this function:

◆ getSearchEngine()

DaoHtmlSearch org.turro.dashboard.AbstractDaoDashboard.getSearchEngine ( )
protected

Definition at line 189 of file AbstractDaoDashboard.java.

189  {
190  return DaoHtmlSearch.getInstance(getConstructor(), ElephantContext.getContextVariable(getConstructor()));
191  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getStart()

String org.turro.dashboard.AbstractDaoDashboard.getStart ( )

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

Definition at line 159 of file AbstractDaoDashboard.java.

159  {
160  return "<div class='dashboard " + getSclass() + "'>";
161  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSummaryTemplate()

String org.turro.dashboard.AbstractDaoDashboard.getSummaryTemplate ( )

Definition at line 98 of file AbstractDaoDashboard.java.

98  {
99  return summaryTemplate;
100  }

◆ initIterator()

◆ initSearchEngine()

◆ isAllowAttachments()

boolean org.turro.dashboard.AbstractDaoDashboard.isAllowAttachments ( )

Definition at line 122 of file AbstractDaoDashboard.java.

122  {
123  return allowAttachments;
124  }
Here is the caller graph for this function:

◆ isAllowComments()

boolean org.turro.dashboard.AbstractDaoDashboard.isAllowComments ( )

Definition at line 110 of file AbstractDaoDashboard.java.

110  {
111  return allowComments;
112  }
Here is the caller graph for this function:

◆ isAllowDescriptions()

boolean org.turro.dashboard.AbstractDaoDashboard.isAllowDescriptions ( )

Definition at line 118 of file AbstractDaoDashboard.java.

118  {
119  return allowDescriptions;
120  }
Here is the caller graph for this function:

◆ isAllowFiles()

boolean org.turro.dashboard.AbstractDaoDashboard.isAllowFiles ( )

Definition at line 126 of file AbstractDaoDashboard.java.

126  {
127  return allowFiles;
128  }

◆ isAllowInterest()

boolean org.turro.dashboard.AbstractDaoDashboard.isAllowInterest ( )

Definition at line 106 of file AbstractDaoDashboard.java.

106  {
107  return allowInterest;
108  }
Here is the caller graph for this function:

◆ isAllowMatching()

boolean org.turro.dashboard.AbstractDaoDashboard.isAllowMatching ( )

Definition at line 142 of file AbstractDaoDashboard.java.

142  {
143  return allowMatching;
144  }

◆ isAllowPolls()

boolean org.turro.dashboard.AbstractDaoDashboard.isAllowPolls ( )

Definition at line 130 of file AbstractDaoDashboard.java.

130  {
131  return allowPolls;
132  }

◆ isAllowRanking()

boolean org.turro.dashboard.AbstractDaoDashboard.isAllowRanking ( )

Definition at line 138 of file AbstractDaoDashboard.java.

138  {
139  return allowRanking;
140  }

◆ isAllowSorting()

boolean org.turro.dashboard.AbstractDaoDashboard.isAllowSorting ( )

Definition at line 146 of file AbstractDaoDashboard.java.

146  {
147  return allowSorting;
148  }

◆ isAllowVotes()

boolean org.turro.dashboard.AbstractDaoDashboard.isAllowVotes ( )

Definition at line 114 of file AbstractDaoDashboard.java.

114  {
115  return allowVotes;
116  }
Here is the caller graph for this function:

◆ isDoMatching()

boolean org.turro.dashboard.AbstractDaoDashboard.isDoMatching ( )

Definition at line 150 of file AbstractDaoDashboard.java.

150  {
151  return doMatching;
152  }
Here is the caller graph for this function:

◆ isRestricted()

boolean org.turro.dashboard.AbstractDaoDashboard.isRestricted ( )

Definition at line 134 of file AbstractDaoDashboard.java.

134  {
135  return restricted;
136  }
Here is the caller graph for this function:

◆ loadData()

void org.turro.dashboard.AbstractDaoDashboard.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

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

Definition at line 43 of file AbstractDaoDashboard.java.

43  {
44  sclass = getAttributes().getAttributeValue("attrib:sclass", "");
45  count = getAttributes().getAttributeIntegerValue("attrib:count", 10);
46  restricted = getAttributes().getAttributeBooleanValue("attrib:restricted", false);
47  fullTemplate = getAttributes().getAttributeValue("attrib:fullTemplate", "");
48  summaryTemplate = getAttributes().getAttributeValue("attrib:summaryTemplate", "");
49  allowInterest = getAttributes().getAttributeBooleanValue("attrib:allowInterest", true);
50  allowComments = getAttributes().getAttributeBooleanValue("attrib:allowComments", true);
51  allowVotes = getAttributes().getAttributeBooleanValue("attrib:allowVotes", true);
52  allowAttachments = getAttributes().getAttributeBooleanValue("attrib:allowAttachments", true);
53  allowDescriptions = getAttributes().getAttributeBooleanValue("attrib:allowDescriptions", true);
54  allowFiles = getAttributes().getAttributeBooleanValue("attrib:allowFiles", true);
55  allowPolls = getAttributes().getAttributeBooleanValue("attrib:allowPolls", true);
56  allowRanking = getAttributes().getAttributeBooleanValue("attrib:allowRanking", false);
57  allowMatching = getAttributes().getAttributeBooleanValue("attrib:allowMatching", false);
58  allowSorting = getAttributes().getAttributeBooleanValue("attrib:allowSorting", false);
59  doMatching = getAttributes().getAttributeBooleanValue("attrib:doMatching", false);
60  iterator = initIterator();
61  DaoHtmlSearch dhs = getSearchEngine();
62  if(dhs != null) {
63  iterator.setSearchEngine(dhs);
65  }
66  iterator.setPage(count);
67  iterator.setRestricted(restricted);
68  iterator.setFullTemplate(fullTemplate);
69  iterator.setSummaryTemplate(summaryTemplate);
70  iterator.setAllowComments(allowComments);
71  iterator.setAllowInterest(allowInterest);
72  iterator.setAllowVotes(allowVotes);
73  iterator.setAllowAttachments(allowAttachments);
74  iterator.setAllowDescriptions(allowDescriptions);
75  iterator.setAllowFiles(allowFiles);
76  iterator.setAllowPolls(allowPolls);
77  iterator.setAllowRanking(allowRanking);
78  iterator.setAllowMatching(allowMatching);
79  iterator.setAllowSorting(allowSorting);
80  iterator.setDoMatching(doMatching);
81  iterator.load();
82  setTitle(iterator.getTitle());
83  if(iterator.isItem()) {
84  setMetas(iterator.getMetas());
85  } else {
87  }
88  }
abstract DaoHtmlIterator initIterator()
void setAllowAttachments(boolean allowAttachments)
void setAllowInterest(boolean allowInterest)
void setFullTemplate(String fullTemplate)
void setAllowDescriptions(boolean allowDescriptions)
void setSearchEngine(DaoHtmlSearch searchEngine)
void setAllowSorting(boolean allowSorting)
void setAllowComments(boolean allowComments)
void setAllowMatching(boolean allowMatching)
void setSummaryTemplate(String summaryTemplate)
void setAllowRanking(boolean allowRanking)
Here is the call graph for this function:

◆ startConstruction()

void org.turro.dashboard.AbstractDaoDashboard.startConstruction ( ) throws ServletException, IOException

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

Exceptions
javax.servlet.ServletException
java.io.IOException

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

Reimplemented in org.turro.dossier.www.DossierDashboard.

Definition at line 169 of file AbstractDaoDashboard.java.

169  {
170  PrintWriter out = getConstructor().getOut();
171  out.print(getStart());
172  out.print(getStartBody());
173 
174  if(!getIterator().isItem()) {
175  DaoHtmlSearch dhs = getSearchEngine();
176  if(dhs != null) {
178  }
179  }
180  getIterator().render();
181 
182  out.print(getEndBody());
183  out.print(getEnd());
184  }
Here is the call graph for this function:

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