|
| PollContentIterator (IConstructor constructor, Writer writer, IContact contact, boolean active, boolean restricted, int page, boolean mail, String pubPath) |
|
boolean | isPublicOnly () |
|
void | setPublicOnly (boolean publicOnly) |
|
boolean | isActiveOnly () |
|
boolean | isRestricted () |
|
String | getVoteURL (PollOption option, int vote) throws Exception |
|
| EntityItemContentIterator (List collection, IConstructor constructor, Writer writer, IContact contact, boolean mail, String contextPath) |
|
String | getContextPath () |
|
IContact | getContact () |
|
boolean | isAllowInterest () |
|
void | setAllowInterest (boolean allowInterest) |
|
boolean | isAllowComments () |
|
void | setAllowComments (boolean allowComments) |
|
boolean | isAllowVotes () |
|
void | setAllowVotes (boolean allowVotes) |
|
boolean | isAllowDescriptions () |
|
void | setAllowDescriptions (boolean allowDescriptions) |
|
boolean | isAllowAttachments () |
|
void | setAllowAttachments (boolean allowAttachments) |
|
boolean | isAllowFiles () |
|
void | setAllowFiles (boolean allowFiles) |
|
boolean | isAllowPolls () |
|
void | setAllowPolls (boolean allowPolls) |
|
boolean | isMail () |
|
Object | getVotesCtrl (E e) |
|
Object | getInterestCtrl (E e) |
|
Object | getCommentsCtrl (E e) |
|
Object | getAttachmentsCtrl (E e) |
|
Object | getFilesCtrl (E e) |
|
Object | getDescriptionsCtrl (E e) |
|
Object | getPollsCtrl (E e) |
|
| CollectionHtmlIterator (List collection, ElephantMarker marker) |
|
| CollectionHtmlIterator (List collection, ElephantMarker marker, Writer writer) |
|
void | setSummaryTemplate (String summaryTemplate) |
|
String | getSummaryTemplate () |
|
void | setFullTemplate (String fullTemplate) |
|
String | getFullTemplate () |
|
boolean | isNavigatorTop () |
|
void | setNavigatorTop (boolean navigatorTop) |
|
boolean | isNavigatorBottom () |
|
void | setNavigatorBottom (boolean navigatorBottom) |
|
boolean | isSearchOption () |
|
void | setSearchOption (boolean searchOption) |
|
boolean | isForceSummary () |
|
void | setForceSummary (boolean forceSummary) |
|
boolean | wantItem () |
|
boolean | isItem () |
|
Object | addAttribute (String key, Object value) |
|
Writer | getWriter () |
|
void | load () |
|
void | forceItem (ID item) |
|
String | getTitle () |
|
Collection< String > | getMetas () |
|
void | render () |
|
boolean | isFirst () |
|
boolean | isLast () |
|
String | renderSearchEngine () |
|
String | renderTree () |
|
String | renderTreeSelection () |
|
boolean | isEmpty () |
|
| CollectionIterator (List< E > collection) |
|
int | getPage () |
|
void | setPage (int page) |
|
void | initClauses () |
|
List< E > | getItems () |
|
int | getTotalCount () |
|
List< E > | getTotalItems () |
|
int | item () |
|
void | current (int value) |
|
int | current () |
|
int | pages () |
|
boolean | beginning () |
|
boolean | end () |
|
void | next () |
|
void | previous () |
|
◆ PollContentIterator()
org.turro.content.PollContentIterator.PollContentIterator |
( |
IConstructor |
constructor, |
|
|
Writer |
writer, |
|
|
IContact |
contact, |
|
|
boolean |
active, |
|
|
boolean |
restricted, |
|
|
int |
page, |
|
|
boolean |
mail, |
|
|
String |
pubPath |
|
) |
| |
Definition at line 51 of file PollContentIterator.java.
52 super(
new ArrayList(PollsUtil.getPolls(contact, active, restricted, page)),
constructor, writer, contact, mail, pubPath);
55 pollsUtil =
new PollsUtil(contact);
◆ doAttachmentsCtrl()
Object org.turro.content.PollContentIterator.doAttachmentsCtrl |
( |
Poll |
e | ) |
|
|
protected |
Definition at line 171 of file PollContentIterator.java.
173 ac.setEntityPath(ElephantPU.getObjectPath(e));
174 ac.setPublicOnly(publicOnly);
◆ doCommentsCtrl()
Object org.turro.content.PollContentIterator.doCommentsCtrl |
( |
Poll |
e | ) |
|
|
protected |
◆ doDescriptionsCtrl()
Object org.turro.content.PollContentIterator.doDescriptionsCtrl |
( |
Poll |
e | ) |
|
|
protected |
◆ doFilesCtrl()
Object org.turro.content.PollContentIterator.doFilesCtrl |
( |
Poll |
e | ) |
|
|
protected |
◆ doInterestCtrl()
Object org.turro.content.PollContentIterator.doInterestCtrl |
( |
Poll |
e | ) |
|
|
protected |
◆ doPollsCtrl()
Object org.turro.content.PollContentIterator.doPollsCtrl |
( |
Poll |
e | ) |
|
|
protected |
◆ doVotesCtrl()
Object org.turro.content.PollContentIterator.doVotesCtrl |
( |
Poll |
e | ) |
|
|
protected |
◆ entity()
Poll org.turro.content.PollContentIterator.entity |
( |
Long |
value | ) |
|
|
protected |
◆ getItemLink()
String org.turro.content.PollContentIterator.getItemLink |
( |
Poll |
e | ) |
|
|
protected |
◆ getOptionTemplate()
static String org.turro.content.PollContentIterator.getOptionTemplate |
( |
Poll |
poll | ) |
|
|
static |
Definition at line 78 of file PollContentIterator.java.
79 if(!poll.isShowParticipants()) {
80 if(poll.isAllowNegatives()) {
86 if(poll.isAllowNegatives()) {
87 return "quadrantOption";
89 return "doodleOption";
◆ getReadAllLink()
String org.turro.content.PollContentIterator.getReadAllLink |
( |
| ) |
|
|
protected |
◆ getRestrictedLink()
String org.turro.content.PollContentIterator.getRestrictedLink |
( |
| ) |
|
|
protected |
◆ getTemplateRoot()
String org.turro.content.PollContentIterator.getTemplateRoot |
( |
| ) |
|
|
protected |
◆ getVoteURL()
String org.turro.content.PollContentIterator.getVoteURL |
( |
PollOption |
option, |
|
|
int |
vote |
|
) |
| throws Exception |
Definition at line 74 of file PollContentIterator.java.
75 return PollAction.createURL(option, Authentication.getIContact(), vote);
◆ isActiveOnly()
boolean org.turro.content.PollContentIterator.isActiveOnly |
( |
| ) |
|
◆ isPublicOnly()
boolean org.turro.content.PollContentIterator.isPublicOnly |
( |
| ) |
|
◆ isRestricted()
boolean org.turro.content.PollContentIterator.isRestricted |
( |
| ) |
|
◆ isValid()
boolean org.turro.content.PollContentIterator.isValid |
( |
Poll |
e | ) |
|
|
protected |
Definition at line 116 of file PollContentIterator.java.
117 if(restricted && e !=
null) {
118 return e.isParticipant();
120 return super.isValid(e);
◆ metas()
Collection<String> org.turro.content.PollContentIterator.metas |
( |
Poll |
e | ) |
|
|
protected |
Definition at line 137 of file PollContentIterator.java.
138 ArrayList<RepositoryFile> files =
new ArrayList<>();
140 if(!SocialImageMap.hasImage(path)) {
141 FileAttach fa =
new FileAttach(ElephantPU.getObjectPath(e));
142 Repository repository = fa.getPublishableRepository(
constructor);
143 files.addAll(repository.getRepositoryFiles(
"*_social.png,*_social.jpg"));
144 files.addAll(repository.getRepositoryFiles(
"*.png,*.jpg"));
146 SocialNet sn =
new SocialNet(path, e.getTitle(), e.getText(), files);
147 return sn.getMetas();
String getItemLink(Poll e)
◆ renderItem()
void org.turro.content.PollContentIterator.renderItem |
( |
ElephantMarker |
marker, |
|
|
Poll |
e, |
|
|
int |
page |
|
) |
| |
|
protected |
Definition at line 104 of file PollContentIterator.java.
106 prepareValues(e, page);
void process(String rootTmpl, String tmpl)
Object put(Object key, Object value)
◆ renderSummary()
void org.turro.content.PollContentIterator.renderSummary |
( |
ElephantMarker |
marker, |
|
|
Poll |
e, |
|
|
int |
page |
|
) |
| |
|
protected |
◆ setPublicOnly()
void org.turro.content.PollContentIterator.setPublicOnly |
( |
boolean |
publicOnly | ) |
|
◆ title()
String org.turro.content.PollContentIterator.title |
( |
Poll |
e | ) |
|
|
protected |
The documentation for this class was generated from the following file: