com.mycompany.controller
Class SearchController

java.lang.Object
  extended by com.mycompany.controller.AbstractController
      extended by com.mycompany.controller.SearchController
All Implemented Interfaces:
java.io.Serializable

public class SearchController
extends AbstractController

Controller class for searching for shows and events.

Author:
Ian Hlavats (ian@tarantulaconsulting.com)
See Also:
Serialized Form

Constructor Summary
SearchController()
           
 
Method Summary
 void eventSelected(org.primefaces.event.map.OverlaySelectEvent evt)
           
 java.util.List<City> getCitiesForState()
           
 City getCity()
           
 EventType getEventType()
           
 java.lang.String getKeyword()
           
 java.lang.String getMapCenter()
           
 java.lang.Integer getMapZoom()
           
 int getMaxResults()
           
 ProvinceState getProvinceState()
           
 java.util.List<ProvinceState> getProvinceStates()
           
 org.primefaces.model.map.MapModel getSearchResultsModel()
           
 Event getSelectedEvent()
           
 void init(javax.faces.event.ComponentSystemEvent event)
           
 boolean isAlcoholPermitted()
           
 boolean isNoCoverCharge()
           
 boolean isOutdoorVenue()
           
 void search(javax.faces.event.ActionEvent evt)
          This method searches the database for events.
 void setAlcoholPermitted(boolean alcoholPermitted)
           
 void setCity(City city)
           
 void setCountryService(CountryService countryService)
           
 void setEventService(EventService eventService)
           
 void setEventType(EventType eventType)
           
 void setKeyword(java.lang.String keyword)
           
 void setMaxResults(int maxResults)
           
 void setNoCoverCharge(boolean noCoverCharge)
           
 void setOutdoorVenue(boolean outdoorVenue)
           
 void setProvinceState(ProvinceState state)
           
 void setSelectedEvent(Event selectedEvent)
           
 
Methods inherited from class com.mycompany.controller.AbstractController
setUserSession
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchController

public SearchController()
Method Detail

eventSelected

public void eventSelected(org.primefaces.event.map.OverlaySelectEvent evt)

getCitiesForState

public java.util.List<City> getCitiesForState()

getCity

public City getCity()

getEventType

public EventType getEventType()

getKeyword

public java.lang.String getKeyword()

getMapCenter

public java.lang.String getMapCenter()

getMapZoom

public java.lang.Integer getMapZoom()

getMaxResults

public int getMaxResults()

getProvinceState

public ProvinceState getProvinceState()

getProvinceStates

public java.util.List<ProvinceState> getProvinceStates()

getSearchResultsModel

public org.primefaces.model.map.MapModel getSearchResultsModel()

getSelectedEvent

public Event getSelectedEvent()

init

public void init(javax.faces.event.ComponentSystemEvent event)

isAlcoholPermitted

public boolean isAlcoholPermitted()

isNoCoverCharge

public boolean isNoCoverCharge()

isOutdoorVenue

public boolean isOutdoorVenue()

search

public void search(javax.faces.event.ActionEvent evt)
This method searches the database for events.

Parameters:
evt -

setAlcoholPermitted

public void setAlcoholPermitted(boolean alcoholPermitted)

setCity

public void setCity(City city)

setCountryService

public void setCountryService(CountryService countryService)

setEventService

public void setEventService(EventService eventService)

setEventType

public void setEventType(EventType eventType)

setKeyword

public void setKeyword(java.lang.String keyword)

setMaxResults

public void setMaxResults(int maxResults)

setNoCoverCharge

public void setNoCoverCharge(boolean noCoverCharge)

setOutdoorVenue

public void setOutdoorVenue(boolean outdoorVenue)

setProvinceState

public void setProvinceState(ProvinceState state)

setSelectedEvent

public void setSelectedEvent(Event selectedEvent)