- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 43 of file AxStudent.java.
◆ entityId()
Object org.turro.alliance.db.entities.AxStudent.entityId |
( |
| ) |
|
◆ equals()
boolean org.turro.alliance.db.entities.AxStudent.equals |
( |
Object |
obj | ) |
|
Definition at line 197 of file AxStudent.java.
204 if (getClass() != obj.getClass()) {
207 final AxStudent other = (AxStudent) obj;
208 return Objects.equals(this.studentId, other.studentId);
◆ from() [1/2]
static AxStudent org.turro.alliance.db.entities.AxStudent.from |
( |
long |
memberId, |
|
|
IContact |
contact |
|
) |
| |
|
static |
Definition at line 133 of file AxStudent.java.
134 if(contact.isValid()) {
135 AxStudent axc =
new AxStudent();
136 ProcedenceId
id =
new ProcedenceId();
137 id.setMemberId(memberId);
138 id.setEntityId(contact.getId());
139 axc.setStudentId(
id);
140 axc.setName(contact.getName());
141 axc.setEmail(contact.getEmail());
142 axc.setActive(!contact.isDeactivated());
143 String serverURL = ElephantContext.getServerUrl(
"http");
144 axc.setFace(Strings.isBlank(contact.getFace()) ?
null : serverURL + contact.getFace());
145 IContactRelation cr = contact.getCompanyRelations().getCompanyRelation();
147 IContact business = cr.getRelatedIContact();
148 BusinessRelation br = (BusinessRelation) cr.getRelation();
149 axc.setCenter(business.getName());
150 axc.setCourse(Phrases.start(cr.getDatesString()).add(br.getDescription()).toString());
151 axc.setCenterFace(Strings.isBlank(business.getFace()) ? null : serverURL + business.getFace());
◆ from() [2/2]
static AxStudent org.turro.alliance.db.entities.AxStudent.from |
( |
long |
memberId, |
|
|
String |
contactId |
|
) |
| |
|
static |
Definition at line 126 of file AxStudent.java.
127 if(!Strings.isBlank(contactId)) {
128 return from(memberId, Contacts.getContactById(contactId));
static AxStudent from(long memberId, String contactId)
◆ fromJson()
static AxStudent org.turro.alliance.db.entities.AxStudent.fromJson |
( |
JsonValue |
value | ) |
|
|
static |
Definition at line 183 of file AxStudent.java.
184 return IJSONizable.fromJson(value.toString(), AxStudent.class);
◆ getCenter()
String org.turro.alliance.db.entities.AxStudent.getCenter |
( |
| ) |
|
◆ getCenterFace()
String org.turro.alliance.db.entities.AxStudent.getCenterFace |
( |
| ) |
|
◆ getCourse()
String org.turro.alliance.db.entities.AxStudent.getCourse |
( |
| ) |
|
◆ getEmail()
String org.turro.alliance.db.entities.AxStudent.getEmail |
( |
| ) |
|
◆ getFace()
String org.turro.alliance.db.entities.AxStudent.getFace |
( |
| ) |
|
◆ getId()
String org.turro.alliance.db.entities.AxStudent.getId |
( |
| ) |
|
◆ getName()
String org.turro.alliance.db.entities.AxStudent.getName |
( |
| ) |
|
◆ getStudentId()
ProcedenceId org.turro.alliance.db.entities.AxStudent.getStudentId |
( |
| ) |
|
◆ hashCode()
int org.turro.alliance.db.entities.AxStudent.hashCode |
( |
| ) |
|
Definition at line 190 of file AxStudent.java.
192 hash = 83 * hash + Objects.hashCode(this.studentId);
◆ isActive()
boolean org.turro.alliance.db.entities.AxStudent.isActive |
( |
| ) |
|
◆ isEmpty()
boolean org.turro.alliance.db.entities.AxStudent.isEmpty |
( |
| ) |
|
◆ setActive()
void org.turro.alliance.db.entities.AxStudent.setActive |
( |
boolean |
active | ) |
|
◆ setCenter()
void org.turro.alliance.db.entities.AxStudent.setCenter |
( |
String |
center | ) |
|
◆ setCenterFace()
void org.turro.alliance.db.entities.AxStudent.setCenterFace |
( |
String |
centerFace | ) |
|
◆ setCourse()
void org.turro.alliance.db.entities.AxStudent.setCourse |
( |
String |
course | ) |
|
◆ setEmail()
void org.turro.alliance.db.entities.AxStudent.setEmail |
( |
String |
email | ) |
|
◆ setFace()
void org.turro.alliance.db.entities.AxStudent.setFace |
( |
String |
face | ) |
|
◆ setName()
void org.turro.alliance.db.entities.AxStudent.setName |
( |
String |
name | ) |
|
◆ setStudentId()
void org.turro.alliance.db.entities.AxStudent.setStudentId |
( |
ProcedenceId |
studentId | ) |
|
◆ toJson() [1/2]
String org.turro.alliance.db.entities.AxStudent.toJson |
( |
| ) |
|
◆ toJson() [2/2]
String org.turro.alliance.db.entities.AxStudent.toJson |
( |
Map< String, Object > |
properties | ) |
|
The documentation for this class was generated from the following file: