public class PollenActionSupport
extends org.nuiton.web.struts2.BaseAction
implements org.apache.struts2.interceptor.ServletRequestAware
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
SAFE_LANGUAGES |
protected PollenServiceContext |
serviceContext |
protected PollenServiceFactory |
serviceFactory
Provides a way to get a service.
|
protected org.nuiton.topia.TopiaContext |
transaction |
| Constructor and Description |
|---|
PollenActionSupport() |
PollenActionSupport(PageSkin skin) |
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getFormatted, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validateprotected transient PollenServiceFactory serviceFactory
getService(Class) instead.protected transient PollenServiceContext serviceContext
protected transient org.nuiton.topia.TopiaContext transaction
public PollenActionSupport()
public PollenActionSupport(PageSkin skin)
public static PollenApplicationContext getPollenApplicationContext()
public PollenConfiguration getConfiguration()
public final PageSkin getSkin()
public final String getPageLogo()
public final String getJqueryTheme()
public PollenSession getPollenSession()
public UserAccount getPollenUserAccount()
public boolean isUserLoggued()
public boolean isUserAdmin()
public static String getApplicationVersion()
public URL getApplicationUrl()
public final void setServletRequest(javax.servlet.http.HttpServletRequest request)
setServletRequest in interface org.apache.struts2.interceptor.ServletRequestAwarerequest - the http request to set (can not be null)ServletRequestAwarepublic final void setParameters(Map<String,String[]> parameters)
ParameterAware contract.parameters - paramters of the request (can not be null)ParameterAwarepublic final void setPollenUserSecurityContext(PollenUserSecurityContext pollenUserSecurityContext)
PollenUserSecurityAware contract.pollenUserSecurityContext - pollen security context to set (can not be null)PollenUserSecurityAwarepublic PollUri getPollUri()
PollUri from the incoming request.
If the action is PollenUserSecurityAware, then will take it
from PollenUserSecurityContext.getPollUri(), otherwise will
return null (this means you must override this method in your action.public VoteCountingFactory getVoteCountingFactory()
public org.nuiton.topia.TopiaContext getTransaction()
public String getSafeLanguage()
public String getCurrentUrl()
public void addFlashMessage(String message)
public void addFlashError(String message)
public void addFlashWarning(String message)
public Collection<String> getFlashMessages()
public Collection<String> getFlashErrors()
public Collection<String> getFlashWarnings()
public boolean hasFlashMessages()
public boolean hasFlashErrors()
public boolean hasFlashWarnings()
public void clearFlashMessages()
public void clearFlashErrors()
public boolean hasAnyErrors()
protected final PollService getPollService()
protected final PollUrlService getPollUrlService()
protected final PollExportService getPollExportService()
protected final PollVoteCountingService getPollVoteCountingService()
protected final VoteService getVoteService()
protected final PollCommentService getPollCommentService()
protected final PollFeedService getPollFeedService()
protected final UserService getUserService()
protected final FavoriteService getFavoriteService()
protected final PreventRuleService getPreventRuleService()
protected final SecurityService getSecurityService()
protected final <S extends PollenServiceSupport> S getService(Class<S> serviceType)
serviceType.S - type of the required serviceserviceType - type of the required serviceprotected boolean isGetMethod()
request must not be null.true if incoming request uses GET method.protected final PollenUserSecurityContext getUserSecurityContext()
securityContext must not be null
(concrete action should implements PollenUserSecurityAware).PollenUserSecurityContext,
PollenUserSecurityAwareprotected final Map<String,String[]> getParameters()
parameters must not be null
(concrete action should implements ParameterAware).ParameterAwareprotected VoteCounting getVoteCounting(Poll poll)
protected PollenServiceContext getServiceContext()
Copyright © 2009-2012 CodeLutin. All Rights Reserved.