org.onebusaway.webapp.actions.where
Class StopAction

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by org.onebusaway.presentation.impl.NextActionSupport
          extended by org.onebusaway.webapp.actions.AbstractAction
              extended by org.onebusaway.webapp.actions.where.AbstractWhereAction
                  extended by org.onebusaway.webapp.actions.where.StopAction
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.ModelDriven<WebappArrivalsAndDeparturesModel>, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, Serializable, org.apache.struts2.interceptor.SessionAware
Direct Known Subclasses:
BookmarkAction

public class StopAction
extends AbstractWhereAction
implements com.opensymphony.xwork2.ModelDriven<WebappArrivalsAndDeparturesModel>

See Also:
Serialized Form

Field Summary
protected  List<String> _ids
           
protected  WebappArrivalsAndDeparturesModel _model
           
 
Fields inherited from class org.onebusaway.webapp.actions.AbstractAction
_currentUserService, _transitDataService, _userInteractionLoggingService
 
Fields inherited from class org.onebusaway.presentation.impl.NextActionSupport
_session
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
StopAction()
           
 
Method Summary
 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.webapp.actions.AbstractAction
getCurrentUser, getServiceArea, isAnonymousUser, logUserInteraction, setCurrentUserService, setServiceAreaService, setSession, setTransitDataService, setUserInteractionLoggingService
 
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, 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, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_ids

protected List<String> _ids

_model

protected WebappArrivalsAndDeparturesModel _model
Constructor Detail

StopAction

public StopAction()
Method Detail

setModel

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.


getId

public List<String> getId()

setRoute

public void setRoute(List<String> routeLists)
Supports two styles of URL. It can be comma-seperated, or route= can be given multiple times.


getRoutes

public Set<String> getRoutes()

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 interface com.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 interface com.opensymphony.xwork2.Action
Overrides:
execute in class com.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.



Copyright © 2011 OneBusAway. All Rights Reserved.