|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork2.ActionSupport
org.nuiton.web.struts2.BaseAction
org.chorem.pollen.ui.actions.PollenActionSupport
org.chorem.pollen.ui.actions.json.AbstractJSONPaginedAction
org.chorem.pollen.ui.actions.json.GetCreatedPolls
public class GetCreatedPolls
Obtain created polls to put in grid for the connected user.
| Field Summary | |
|---|---|
protected Map<String,Object>[] |
polls
|
| Fields inherited from class org.chorem.pollen.ui.actions.json.AbstractJSONPaginedAction |
|---|
filters, pager |
| Fields inherited from class org.chorem.pollen.ui.actions.PollenActionSupport |
|---|
SAFE_LANGUAGES, serviceContext, serviceFactory, transaction |
| Fields inherited from class com.opensymphony.xwork2.ActionSupport |
|---|
LOG |
| Fields inherited from interface com.opensymphony.xwork2.Action |
|---|
ERROR, INPUT, LOGIN, NONE, SUCCESS |
| Constructor Summary | |
|---|---|
GetCreatedPolls()
|
|
| Method Summary | |
|---|---|
String |
execute()
|
Integer |
getPage()
|
protected Set<String> |
getPollFunctions(org.chorem.pollen.business.persistence.Poll poll)
|
Map<String,Object>[] |
getPolls()
|
Integer |
getRecords()
|
protected String |
getResultId(org.chorem.pollen.business.persistence.Poll poll)
Retrieve the id for result page depends on poll. |
Integer |
getRows()
|
Integer |
getTotal()
|
| Methods inherited from class org.chorem.pollen.ui.actions.json.AbstractJSONPaginedAction |
|---|
getFilterObject, getFilters, getSidx, setFilters, setPage, setRows, setSidx, setSord |
| Methods inherited from class org.nuiton.web.struts2.BaseAction |
|---|
_ |
| Methods inherited from class com.opensymphony.xwork2.ActionSupport |
|---|
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected transient Map<String,Object>[] polls
| Constructor Detail |
|---|
public GetCreatedPolls()
| Method Detail |
|---|
public Map<String,Object>[] getPolls()
public Integer getRows()
getRows in class AbstractJSONPaginedActionpublic Integer getPage()
getPage in class AbstractJSONPaginedActionpublic Integer getTotal()
getTotal in class AbstractJSONPaginedActionpublic Integer getRecords()
getRecords in class AbstractJSONPaginedAction
public String execute()
throws Exception
execute in interface com.opensymphony.xwork2.Actionexecute in class com.opensymphony.xwork2.ActionSupportExceptionprotected Set<String> getPollFunctions(org.chorem.pollen.business.persistence.Poll poll)
protected String getResultId(org.chorem.pollen.business.persistence.Poll poll)
poll.
It's not necessary to use adminId if the poll results are public.
But the adminId is mandatory if the poll is restricted (security).
poll - Poll
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||