- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 56 of file AxChallenge.java.
◆ entityId()
Object org.turro.alliance.db.entities.AxChallenge.entityId |
( |
| ) |
|
◆ equals()
boolean org.turro.alliance.db.entities.AxChallenge.equals |
( |
Object |
obj | ) |
|
Definition at line 259 of file AxChallenge.java.
266 if (getClass() != obj.getClass()) {
269 final AxChallenge other = (AxChallenge) obj;
270 return Objects.equals(this.challengeId, other.challengeId);
◆ from()
Definition at line 199 of file AxChallenge.java.
200 AxChallenge axp =
new AxChallenge();
201 ProcedenceId
id =
new ProcedenceId();
202 id.setMemberId(memberId);
203 id.setEntityId(Long.toString(challenge.getId()));
204 axp.setChallengeId(
id);
205 axp.setCreation(challenge.getCreation());
206 axp.setDeadline(challenge.getDeadline());
207 axp.setCategoryId(pc.getCategoryId());
208 IContact challenger = challenge.getContact();
209 axp.setIdChallenger(challenger.getId());
210 axp.setName(challenger.getName());
211 axp.setFace(Faces.of(challenger).getUrl());
212 axp.setCompany(Relations.companies(challenger).date(challenge.getCreation()).getOptCompany().map(c -> c.getName()).orElse(
null));
213 axp.setQuestion(challenge.getQuestion());
214 axp.setText(challenge.getText());
215 axp.setSourceLink(ElephantContext.getServerUrl(
"http") + Entities.getController(challenge).getEntityUrl());
216 axp.setResponses(AxResponse.from(memberId, challenge));
◆ fromJson()
static AxChallenge org.turro.alliance.db.entities.AxChallenge.fromJson |
( |
JsonValue |
value | ) |
|
|
static |
Definition at line 245 of file AxChallenge.java.
246 return IJSONizable.fromJson(value.toString(), AxChallenge.class);
◆ getCategory()
Definition at line 173 of file AxChallenge.java.
174 return new AlliancePU().find(AxTalentCategory.class, categoryId);
◆ getCategoryId()
Long org.turro.alliance.db.entities.AxChallenge.getCategoryId |
( |
| ) |
|
◆ getChallengeId()
ProcedenceId org.turro.alliance.db.entities.AxChallenge.getChallengeId |
( |
| ) |
|
◆ getCompany()
String org.turro.alliance.db.entities.AxChallenge.getCompany |
( |
| ) |
|
◆ getCreation()
Date org.turro.alliance.db.entities.AxChallenge.getCreation |
( |
| ) |
|
◆ getDeadline()
Date org.turro.alliance.db.entities.AxChallenge.getDeadline |
( |
| ) |
|
◆ getFace()
String org.turro.alliance.db.entities.AxChallenge.getFace |
( |
| ) |
|
◆ getId()
String org.turro.alliance.db.entities.AxChallenge.getId |
( |
| ) |
|
◆ getIdChallenger()
String org.turro.alliance.db.entities.AxChallenge.getIdChallenger |
( |
| ) |
|
◆ getName()
String org.turro.alliance.db.entities.AxChallenge.getName |
( |
| ) |
|
◆ getQuestion()
String org.turro.alliance.db.entities.AxChallenge.getQuestion |
( |
| ) |
|
◆ getResponses()
Set<AxResponse> org.turro.alliance.db.entities.AxChallenge.getResponses |
( |
| ) |
|
◆ getSourceLink()
String org.turro.alliance.db.entities.AxChallenge.getSourceLink |
( |
| ) |
|
◆ getText()
String org.turro.alliance.db.entities.AxChallenge.getText |
( |
| ) |
|
◆ hashCode()
int org.turro.alliance.db.entities.AxChallenge.hashCode |
( |
| ) |
|
Definition at line 252 of file AxChallenge.java.
254 hash = 79 * hash + Objects.hashCode(this.challengeId);
◆ isEmpty()
boolean org.turro.alliance.db.entities.AxChallenge.isEmpty |
( |
| ) |
|
◆ setCategory()
void org.turro.alliance.db.entities.AxChallenge.setCategory |
( |
AxTalentCategory |
category | ) |
|
◆ setCategoryId()
void org.turro.alliance.db.entities.AxChallenge.setCategoryId |
( |
Long |
categoryId | ) |
|
◆ setChallengeId()
void org.turro.alliance.db.entities.AxChallenge.setChallengeId |
( |
ProcedenceId |
challengeId | ) |
|
◆ setCompany()
void org.turro.alliance.db.entities.AxChallenge.setCompany |
( |
String |
company | ) |
|
◆ setCreation()
void org.turro.alliance.db.entities.AxChallenge.setCreation |
( |
Date |
creation | ) |
|
◆ setDeadline()
void org.turro.alliance.db.entities.AxChallenge.setDeadline |
( |
Date |
deadline | ) |
|
◆ setFace()
void org.turro.alliance.db.entities.AxChallenge.setFace |
( |
String |
face | ) |
|
◆ setIdChallenger()
void org.turro.alliance.db.entities.AxChallenge.setIdChallenger |
( |
String |
idChallenger | ) |
|
◆ setName()
void org.turro.alliance.db.entities.AxChallenge.setName |
( |
String |
name | ) |
|
◆ setQuestion()
void org.turro.alliance.db.entities.AxChallenge.setQuestion |
( |
String |
question | ) |
|
◆ setResponses()
void org.turro.alliance.db.entities.AxChallenge.setResponses |
( |
Set< AxResponse > |
responses | ) |
|
◆ setSourceLink()
void org.turro.alliance.db.entities.AxChallenge.setSourceLink |
( |
String |
sourceLink | ) |
|
◆ setText()
void org.turro.alliance.db.entities.AxChallenge.setText |
( |
String |
text | ) |
|
◆ toJson() [1/2]
String org.turro.alliance.db.entities.AxChallenge.toJson |
( |
| ) |
|
◆ toJson() [2/2]
String org.turro.alliance.db.entities.AxChallenge.toJson |
( |
Map< String, Object > |
properties | ) |
|
The documentation for this class was generated from the following file: