Class StopAction
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- org.onebusaway.presentation.impl.NextActionSupport
-
- org.onebusaway.enterprise.webapp.actions.where.AbstractAction
-
- org.onebusaway.enterprise.webapp.actions.where.AbstractWhereAction
-
- org.onebusaway.enterprise.webapp.actions.where.StopAction
-
- All Implemented Interfaces:
com.opensymphony.xwork2.Action
,com.opensymphony.xwork2.interceptor.ValidationAware
,com.opensymphony.xwork2.LocaleProvider
,com.opensymphony.xwork2.ModelDriven<WebappArrivalsAndDeparturesModel>
,com.opensymphony.xwork2.TextProvider
,com.opensymphony.xwork2.Validateable
,Serializable
,org.apache.struts2.interceptor.SessionAware
public class StopAction extends AbstractWhereAction implements com.opensymphony.xwork2.ModelDriven<WebappArrivalsAndDeparturesModel>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>
_ids
protected WebappArrivalsAndDeparturesModel
_model
-
Fields inherited from class org.onebusaway.enterprise.webapp.actions.where.AbstractAction
_currentUserService, _transitDataService
-
Fields inherited from class org.onebusaway.presentation.impl.NextActionSupport
_session
-
-
Constructor Summary
Constructors Constructor Description StopAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
execute()
List<String>
getId()
WebappArrivalsAndDeparturesModel
getModel()
Set<String>
getRoutes()
String
getStopAndRouteIdsAsUrlParams()
Build URL of stops and routes for the Refined Search page.String
getTitle()
boolean
isShowArrivals()
boolean
isShowTitle()
void
setId(List<String> ids)
To give more than one Stop ID, the URL must specify id= more than once.void
setMinutesAfter(int minutesAfter)
void
setMinutesBefore(int minutesBefore)
void
setModel(WebappArrivalsAndDeparturesModel model)
void
setOrder(String order)
void
setRoute(List<String> routeLists)
Supports two styles of URL.void
setShowArrivals(boolean showArrivals)
void
setShowTitle(boolean showTitle)
void
setTime(Date time)
void
setTitle(String title)
boolean
testAgenciesWithDisclaimers(List<AgencyBean> agencies)
-
Methods inherited from class org.onebusaway.enterprise.webapp.actions.where.AbstractAction
getCurrentUser, getServiceArea, isAnonymousUser, setCurrentUserService, setServiceAreaService, setSession, setTransitDataService
-
Methods inherited from class org.onebusaway.presentation.impl.NextActionSupport
clearNextActions, getNextActionOrSuccess, pushNextAction, pushNextAction
-
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocale, getLocaleProvider, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
-
-
-
-
Field Detail
-
_model
protected WebappArrivalsAndDeparturesModel _model
-
-
Method Detail
-
setModel
@Autowired public void setModel(WebappArrivalsAndDeparturesModel model)
-
setId
public void setId(List<String> ids)
To give more than one Stop ID, the URL must specify id= more than once.
-
setRoute
public void setRoute(List<String> routeLists)
Supports two styles of URL. It can be comma-seperated, or route= can be given multiple times.
-
setOrder
public void setOrder(String order)
-
setTime
public void setTime(Date time)
-
setMinutesBefore
public void setMinutesBefore(int minutesBefore)
-
setMinutesAfter
public void setMinutesAfter(int minutesAfter)
-
setShowArrivals
public void setShowArrivals(boolean showArrivals)
-
isShowArrivals
public boolean isShowArrivals()
-
getModel
public WebappArrivalsAndDeparturesModel getModel()
- Specified by:
getModel
in interfacecom.opensymphony.xwork2.ModelDriven<WebappArrivalsAndDeparturesModel>
-
setTitle
public void setTitle(String title)
-
getTitle
public String getTitle()
-
setShowTitle
public void setShowTitle(boolean showTitle)
-
isShowTitle
public boolean isShowTitle()
-
execute
public String execute() throws ServiceException
- Specified by:
execute
in interfacecom.opensymphony.xwork2.Action
- Overrides:
execute
in classcom.opensymphony.xwork2.ActionSupport
- Throws:
ServiceException
-
testAgenciesWithDisclaimers
public boolean testAgenciesWithDisclaimers(List<AgencyBean> agencies)
-
getStopAndRouteIdsAsUrlParams
public String getStopAndRouteIdsAsUrlParams()
Build URL of stops and routes for the Refined Search page.
-
-