- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 56 of file Topic.java.
◆ getAuthorId()
| String org.turro.elephant.entities.db.Topic.getAuthorId |
( |
| ) |
|
◆ getContact()
| IContact org.turro.elephant.entities.db.Topic.getContact |
( |
| ) |
|
Definition at line 164 of file Topic.java.
165 return Contacts.getContactById(authorId);
◆ getCreation()
| Date org.turro.elephant.entities.db.Topic.getCreation |
( |
| ) |
|
◆ getEntity()
Definition at line 135 of file Topic.java.
IElephantEntity getController(String entityPath)
◆ getEntityChildren()
| Collection<ITreeEntity> org.turro.elephant.entities.db.Topic.getEntityChildren |
( |
| ) |
|
◆ getEntityParent()
| ITreeEntity org.turro.elephant.entities.db.Topic.getEntityParent |
( |
| ) |
|
◆ getEntityPath()
| String org.turro.elephant.entities.db.Topic.getEntityPath |
( |
| ) |
|
◆ getId()
| Long org.turro.elephant.entities.db.Topic.getId |
( |
| ) |
|
◆ getPostCount()
| long org.turro.elephant.entities.db.Topic.getPostCount |
( |
| ) |
|
Definition at line 182 of file Topic.java.
183 WhereClause wc =
new WhereClause();
184 wc.addClause(
"select count(p) from Post p");
185 wc.addClause(
"where p.uniquePath like concat(:tp, '/%')");
186 wc.addNamedValue(
"tp", uniquePath);
187 return (Long)
new ElephantPU().getSingleResultOrNull(wc);
◆ getPosts() [1/2]
| List<Post> org.turro.elephant.entities.db.Topic.getPosts |
( |
| ) |
|
◆ getPosts() [2/2]
| List<Post> org.turro.elephant.entities.db.Topic.getPosts |
( |
Dao |
dao | ) |
|
Definition at line 146 of file Topic.java.
147 WhereClause wc =
new WhereClause();
148 wc.addClause(
"select p from Post p");
149 wc.addClause(
"where p.topic = :topic");
150 wc.addNamedValue(
"topic",
this);
151 wc.addClause(
"order by creation");
152 return dao.getResultList(wc);
◆ getText()
| String org.turro.elephant.entities.db.Topic.getText |
( |
| ) |
|
◆ getUniquePath()
| String org.turro.elephant.entities.db.Topic.getUniquePath |
( |
| ) |
|
◆ isEmpty()
| boolean org.turro.elephant.entities.db.Topic.isEmpty |
( |
| ) |
|
Definition at line 128 of file Topic.java.
129 return Strings.isBlank(text) || Strings.isBlank(authorId) ||
IElephantEntity getEntity()
◆ isParticipant()
| boolean org.turro.elephant.entities.db.Topic.isParticipant |
( |
IContact |
contact | ) |
|
Definition at line 168 of file Topic.java.
169 if(contact !=
null && contact.isValid() && contact.getId().equals(authorId)) {
173 if(post.isParticipant(contact)) {
178 return new ParticipationInfo(
"/topic/" +
getId(),
"/contact/" + contact.getId(),
179 ParticipationReason.REASON_PARTICIPATE).isChecked();
◆ isSeen() [1/2]
| boolean org.turro.elephant.entities.db.Topic.isSeen |
( |
| ) |
|
◆ isSeen() [2/2]
| boolean org.turro.elephant.entities.db.Topic.isSeen |
( |
IContact |
contact | ) |
|
Definition at line 159 of file Topic.java.
160 return new ParticipationInfo(
"/topic/" +
getId(),
"/contact/" + contact.getId(),
161 ParticipationReason.REASON_SEEN).isChecked();
◆ setAuthorId()
| void org.turro.elephant.entities.db.Topic.setAuthorId |
( |
String |
authorId | ) |
|
Definition at line 106 of file Topic.java.
107 this.authorId = authorId;
◆ setCreation()
| void org.turro.elephant.entities.db.Topic.setCreation |
( |
Date |
creation | ) |
|
Definition at line 114 of file Topic.java.
115 this.creation = creation;
◆ setEntityPath()
| void org.turro.elephant.entities.db.Topic.setEntityPath |
( |
String |
entityPath | ) |
|
Definition at line 88 of file Topic.java.
89 this.entityPath = entityPath;
◆ setId()
| void org.turro.elephant.entities.db.Topic.setId |
( |
Long |
id | ) |
|
◆ setText()
| void org.turro.elephant.entities.db.Topic.setText |
( |
String |
text | ) |
|
◆ setUniquePath()
| void org.turro.elephant.entities.db.Topic.setUniquePath |
( |
String |
uniquePath | ) |
|
Definition at line 98 of file Topic.java.
99 this.uniquePath = uniquePath;
The documentation for this class was generated from the following file: