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

Public Member Functions

void onQuestion ()
 
void onText ()
 
void onDeadline ()
 
void onSave ()
 
void onCancel ()
 
String getContextPath ()
 
void setContextPath (String contextPath)
 
void setChallenge (Challenge challenge)
 
Challenge getChallenge ()
 
- Public Member Functions inherited from org.turro.elephant.TemplateControl
void setRootTmpl (String rootTmpl)
 
void setTmpl (String tmpl)
 
void afterCompose ()
 

Protected Member Functions

void doFinally ()
 

Detailed Description

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

Definition at line 51 of file EditChallengeControl.java.

Member Function Documentation

◆ doFinally()

void org.turro.students.www.EditChallengeControl.doFinally ( )
protected

Reimplemented from org.turro.elephant.TemplateControl.

Definition at line 121 of file EditChallengeControl.java.

121  {
122  super.doFinally();
123  checkChallenge();
124  initComponents();
125  }

◆ getChallenge()

Challenge org.turro.students.www.EditChallengeControl.getChallenge ( )

Definition at line 115 of file EditChallengeControl.java.

115  {
116  checkChallenge();
117  return challenge;
118  }

◆ getContextPath()

String org.turro.students.www.EditChallengeControl.getContextPath ( )

Definition at line 103 of file EditChallengeControl.java.

103  {
104  return contextPath;
105  }

◆ onCancel()

void org.turro.students.www.EditChallengeControl.onCancel ( )

Definition at line 94 of file EditChallengeControl.java.

94  {
95  if(challenge.getId() != null && challenge.getId() > 0) {
96  Application.getApplication().sendRedirect(contextPath + "?" +
97  MarkerHelper.setObfuscatedRightNowPars("item=" + challenge.getId()));
98  } else {
99  Application.getApplication().sendRedirect(contextPath);
100  }
101  }
Here is the call graph for this function:

◆ onDeadline()

void org.turro.students.www.EditChallengeControl.onDeadline ( )

Definition at line 72 of file EditChallengeControl.java.

72  {
73  challenge.setDeadline(deadline.getValue());
74  }
Here is the call graph for this function:

◆ onQuestion()

void org.turro.students.www.EditChallengeControl.onQuestion ( )

Definition at line 62 of file EditChallengeControl.java.

62  {
63  challenge.setQuestion(question.getValue());
64  }
void setQuestion(String question)
Definition: Challenge.java:118
Here is the call graph for this function:

◆ onSave()

void org.turro.students.www.EditChallengeControl.onSave ( )

Definition at line 77 of file EditChallengeControl.java.

77  {
78  ChallengeWrapper dw = new ChallengeWrapper(challenge);
79  challenge.setEntityPath(entity.getEntityPath());
80  if(!challenge.isEmpty()) {
81  boolean isNew = challenge.getId() == null;
82  challenge = dw.save();
83  Application.getApplication().sendRedirect(contextPath + "?" +
84  MarkerHelper.setObfuscatedRightNowPars("item=" + challenge.getId()));
85  if(isNew) {
86  new NewChallengeNotification(challenge).sendNotification();
87  } else {
88  new ChallengeChangedNotification(challenge).sendNotification();
89  }
90  }
91  }
void setEntityPath(String entityPath)
Definition: Challenge.java:94
Here is the call graph for this function:

◆ onText()

void org.turro.students.www.EditChallengeControl.onText ( )

Definition at line 67 of file EditChallengeControl.java.

67  {
68  challenge.setWikiText(text.getValue());
69  }
void setWikiText(String wikiText)
Definition: Challenge.java:150
Here is the call graph for this function:

◆ setChallenge()

void org.turro.students.www.EditChallengeControl.setChallenge ( Challenge  challenge)

Definition at line 111 of file EditChallengeControl.java.

111  {
112  this.challenge = challenge;
113  }

◆ setContextPath()

void org.turro.students.www.EditChallengeControl.setContextPath ( String  contextPath)

Definition at line 107 of file EditChallengeControl.java.

107  {
108  this.contextPath = contextPath;
109  }

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