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

Public Member Functions

Long getId ()
 
void setId (Long id)
 
String getTitle ()
 
void setTitle (String title)
 
PracticalWorkRole getRole ()
 
void setRole (PracticalWorkRole role)
 
String getType ()
 
void setType (String type)
 
Date getCreation ()
 
void setCreation (Date creation)
 
Date getStartDate ()
 
void setStartDate (Date startDate)
 
Date getEndDate ()
 
void setEndDate (Date endDate)
 
double getHours ()
 
void setHours (double hours)
 
double getPrice ()
 
void setPrice (double price)
 
String getZipCode ()
 
void setZipCode (String zipCode)
 
String getRelatedURL ()
 
void setRelatedURL (String relatedURL)
 
String getIdContact ()
 
void setIdContact (String idContact)
 
String getIdResponsible ()
 
void setIdResponsible (String idResponsible)
 
boolean isImmediate ()
 
void setImmediate (boolean immediate)
 
boolean isPublished ()
 
void setPublished (boolean published)
 
String getText ()
 
void setText (String text)
 
String getWiki ()
 
void setWiki (String wiki)
 
Object entityId ()
 
boolean isEmpty ()
 
String getPlainText ()
 
boolean isInBusiness (IContact worker)
 
void setRoleByContact ()
 
IContact getIContact ()
 
IContact getIResponsible ()
 
void setIContact (IContact contact)
 
void setIResponsible (IContact responsible)
 
MappingSet getSerializerMappings ()
 
- 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 42 of file PracticalWork.java.

Member Function Documentation

◆ entityId()

Object org.turro.students.entities.PracticalWork.entityId ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 218 of file PracticalWork.java.

218  {
219  return id;
220  }

◆ getCreation()

Date org.turro.students.entities.PracticalWork.getCreation ( )

Definition at line 106 of file PracticalWork.java.

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

◆ getEndDate()

Date org.turro.students.entities.PracticalWork.getEndDate ( )

Definition at line 122 of file PracticalWork.java.

122  {
123  return endDate;
124  }

◆ getHours()

double org.turro.students.entities.PracticalWork.getHours ( )

Definition at line 130 of file PracticalWork.java.

130  {
131  return hours;
132  }
Here is the caller graph for this function:

◆ getIContact()

IContact org.turro.students.entities.PracticalWork.getIContact ( )

Definition at line 244 of file PracticalWork.java.

