BrightSide Workbench Full Report + Source Code
org.turro.polls.PollsCtrl Class Reference

Public Member Functions

 PollsCtrl (IConstructor constructor)
 
void setEntityPath (String entityPath)
 
boolean isEmpty ()
 
void renderTemplatePolls ()
 

Detailed Description

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

Definition at line 33 of file PollsCtrl.java.

Constructor & Destructor Documentation

◆ PollsCtrl()

org.turro.polls.PollsCtrl.PollsCtrl ( IConstructor  constructor)

Definition at line 38 of file PollsCtrl.java.

38  {
39  this.constructor = constructor;
40  }

Member Function Documentation

◆ isEmpty()

boolean org.turro.polls.PollsCtrl.isEmpty ( )

Definition at line 46 of file PollsCtrl.java.

46  {
47  IContact contact = Authentication.getIContact();
48  return getPolls(contact).isEmpty();
49  }
Here is the call graph for this function:

◆ renderTemplatePolls()

void org.turro.polls.PollsCtrl.renderTemplatePolls ( )

Definition at line 51 of file PollsCtrl.java.

51  {
52  IContact contact = Authentication.getIContact();
53  ElephantMarker em = new ElephantMarker(constructor);
54  em.put("control", this);
55  em.put("contact", contact);
56  em.put("polls", getPolls(contact));
57  em.put("entityPath", entityPath);
58  em.process("widgets/webcomp", "polls");
59  }
Here is the call graph for this function:

◆ setEntityPath()

void org.turro.polls.PollsCtrl.setEntityPath ( String  entityPath)

Definition at line 42 of file PollsCtrl.java.

42  {
43  this.entityPath = entityPath;
44  }
Here is the caller graph for this function:

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