- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 55 of file Post.java.
◆ getAuthorId()
String org.turro.elephant.entities.db.Post.getAuthorId |
( |
| ) |
|
◆ getContact()
IContact org.turro.elephant.entities.db.Post.getContact |
( |
| ) |
|
Definition at line 181 of file Post.java.
182 return Contacts.getContactById(authorId);
◆ getCreation()
Date org.turro.elephant.entities.db.Post.getCreation |
( |
| ) |
|
◆ getCurrentParent()
IUniquePath org.turro.elephant.entities.db.Post.getCurrentParent |
( |
| ) |
|
◆ getEntityChildren()
Collection<ITreeEntity> org.turro.elephant.entities.db.Post.getEntityChildren |
( |
| ) |
|
◆ getEntityParent()
ITreeEntity org.turro.elephant.entities.db.Post.getEntityParent |
( |
| ) |
|
◆ getId()
Long org.turro.elephant.entities.db.Post.getId |
( |
| ) |
|
◆ getParent()
Post org.turro.elephant.entities.db.Post.getParent |
( |
| ) |
|
◆ getParentTopic()
Topic org.turro.elephant.entities.db.Post.getParentTopic |
( |
| ) |
|
Definition at line 151 of file Post.java.
153 while(post !=
null && post.getTopic() ==
null) {
154 post = post.getParent();
156 return post !=
null ? post.getTopic() :
null;
◆ getPosts() [1/2]
List<Post> org.turro.elephant.entities.db.Post.getPosts |
( |
| ) |
|
◆ getPosts() [2/2]
List<Post> org.turro.elephant.entities.db.Post.getPosts |
( |
Dao |
dao | ) |
|
Definition at line 163 of file Post.java.
164 WhereClause wc =
new WhereClause();
165 wc.addClause(
"select p from Post p");
166 wc.addClause(
"where p.parent = :post");
167 wc.addNamedValue(
"post",
this);
168 wc.addClause(
"order by creation");
169 return dao.getResultList(wc);
◆ getText()
String org.turro.elephant.entities.db.Post.getText |
( |
| ) |
|
◆ getTopic()
Topic org.turro.elephant.entities.db.Post.getTopic |
( |
| ) |
|
◆ getUniquePath()
String org.turro.elephant.entities.db.Post.getUniquePath |
( |
| ) |
|
◆ isEmpty()
boolean org.turro.elephant.entities.db.Post.isEmpty |
( |
| ) |
|
Definition at line 138 of file Post.java.
139 return Strings.isBlank(text) || Strings.isBlank(authorId) ||
140 (parent ==
null && topic ==
null);
◆ isSeen() [1/2]
boolean org.turro.elephant.entities.db.Post.isSeen |
( |
| ) |
|
Definition at line 172 of file Post.java.
173 return isSeen(Authentication.getIContact());
◆ isSeen() [2/2]
boolean org.turro.elephant.entities.db.Post.isSeen |
( |
IContact |
contact | ) |
|
Definition at line 176 of file Post.java.
177 return new ParticipationInfo(
"/post/" +
getId(),
"/contact/" + contact.getId(),
178 ParticipationReason.REASON_SEEN).isChecked();
◆ setAuthorId()
void org.turro.elephant.entities.db.Post.setAuthorId |
( |
String |
authorId | ) |
|
Definition at line 116 of file Post.java.
117 this.authorId = authorId;
◆ setCreation()
void org.turro.elephant.entities.db.Post.setCreation |
( |
Date |
creation | ) |
|
Definition at line 124 of file Post.java.
125 this.creation = creation;
◆ setId()
void org.turro.elephant.entities.db.Post.setId |
( |
Long |
id | ) |
|
◆ setParent()
void org.turro.elephant.entities.db.Post.setParent |
( |
Post |
parent | ) |
|
Definition at line 99 of file Post.java.
100 this.parent = parent;
◆ setText()
void org.turro.elephant.entities.db.Post.setText |
( |
String |
text | ) |
|
◆ setTopic()
void org.turro.elephant.entities.db.Post.setTopic |
( |
Topic |
topic | ) |
|
◆ setUniquePath()
void org.turro.elephant.entities.db.Post.setUniquePath |
( |
String |
uniquePath | ) |
|
Definition at line 108 of file Post.java.
109 this.uniquePath = uniquePath;
The documentation for this class was generated from the following file: