- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 50 of file Challenge.java.
◆ entityId()
| Object org.turro.students.entities.Challenge.entityId |
( |
| ) |
|
◆ getContact()
| IContact org.turro.students.entities.Challenge.getContact |
( |
| ) |
|
Definition at line 199 of file Challenge.java.
200 if(_contact ==
null) {
201 _contact = Contacts.getContactById(idChallenger);
◆ getCreation()
| Date org.turro.students.entities.Challenge.getCreation |
( |
| ) |
|
◆ getDeadline()
| Date org.turro.students.entities.Challenge.getDeadline |
( |
| ) |
|
◆ getEntity()
Entity Helpers
Definition at line 191 of file Challenge.java.
192 return Entities.getController(entityPath);
◆ getEntityPath()
| String org.turro.students.entities.Challenge.getEntityPath |
( |
| ) |
|
◆ getId()
| Long org.turro.students.entities.Challenge.getId |
( |
| ) |
|
◆ getIdChallenger()
| String org.turro.students.entities.Challenge.getIdChallenger |
( |
| ) |
|
◆ getName()
| String org.turro.students.entities.Challenge.getName |
( |
| ) |
|
◆ getQuestion()
| String org.turro.students.entities.Challenge.getQuestion |
( |
| ) |
|
◆ getResponses()
| Set<Response> org.turro.students.entities.Challenge.getResponses |
( |
| ) |
|
◆ getSerializerMappings()
| MappingSet org.turro.students.entities.Challenge.getSerializerMappings |
( |
| ) |
|
Definition at line 214 of file Challenge.java.
215 MappingSet
set =
new MappingSet();
216 set.addMapping(Challenge.class, 1,
217 new String[] {
"id",
"question",
"entityPath",
"idChallenger",
"creation",
"deadline" },
218 new String[] {
"wikiText",
"responses" });
219 set.addMapping(Response.class, 2,
220 new String[] {
"id",
"creation" },
221 new String[] {
"wikiText",
"studentIds" });
◆ getText()
| String org.turro.students.entities.Challenge.getText |
( |
| ) |
|
◆ getWikiText()
| String org.turro.students.entities.Challenge.getWikiText |
( |
| ) |
|
◆ isEmpty()
| boolean org.turro.students.entities.Challenge.isEmpty |
( |
| ) |
|
◆ isParticipant()
| boolean org.turro.students.entities.Challenge.isParticipant |
( |
IContact |
contact | ) |
|
Definition at line 184 of file Challenge.java.
185 return idChallenger.equals(contact.getId()) ||
186 responses.stream().anyMatch(r -> r.getStudentIds().contains(contact.getId()));
◆ removeResponse()
| boolean org.turro.students.entities.Challenge.removeResponse |
( |
Response |
response | ) |
|
Helpers
Definition at line 178 of file Challenge.java.
179 EntityCollections.entities(responses).remove(response);
180 response.setChallenge(
null);
◆ setContact()
| void org.turro.students.entities.Challenge.setContact |
( |
IContact |
contact | ) |
|
Definition at line 206 of file Challenge.java.
208 idChallenger = _contact !=
null ? _contact.
getId() :
null;
209 name = _contact !=
null ? _contact.
getName() :
null;
◆ setCreation()
| void org.turro.students.entities.Challenge.setCreation |
( |
Date |
creation | ) |
|
◆ setDeadline()
| void org.turro.students.entities.Challenge.setDeadline |
( |
Date |
deadline | ) |
|
◆ setEntityPath()
| void org.turro.students.entities.Challenge.setEntityPath |
( |
String |
entityPath | ) |
|
◆ setId()
| void org.turro.students.entities.Challenge.setId |
( |
Long |
id | ) |
|
◆ setIdChallenger()
| void org.turro.students.entities.Challenge.setIdChallenger |
( |
String |
idChallenger | ) |
|
◆ setName()
| void org.turro.students.entities.Challenge.setName |
( |
String |
name | ) |
|
◆ setQuestion()
| void org.turro.students.entities.Challenge.setQuestion |
( |
String |
question | ) |
|
◆ setResponses()
| void org.turro.students.entities.Challenge.setResponses |
( |
Set< Response > |
responses | ) |
|
◆ setText()
| void org.turro.students.entities.Challenge.setText |
( |
String |
text | ) |
|
◆ setWikiText()
| void org.turro.students.entities.Challenge.setWikiText |
( |
String |
wikiText | ) |
|
Definition at line 150 of file Challenge.java.
151 this.wikiText = wikiText;
152 this.text = WikiCompiler.source(this.wikiText).html();
The documentation for this class was generated from the following file: