- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 47 of file Publication.java.
◆ entityId()
Object org.turro.publication.entity.Publication.entityId |
( |
| ) |
|
◆ getAuthor()
String org.turro.publication.entity.Publication.getAuthor |
( |
| ) |
|
◆ getBody()
String org.turro.publication.entity.Publication.getBody |
( |
| ) |
|
◆ getContactAuthor()
IContact org.turro.publication.entity.Publication.getContactAuthor |
( |
| ) |
|
Definition at line 299 of file Publication.java.
300 if(_contact ==
null) {
301 _contact = Contacts.getContactById(idContact);
◆ getContent()
String org.turro.publication.entity.Publication.getContent |
( |
| ) |
|
Helpers
Definition at line 282 of file Publication.java.
283 return (Strings.isBlank(summary) ?
"" : summary) +
284 (Strings.isBlank(body) ?
"" : body);
◆ getCreation()
Date org.turro.publication.entity.Publication.getCreation |
( |
| ) |
|
◆ getDate()
Date org.turro.publication.entity.Publication.getDate |
( |
| ) |
|
◆ getDateStr()
String org.turro.publication.entity.Publication.getDateStr |
( |
| ) |
|
◆ getId()
Long org.turro.publication.entity.Publication.getId |
( |
| ) |
|
◆ getIdContact()
String org.turro.publication.entity.Publication.getIdContact |
( |
| ) |
|
◆ getLang()
String org.turro.publication.entity.Publication.getLang |
( |
| ) |
|
◆ getPlainSummary()
String org.turro.publication.entity.Publication.getPlainSummary |
( |
int |
max | ) |
|
◆ getPublicationCategory()
◆ getPublicationGroup()
PublicationGroup org.turro.publication.entity.Publication.getPublicationGroup |
( |
| ) |
|
◆ getReadings()
long org.turro.publication.entity.Publication.getReadings |
( |
| ) |
|
◆ getRetainTill()
Date org.turro.publication.entity.Publication.getRetainTill |
( |
| ) |
|
◆ getSender()
IContact org.turro.publication.entity.Publication.getSender |
( |
| ) |
|
Definition at line 318 of file Publication.java.
319 if(_sender ==
null) {
320 _sender = Contacts.getContactById(senderId);
◆ getSenderId()
String org.turro.publication.entity.Publication.getSenderId |
( |
| ) |
|
◆ getSerializerMappings()
MappingSet org.turro.publication.entity.Publication.getSerializerMappings |
( |
| ) |
|
Definition at line 332 of file Publication.java.
333 MappingSet
set =
new MappingSet();
334 set.addMapping(Publication.class, 1,
335 new String[] {
"id",
"creation",
"date",
"retainTill",
"idContact",
336 "author",
"senderId",
"accepted",
"sent" },
337 new String[] {
"title",
"lang",
"summary",
"body",
"wikiSummary",
338 "wikiBody",
"publicationGroup",
"publicationCategory" });
339 set.addMapping(PublicationGroup.class, 2,
340 new String[] {
"id",
"name" },
342 set.addMapping(PublicationCategory.class, 2,
343 new String[] {
"id",
"name" },
◆ getSummary() [1/2]
String org.turro.publication.entity.Publication.getSummary |
( |
| ) |
|
◆ getSummary() [2/2]
String org.turro.publication.entity.Publication.getSummary |
( |
int |
max | ) |
|
Definition at line 287 of file Publication.java.
288 return HtmlContent.truncate(summary, max);
◆ getTitle()
String org.turro.publication.entity.Publication.getTitle |
( |
| ) |
|
◆ getUnescapedTitle()
String org.turro.publication.entity.Publication.getUnescapedTitle |
( |
| ) |
|
◆ getWikiBody()
String org.turro.publication.entity.Publication.getWikiBody |
( |
| ) |
|
Definition at line 239 of file Publication.java.
240 if(Strings.isBlank(wikiBody) && !Strings.isBlank(body)) {
241 wikiBody =
"$no_wiki\n" + body;
◆ getWikiSummary()
String org.turro.publication.entity.Publication.getWikiSummary |
( |
| ) |
|
Definition at line 227 of file Publication.java.
228 if(Strings.isBlank(wikiSummary) && !Strings.isBlank(summary)) {
229 wikiSummary =
"$no_wiki\n" + summary;
◆ isAccepted()
boolean org.turro.publication.entity.Publication.isAccepted |
( |
| ) |
|
◆ isEmpty()
boolean org.turro.publication.entity.Publication.isEmpty |
( |
| ) |
|
Implements org.turro.jpa.entity.IDaoEntity.
Definition at line 275 of file Publication.java.
276 return publicationCategory ==
null || publicationGroup ==
null || Strings.isBlank(title) ||
277 (Strings.isBlank(summary) && Strings.isBlank(wikiSummary));
◆ isSent()
boolean org.turro.publication.entity.Publication.isSent |
( |
| ) |
|
◆ setAccepted()
void org.turro.publication.entity.Publication.setAccepted |
( |
boolean |
accepted | ) |
|
◆ setAuthor()
void org.turro.publication.entity.Publication.setAuthor |
( |
String |
author | ) |
|
◆ setBody()
void org.turro.publication.entity.Publication.setBody |
( |
String |
body | ) |
|
◆ setContactAuthor()
void org.turro.publication.entity.Publication.setContactAuthor |
( |
IContact |
contact | ) |
|
Definition at line 306 of file Publication.java.
308 idContact = _contact !=
null ? _contact.
getId() :
null;
309 author = _contact !=
null ? _contact.
getName() :
null;
◆ setCreation()
void org.turro.publication.entity.Publication.setCreation |
( |
Date |
creation | ) |
|
◆ setDate()
void org.turro.publication.entity.Publication.setDate |
( |
Date |
date | ) |
|
◆ setId()
void org.turro.publication.entity.Publication.setId |
( |
Long |
id | ) |
|
◆ setIdContact()
void org.turro.publication.entity.Publication.setIdContact |
( |
String |
idContact | ) |
|
◆ setLang()
void org.turro.publication.entity.Publication.setLang |
( |
String |
lang | ) |
|
◆ setPublicationCategory()
void org.turro.publication.entity.Publication.setPublicationCategory |
( |
PublicationCategory |
publicationCategory | ) |
|
Definition at line 171 of file Publication.java.
172 this.publicationCategory = publicationCategory;
◆ setPublicationGroup()
void org.turro.publication.entity.Publication.setPublicationGroup |
( |
PublicationGroup |
publicationGroup | ) |
|
◆ setReadings()
void org.turro.publication.entity.Publication.setReadings |
( |
long |
readings | ) |
|
◆ setRetainTill()
void org.turro.publication.entity.Publication.setRetainTill |
( |
Date |
retainTill | ) |
|
◆ setSender()
void org.turro.publication.entity.Publication.setSender |
( |
IContact |
contact | ) |
|
◆ setSenderId()
void org.turro.publication.entity.Publication.setSenderId |
( |
String |
senderId | ) |
|
◆ setSent()
void org.turro.publication.entity.Publication.setSent |
( |
boolean |
sent | ) |
|
◆ setSummary()
void org.turro.publication.entity.Publication.setSummary |
( |
String |
summary | ) |
|
◆ setTitle()
void org.turro.publication.entity.Publication.setTitle |
( |
String |
title | ) |
|
◆ setWikiBody()
void org.turro.publication.entity.Publication.setWikiBody |
( |
String |
wikiBody | ) |
|
Definition at line 246 of file Publication.java.
247 this.wikiBody = wikiBody;
248 this.body = WikiCompiler.source(wikiBody).html();
◆ setWikiSummary()
void org.turro.publication.entity.Publication.setWikiSummary |
( |
String |
wikiSummary | ) |
|
Definition at line 234 of file Publication.java.
235 this.wikiSummary = wikiSummary;
236 this.summary = WikiCompiler.source(wikiSummary).html();
◆ updateReadings()
void org.turro.publication.entity.Publication.updateReadings |
( |
Dao |
dao | ) |
|
Readings
Definition at line 261 of file Publication.java.
263 "update Publication set readings = readings + 1 where id = ? and accepted = TRUE",
264 new Object[] {
id });
The documentation for this class was generated from the following file: