19 package org.turro.user.content;
21 import java.io.Serializable;
22 import java.io.StringWriter;
23 import java.io.Writer;
25 import java.util.TreeSet;
26 import org.turro.action.content.IContentIterator;
27 import org.turro.elephant.context.IConstructor;
28 import org.turro.plugin.contacts.IContact;
29 import org.turro.util.CompareUtil;
37 private static final long serialVersionUID = 9999999L;
39 private transient final IContact contact;
40 private transient final Set<String> tags =
new TreeSet<>();
41 private transient String caption;
42 private transient boolean direct;
43 private transient int priority;
44 private transient String parsedContent;
47 this.contact = contact;
53 return this.getClass().getName();
67 this.priority = priority;
85 this.caption = caption;
93 protected final void addTag(String tag) {
99 if(parsedContent ==
null) {
111 parsedContent = ci.
getWriter().toString();
114 return parsedContent;
119 return parsedContent;
123 parsedContent =
null;
137 return new StringWriter();
149 result = CompareUtil.compare(
getId(), o.
getId());
final void setDirect(boolean direct)
final void setPriority(int priority)
final void setCaption(String caption)
final void addTag(String tag)
AbstractUserContent(IContact contact)
abstract IContentIterator createIterator(IConstructor constructor)
String render(IConstructor constructor)
int compareTo(IElephantUserContent o)
abstract boolean showIfEmpty()
Object addAttribute(String key, Object value)