org.jasig.portlet.emailpreview.controller
Class ViewSelectorDefault
java.lang.Object
org.jasig.portlet.emailpreview.controller.ViewSelectorDefault
@Service
public class ViewSelectorDefault
- extends Object
ViewSelectorDefaultImpl provides a default implementation of IViewSelector
that returns JSP view names based on a combination of the browser user agent
string and the portlet window state. Requests which indicate that the user
is interacting with the portlet via a mobile device, or that the portlet is
currently not in maximized mode will result in a "narrow" view of the
calendar. Non-mobile devices using the portlet in the maximized window state
will be shown the "wide" view of the portlet.
- Version:
- $Revision: 47637 $
- Author:
- Jen Bourey
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewSelectorDefault
public ViewSelectorDefault()
setMobileDeviceRegexes
public void setMobileDeviceRegexes(List<String> patterns)
- Set a list of regex patterns for user agents which should be considered
to be mobile devices.
- Parameters:
patterns -
getEmailPreviewViewName
public EmailSummaryController.View getEmailPreviewViewName(javax.portlet.PortletRequest request)
getEventListViewName
public String getEventListViewName(javax.portlet.PortletRequest request)
Copyright © 2013 Jasig. All Rights Reserved.