BrightSide Workbench Full Report + Source Code
org.turro.elephant.entities.web.WebGoal Class Reference
Inheritance diagram for org.turro.elephant.entities.web.WebGoal:
Collaboration diagram for org.turro.elephant.entities.web.WebGoal:

Public Member Functions

String getGoalAction ()
 
void setGoalAction (String goalAction)
 
String getCaption ()
 
void setCaption (String caption)
 
int getOrdering ()
 
void setOrdering (int ordering)
 
Wiki getSummary ()
 
void setSummary (Wiki summary)
 
Wiki getDescription ()
 
void setDescription (Wiki description)
 
String getCompendium ()
 
String getContent ()
 
WebLink getWebLink ()
 
boolean isValid ()
 
String getItemLabel ()
 
void compose ()
 
int hashCode ()
 
boolean equals (Object obj)
 
Object entityId ()
 
boolean isEmpty ()
 
- Public Member Functions inherited from org.turro.jpa.entity.IDaoEntity
default boolean isNew ()
 
default void prepareSave ()
 
default void prepareDelete ()
 
default void removeEmpties ()
 
default Collection< Collection > collections ()
 

Detailed Description

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

Definition at line 43 of file WebGoal.java.

Member Function Documentation

◆ compose()

void org.turro.elephant.entities.web.WebGoal.compose ( )

Definition at line 128 of file WebGoal.java.

128  {
129  IConstructor constructor = Application.getApplication().getConstructor();
130  if(constructor != null) {
131  getSummary().compose(constructor);
132  getDescription().compose(constructor);
133  }
134  }
void compose(IConstructor constructor)
Definition: Wiki.java:66
Here is the call graph for this function:

◆ entityId()

Object org.turro.elephant.entities.web.WebGoal.entityId ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 161 of file WebGoal.java.

161  {
162  return goalAction;
163  }

◆ equals()

boolean org.turro.elephant.entities.web.WebGoal.equals ( Object  obj)

Definition at line 144 of file WebGoal.java.

144  {
145  if (this == obj) {
146  return true;
147  }
148  if (obj == null) {
149  return false;
150  }
151  if (getClass() != obj.getClass()) {
152  return false;
153  }
154  final WebGoal other = (WebGoal) obj;
155  return Objects.equals(this.goalAction, other.goalAction);
156  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCaption()

String org.turro.elephant.entities.web.WebGoal.getCaption ( )

Definition at line 72 of file WebGoal.java.

72  {
73  return caption;
74  }

◆ getCompendium()

String org.turro.elephant.entities.web.WebGoal.getCompendium ( )

Definition at line 108 of file WebGoal.java.

108  {
109  return summary == null ? "" : summary.getText();
110  }
Here is the call graph for this function:

◆ getContent()

String org.turro.elephant.entities.web.WebGoal.getContent ( )

Definition at line 112 of file WebGoal.java.

112  {
113  return description == null ? "" : description.getText();
114  }
Here is the call graph for this function:

◆ getDescription()

Wiki org.turro.elephant.entities.web.WebGoal.getDescription ( )

Definition at line 97 of file WebGoal.java.

97  {
98  if(description == null) description = new Wiki();
99  return description;
100  }
Here is the caller graph for this function:

◆ getGoalAction()

String org.turro.elephant.entities.web.WebGoal.getGoalAction ( )

Definition at line 64 of file WebGoal.java.

64  {
65  return goalAction;
66  }

◆ getItemLabel()

String org.turro.elephant.entities.web.WebGoal.getItemLabel ( )

Definition at line 124 of file WebGoal.java.

124  {
125  return Phrases.start(caption).add(goalAction, "()").toString();
126  }
Here is the caller graph for this function:

◆ getOrdering()

int org.turro.elephant.entities.web.WebGoal.getOrdering ( )

Definition at line 80 of file WebGoal.java.

80  {
81  return ordering;
82  }

◆ getSummary()

Wiki org.turro.elephant.entities.web.WebGoal.getSummary ( )

Definition at line 88 of file WebGoal.java.

88  {
89  if(summary == null) summary = new Wiki();
90  return summary;
91  }
Here is the caller graph for this function:

◆ getWebLink()

WebLink org.turro.elephant.entities.web.WebGoal.getWebLink ( )

Definition at line 116 of file WebGoal.java.

116  {
117  return WebLink.from(WebActions.of(goalAction).link(), caption);
118  }
Here is the call graph for this function:

◆ hashCode()

int org.turro.elephant.entities.web.WebGoal.hashCode ( )

Definition at line 137 of file WebGoal.java.

137  {
138  int hash = 7;
139  hash = 97 * hash + Objects.hashCode(this.goalAction);
140  return hash;
141  }

◆ isEmpty()

boolean org.turro.elephant.entities.web.WebGoal.isEmpty ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 166 of file WebGoal.java.

166  {
167  return Strings.isBlank(goalAction) || Strings.isBlank(caption);
168  }

◆ isValid()

boolean org.turro.elephant.entities.web.WebGoal.isValid ( )

Definition at line 120 of file WebGoal.java.

120  {
121  return true;
122  }
Here is the caller graph for this function:

◆ setCaption()

void org.turro.elephant.entities.web.WebGoal.setCaption ( String  caption)

Definition at line 76 of file WebGoal.java.

76  {
77  this.caption = caption;
78  }

◆ setDescription()

void org.turro.elephant.entities.web.WebGoal.setDescription ( Wiki  description)

Definition at line 102 of file WebGoal.java.

102  {
103  this.description = description;
104  }

◆ setGoalAction()

void org.turro.elephant.entities.web.WebGoal.setGoalAction ( String  goalAction)

Definition at line 68 of file WebGoal.java.

68  {
69  this.goalAction = goalAction;
70  }
Here is the caller graph for this function:

◆ setOrdering()

void org.turro.elephant.entities.web.WebGoal.setOrdering ( int  ordering)

Definition at line 84 of file WebGoal.java.

84  {
85  this.ordering = ordering;
86  }

◆ setSummary()

void org.turro.elephant.entities.web.WebGoal.setSummary ( Wiki  summary)

Definition at line 93 of file WebGoal.java.

93  {
94  this.summary = summary;
95  }

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