244  {
245  return Contacts.getContactById(idContact);
246  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getId()

Long org.turro.students.entities.PracticalWork.getId ( )

Definition at line 74 of file PracticalWork.java.

74  {
75  return id;
76  }
Here is the caller graph for this function:

◆ getIdContact()

String org.turro.students.entities.PracticalWork.getIdContact ( )

Definition at line 162 of file PracticalWork.java.

162  {
163  return idContact;
164  }

◆ getIdResponsible()

String org.turro.students.entities.PracticalWork.getIdResponsible ( )

Definition at line 170 of file PracticalWork.java.

170  {
171  return idResponsible;
172  }

◆ getIResponsible()

IContact org.turro.students.entities.PracticalWork.getIResponsible ( )

Definition at line 248 of file PracticalWork.java.

248  {
249  return Contacts.getContactById(idResponsible);
250  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPlainText()

String org.turro.students.entities.PracticalWork.getPlainText ( )

Definition at line 230 of file PracticalWork.java.

230  {
231  return HtmlContent.text(getText());
232  }
Here is the call graph for this function:

◆ getPrice()

double org.turro.students.entities.PracticalWork.getPrice ( )

Definition at line 138 of file PracticalWork.java.

138  {
139  return price;
140  }
Here is the caller graph for this function:

◆ getRelatedURL()

String org.turro.students.entities.PracticalWork.getRelatedURL ( )

Definition at line 154 of file PracticalWork.java.

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

◆ getRole()

PracticalWorkRole org.turro.students.entities.PracticalWork.getRole ( )

Definition at line 90 of file PracticalWork.java.

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

◆ getSerializerMappings()

MappingSet org.turro.students.entities.PracticalWork.getSerializerMappings ( )

Definition at line 262 of file PracticalWork.java.

262  {
263  MappingSet set = new MappingSet();
264  set.addMapping(PracticalWork.class, 1,
265  new String[] { "title", "creation", "startDate", "endDate", "role", "type", "published" },
266  new String[] { "hours", "price", "zipCode", "text", "relatedURL", "idContact", "idResponsible" });
267  return set;
268  }

◆ getStartDate()

Date org.turro.students.entities.PracticalWork.getStartDate ( )

Definition at line 114 of file PracticalWork.java.

114  {
115  return startDate;
116  }

◆ getText()

String org.turro.students.entities.PracticalWork.getText ( )

Definition at line 194 of file PracticalWork.java.

194  {
195  return text;
196  }
Here is the caller graph for this function:

◆ getTitle()

String org.turro.students.entities.PracticalWork.getTitle ( )

Definition at line 82 of file PracticalWork.java.

82  {
83  return title;
84  }
Here is the caller graph for this function:

◆ getType()

String org.turro.students.entities.PracticalWork.getType ( )

Definition at line 98 of file PracticalWork.java.

98  {
99  return type;
100  }
Here is the caller graph for this function:

◆ getWiki()

String org.turro.students.entities.PracticalWork.getWiki ( )

Definition at line 202 of file PracticalWork.java.

202  {
203  // Compatible with non wiki version
204  if(Strings.isEmpty(wiki) && !Strings.isEmpty(text)) {
205  wiki = text;
206  }
207  return wiki;
208  }

◆ getZipCode()

String org.turro.students.entities.PracticalWork.getZipCode ( )

Definition at line 146 of file PracticalWork.java.

146  {
147  return zipCode;
148  }
Here is the caller graph for this function:

◆ isEmpty()

boolean org.turro.students.entities.PracticalWork.isEmpty ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 223 of file PracticalWork.java.

223  {
224  return Strings.isBlank(title) || Strings.isBlank(text) || role == null ||
225  Strings.isBlank(type) || Strings.isBlank(idContact) || Strings.isBlank(idResponsible);
226  }
Here is the caller graph for this function:

◆ isImmediate()

boolean org.turro.students.entities.PracticalWork.isImmediate ( )

Definition at line 178 of file PracticalWork.java.

178  {
179  return immediate;
180  }

◆ isInBusiness()

boolean org.turro.students.entities.PracticalWork.isInBusiness ( IContact  worker)

Definition at line 234 of file PracticalWork.java.

234  {
235  return getIContact().isInBusiness(worker);
236  }
boolean isInBusiness(IContact worker)
Here is the call graph for this function:

◆ isPublished()

boolean org.turro.students.entities.PracticalWork.isPublished ( )

Definition at line 186 of file PracticalWork.java.

186  {
187  return published;
188  }
Here is the caller graph for this function:

◆ setCreation()

void org.turro.students.entities.PracticalWork.setCreation ( Date  creation)

Definition at line 110 of file PracticalWork.java.

110  {
111  this.creation = creation;
112  }

◆ setEndDate()

void org.turro.students.entities.PracticalWork.setEndDate ( Date  endDate)

Definition at line 126 of file PracticalWork.java.

126  {
127  this.endDate = endDate;
128  }
Here is the caller graph for this function:

◆ setHours()

void org.turro.students.entities.PracticalWork.setHours ( double  hours)

Definition at line 134 of file PracticalWork.java.

134  {
135  this.hours = hours;
136  }
Here is the caller graph for this function:

◆ setIContact()

void org.turro.students.entities.PracticalWork.setIContact ( IContact  contact)

Definition at line 252 of file PracticalWork.java.

252  {
253  if(contact != null) idContact = contact.getId();
254  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setId()

void org.turro.students.entities.PracticalWork.setId ( Long  id)

Definition at line 78 of file PracticalWork.java.

78  {
79  this.id = id;
80  }

◆ setIdContact()

void org.turro.students.entities.PracticalWork.setIdContact ( String  idContact)

Definition at line 166 of file PracticalWork.java.

166  {
167  this.idContact = idContact;
168  }

◆ setIdResponsible()

void org.turro.students.entities.PracticalWork.setIdResponsible ( String  idResponsible)

Definition at line 174 of file PracticalWork.java.

174  {
175  this.idResponsible = idResponsible;
176  }

◆ setImmediate()

void org.turro.students.entities.PracticalWork.setImmediate ( boolean  immediate)

Definition at line 182 of file PracticalWork.java.

182  {
183  this.immediate = immediate;
184  }
Here is the caller graph for this function:

◆ setIResponsible()

void org.turro.students.entities.PracticalWork.setIResponsible ( IContact  responsible)

Definition at line 256 of file PracticalWork.java.

256  {
257  if(responsible != null) idResponsible = responsible.getId();
258  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setPrice()

void org.turro.students.entities.PracticalWork.setPrice ( double  price)

Definition at line 142 of file PracticalWork.java.

142  {
143  this.price = price;
144  }
Here is the caller graph for this function:

◆ setPublished()

void org.turro.students.entities.PracticalWork.setPublished ( boolean  published)

Definition at line 190 of file PracticalWork.java.

190  {
191  this.published = published;
192  }
Here is the caller graph for this function:

◆ setRelatedURL()

void org.turro.students.entities.PracticalWork.setRelatedURL ( String  relatedURL)

Definition at line 158 of file PracticalWork.java.

158  {
159  this.relatedURL = relatedURL;
160  }
Here is the caller graph for this function:

◆ setRole()

void org.turro.students.entities.PracticalWork.setRole ( PracticalWorkRole  role)

Definition at line 94 of file PracticalWork.java.

94  {
95  this.role = role;
96  }
Here is the caller graph for this function:

◆ setRoleByContact()

void org.turro.students.entities.PracticalWork.setRoleByContact ( )

Definition at line 238 of file PracticalWork.java.

238  {
239  setRole(getIContact().isCenter() ? PracticalWorkRole.PRACTICALWORK_DEMAND : PracticalWorkRole.PRACTICALWORK_SUPPLY);
240  }
void setRole(PracticalWorkRole role)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setStartDate()

void org.turro.students.entities.PracticalWork.setStartDate ( Date  startDate)

Definition at line 118 of file PracticalWork.java.

118  {
119  this.startDate = startDate;
120  }
Here is the caller graph for this function:

◆ setText()

void org.turro.students.entities.PracticalWork.setText ( String  text)

Definition at line 198 of file PracticalWork.java.

198  {
199  this.text = text;
200  }

◆ setTitle()

void org.turro.students.entities.PracticalWork.setTitle ( String  title)

Definition at line 86 of file PracticalWork.java.

86  {
87  this.title = title;
88  }
Here is the caller graph for this function:

◆ setType()

void org.turro.students.entities.PracticalWork.setType ( String  type)

Definition at line 102 of file PracticalWork.java.

102  {
103  this.type = type;
104  }
Here is the caller graph for this function:

◆ setWiki()

void org.turro.students.entities.PracticalWork.setWiki ( String  wiki)

Definition at line 210 of file PracticalWork.java.

210  {
211  this.wiki = wiki;
212  this.text = WikiCompiler.source(this.wiki).html();
213  }
Here is the caller graph for this function:

◆ setZipCode()

void org.turro.students.entities.PracticalWork.setZipCode ( String  zipCode)

Definition at line 150 of file PracticalWork.java.

150  {
151  this.zipCode = zipCode;
152  }
Here is the caller graph for this function:

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