- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 42 of file AxCenter.java.
◆ entityId()
Object org.turro.alliance.db.entities.AxCenter.entityId |
( |
| ) |
|
◆ equals()
boolean org.turro.alliance.db.entities.AxCenter.equals |
( |
Object |
obj | ) |
|
Definition at line 183 of file AxCenter.java.
190 if (getClass() != obj.getClass()) {
193 final AxCenter other = (AxCenter) obj;
194 return Objects.equals(this.centerId, other.centerId);
◆ from() [1/2]
static AxCenter org.turro.alliance.db.entities.AxCenter.from |
( |
long |
memberId, |
|
|
IContact |
contact |
|
) |
| |
|
static |
Definition at line 127 of file AxCenter.java.
128 if(contact.isValid()) {
129 AxCenter axc =
new AxCenter();
130 ProcedenceId
id =
new ProcedenceId();
131 id.setMemberId(memberId);
132 id.setEntityId(contact.getId());
134 axc.setName(contact.getName());
135 axc.setEmail(contact.getEmail());
136 axc.setActive(!contact.isDeactivated());
137 String serverURL = ElephantContext.getServerUrl(
"http");
138 axc.setFace(Strings.isBlank(contact.getFace()) ?
null : serverURL + contact.getFace());
◆ from() [2/2]
static AxCenter org.turro.alliance.db.entities.AxCenter.from |
( |
long |
memberId, |
|
|
String |
contactId |
|
) |
| |
|
static |
Definition at line 120 of file AxCenter.java.
121 if(!Strings.isBlank(contactId)) {
122 return from(memberId, Contacts.getContactById(contactId));
static AxCenter from(long memberId, String contactId)
◆ fromJson()
static AxCenter org.turro.alliance.db.entities.AxCenter.fromJson |
( |
JsonValue |
value | ) |
|
|
static |
Definition at line 169 of file AxCenter.java.
170 return IJSONizable.fromJson(value.toString(), AxCenter.class);
◆ getCenterId()
ProcedenceId org.turro.alliance.db.entities.AxCenter.getCenterId |
( |
| ) |
|
◆ getCourses()
Iterable<String> org.turro.alliance.db.entities.AxCenter.getCourses |
( |
| ) |
|
Definition at line 108 of file AxCenter.java.
109 return SqlClause.select(
"distinct c.course").from(
"AxStudent c")
110 .where().equal(
"c.center", name)
111 .and().equal(
"c.studentId.memberId", centerId.
getMemberId())
112 .dao(
new AlliancePU())
113 .stream(String.class)
114 .filter(s -> !Strings.isBlank(s))
◆ getEmail()
String org.turro.alliance.db.entities.AxCenter.getEmail |
( |
| ) |
|
◆ getFace()
String org.turro.alliance.db.entities.AxCenter.getFace |
( |
| ) |
|
◆ getId()
String org.turro.alliance.db.entities.AxCenter.getId |
( |
| ) |
|
◆ getName()
String org.turro.alliance.db.entities.AxCenter.getName |
( |
| ) |
|
◆ getStudents()
Iterable<AxStudent> org.turro.alliance.db.entities.AxCenter.getStudents |
( |
| ) |
|
Definition at line 100 of file AxCenter.java.
101 return SqlClause.select(
"c").from(
"AxStudent c")
102 .where().equal(
"c.center", name)
103 .and().equal(
"c.studentId.memberId", centerId.
getMemberId())
104 .dao(
new AlliancePU())
105 .resultList(AxStudent.class);
◆ hashCode()
int org.turro.alliance.db.entities.AxCenter.hashCode |
( |
| ) |
|
Definition at line 176 of file AxCenter.java.
178 hash = 83 * hash + Objects.hashCode(this.centerId);
◆ isActive()
boolean org.turro.alliance.db.entities.AxCenter.isActive |
( |
| ) |
|
◆ isEmpty()
boolean org.turro.alliance.db.entities.AxCenter.isEmpty |
( |
| ) |
|
◆ setActive()
void org.turro.alliance.db.entities.AxCenter.setActive |
( |
boolean |
active | ) |
|
◆ setCenterId()
void org.turro.alliance.db.entities.AxCenter.setCenterId |
( |
ProcedenceId |
centerId | ) |
|
◆ setEmail()
void org.turro.alliance.db.entities.AxCenter.setEmail |
( |
String |
email | ) |
|
◆ setFace()
void org.turro.alliance.db.entities.AxCenter.setFace |
( |
String |
face | ) |
|
◆ setName()
void org.turro.alliance.db.entities.AxCenter.setName |
( |
String |
name | ) |
|
◆ toJson() [1/2]
String org.turro.alliance.db.entities.AxCenter.toJson |
( |
| ) |
|
◆ toJson() [2/2]
String org.turro.alliance.db.entities.AxCenter.toJson |
( |
Map< String, Object > |
properties | ) |
|
The documentation for this class was generated from the following file: