◆ doFinally()
void org.turro.forum.www.CreateTopicControl.doFinally |
( |
| ) |
|
|
protected |
◆ getContextPath()
String org.turro.forum.www.CreateTopicControl.getContextPath |
( |
| ) |
|
◆ onCancel()
void org.turro.forum.www.CreateTopicControl.onCancel |
( |
| ) |
|
◆ onSave()
void org.turro.forum.www.CreateTopicControl.onSave |
( |
| ) |
|
Definition at line 65 of file CreateTopicControl.java.
66 Topic topic =
new Topic();
67 String topicText = text.getValue(),
69 if(entityPath !=
null && !Strings.isBlank(topicText) && topicText.length() > 100) {
70 IContact contact = Authentication.getIContact();
71 topic.setText(HTMLEntities.escape(topicText));
72 topic.setCreation(
new Date());
73 topic.setAuthorId(contact.getId());
74 topic.setEntityPath(entityPath);
75 if(!topic.isEmpty()) {
76 topic = getDao().saveObject(topic);
77 UniquePath.normalizeUniquePaths(topic);
78 Forums.markAsUnseenExceptFor(topic, contact);
80 Application.getApplication().sendRedirect(
"/user/forums?" +
81 MarkerHelper.setObfuscatedRightNowPars(
"item=" + topic.getId()));
◆ onTexting()
void org.turro.forum.www.CreateTopicControl.onTexting |
( |
InputEvent |
event | ) |
|
Definition at line 58 of file CreateTopicControl.java.
59 counter.setValue(I_.get(
"Minimum") +
60 " " + event.getValue().length() +
◆ setContextPath()
void org.turro.forum.www.CreateTopicControl.setContextPath |
( |
String |
contextPath | ) |
|
The documentation for this class was generated from the following file: