BrightSide Workbench Full Report + Source Code
org.turro.alliance.content.PhaseHtmlFilter Class Reference

Public Member Functions

boolean isEmpty ()
 
void loadValues (IConstructor constructor)
 
String getTemplate ()
 
void setTemplate (String template)
 
String getPhase ()
 
String render ()
 

Static Public Member Functions

static PhaseHtmlFilter getInstance (IConstructor constructor, String context)
 

Detailed Description

Member Function Documentation

◆ getInstance()

static PhaseHtmlFilter org.turro.alliance.content.PhaseHtmlFilter.getInstance ( IConstructor  constructor,
String  context 
)
static

Definition at line 34 of file Elephant/elephant-alliance/src/main/java/org/turro/alliance/content/PhaseHtmlFilter.java.

34  {
35  PhaseHtmlFilter filter = (PhaseHtmlFilter) constructor.getSessionAttribute(context + "-phaseFilter");
36  if(filter == null) {
37  filter = new PhaseHtmlFilter();
38  constructor.setSessionAttribute(context + "-phaseFilter", filter);
39  }
40  filter.loadValues(constructor);
41  return filter;
42  }
void setSessionAttribute(String key, Object value)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPhase()

String org.turro.alliance.content.PhaseHtmlFilter.getPhase ( )

Definition at line 66 of file Elephant/elephant-alliance/src/main/java/org/turro/alliance/content/PhaseHtmlFilter.java.

66  {
67  return phase;
68  }

◆ getTemplate()

String org.turro.alliance.content.PhaseHtmlFilter.getTemplate ( )

Definition at line 58 of file Elephant/elephant-alliance/src/main/java/org/turro/alliance/content/PhaseHtmlFilter.java.

58  {
59  return template;
60  }

◆ isEmpty()

boolean org.turro.alliance.content.PhaseHtmlFilter.isEmpty ( )

Definition at line 44 of file Elephant/elephant-alliance/src/main/java/org/turro/alliance/content/PhaseHtmlFilter.java.

44  {
45  return Strings.isBlank(phase);
46  }

◆ loadValues()

void org.turro.alliance.content.PhaseHtmlFilter.loadValues ( IConstructor  constructor)

Definition at line 48 of file Elephant/elephant-alliance/src/main/java/org/turro/alliance/content/PhaseHtmlFilter.java.

48  {
49  this.constructor = constructor;
50  String tmp = constructor.getParameter("phase");
51  if("clear".equals(tmp)) {
52  phase = null;
53  } else if(tmp != null) {
54  phase = tmp;
55  }
56  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ render()

String org.turro.alliance.content.PhaseHtmlFilter.render ( )

Definition at line 70 of file Elephant/elephant-alliance/src/main/java/org/turro/alliance/content/PhaseHtmlFilter.java.

70  {
71  ElephantMarker em = new ElephantMarker(constructor);
72  em.put("phases", AlliancePhaseDefinitions.instance());
73  em.put("selected", phase);
74  return em.parse("dossier", template);
75  }
Here is the call graph for this function:

◆ setTemplate()

void org.turro.alliance.content.PhaseHtmlFilter.setTemplate ( String  template)

Definition at line 62 of file Elephant/elephant-alliance/src/main/java/org/turro/alliance/content/PhaseHtmlFilter.java.

62  {
63  this.template = template;
64  }
Here is the caller graph for this function:

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