- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 43 of file PollIterator.java.
◆ PollIterator()
org.turro.polls.PollIterator.PollIterator |
( |
IConstructor |
constructor, |
|
|
String |
pubPath |
|
) |
| |
Definition at line 49 of file PollIterator.java.
50 super(
new ArrayList(PollsUtil.getMyPolls(Authentication.getIContact())),
new ElephantMarker(
constructor));
51 this.pubPath = pubPath;
52 pollsUtil =
new PollsUtil(Authentication.getIContact());
◆ count()
int org.turro.polls.PollIterator.count |
( |
| ) |
|
◆ entity()
Poll org.turro.polls.PollIterator.entity |
( |
Long |
value | ) |
|
|
protected |
Definition at line 130 of file PollIterator.java.
131 return new ElephantPU().find(Poll.class, value);
◆ getActualParameters()
String org.turro.polls.PollIterator.getActualParameters |
( |
| ) |
|
Definition at line 87 of file PollIterator.java.
88 return Strings.isBlank(actualParameters) ?
"?a=b" : actualParameters;
◆ getOptionTemplate()
static String org.turro.polls.PollIterator.getOptionTemplate |
( |
Poll |
poll | ) |
|
|
static |
Definition at line 95 of file PollIterator.java.
96 if(!poll.isShowParticipants()) {
97 if(poll.isAllowNegatives()) {
103 if(poll.isAllowNegatives()) {
104 return "quadrantOption";
106 return "doodleOption";
◆ getVoteURL()
String org.turro.polls.PollIterator.getVoteURL |
( |
PollOption |
option, |
|
|
int |
vote |
|
) |
| throws Exception |
Definition at line 91 of file PollIterator.java.
92 return PollAction.createURL(option, Authentication.getIContact(), vote);
◆ isActiveOnly()
boolean org.turro.polls.PollIterator.isActiveOnly |
( |
| ) |
|
◆ isPublicOnly()
boolean org.turro.polls.PollIterator.isPublicOnly |
( |
| ) |
|
◆ isRestricted()
boolean org.turro.polls.PollIterator.isRestricted |
( |
| ) |
|
◆ isValid()
boolean org.turro.polls.PollIterator.isValid |
( |
Poll |
e | ) |
|
|
protected |
Definition at line 135 of file PollIterator.java.
136 if(restricted && e !=
null) {
137 return e.isParticipant();
139 return super.isValid(e);
◆ items()
Collection<Poll> org.turro.polls.PollIterator.items |
( |
| ) |
|
◆ metas()
Collection<String> org.turro.polls.PollIterator.metas |
( |
Poll |
e | ) |
|
|
protected |
Definition at line 183 of file PollIterator.java.
184 ArrayList<RepositoryFile> files =
new ArrayList<>();
185 String path = getItemLink(e, 0);
186 if(!SocialImageMap.hasImage(path)) {
187 FileAttach fa =
new FileAttach(ElephantPU.getObjectPath(e));
188 Repository repository = fa.getPublishableRepository(
constructor);
189 files.addAll(repository.getRepositoryFiles(
"*_social.png,*_social.jpg"));
190 files.addAll(repository.getRepositoryFiles(
"*.png,*.jpg"));
192 SocialNet sn =
new SocialNet(path, e.getTitle(), e.getText(), files);
193 return sn.getMetas();
◆ renderItem()
Definition at line 122 of file PollIterator.java.
124 prepareValues(e, page,
false);
126 actualParameters = getPageLink(page);
void process(String rootTmpl, String tmpl)
Object put(Object key, Object value)
◆ renderSummary()
void org.turro.polls.PollIterator.renderSummary |
( |
ElephantMarker |
marker, |
|
|
Poll |
e, |
|
|
int |
page |
|
) |
| |
|
protected |
Definition at line 112 of file PollIterator.java.
115 prepareValues(e, page,
false);
118 actualParameters = getPageLink(page);
String getSummaryTemplate()
◆ setActiveOnly()
void org.turro.polls.PollIterator.setActiveOnly |
( |
boolean |
activeOnly | ) |
|
◆ setPublicOnly()
void org.turro.polls.PollIterator.setPublicOnly |
( |
boolean |
publicOnly | ) |
|
◆ setRestricted()
void org.turro.polls.PollIterator.setRestricted |
( |
boolean |
restricted | ) |
|
◆ title()
String org.turro.polls.PollIterator.title |
( |
Poll |
e | ) |
|
|
protected |
The documentation for this class was generated from the following file: