org.jasig.portlet.announcements.controller
Class AnnouncementsViewController
java.lang.Object
org.jasig.portlet.announcements.controller.AnnouncementsViewController
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean
@Controller
public class AnnouncementsViewController
- extends Object
- implements org.springframework.beans.factory.InitializingBean
- Author:
- eolsson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PREFERENCE_DISABLE_EDIT
public static final String PREFERENCE_DISABLE_EDIT
- See Also:
- Constant Field Values
PREFERENCE_PAGE_SIZE
public static final String PREFERENCE_PAGE_SIZE
- See Also:
- Constant Field Values
AnnouncementsViewController
public AnnouncementsViewController()
mainView
@RequestMapping(value="VIEW")
public String mainView(org.springframework.ui.Model model,
javax.portlet.RenderRequest request,
@RequestParam(value="from",required=false)
Integer from,
@RequestParam(value="to",required=false)
Integer to)
throws javax.portlet.PortletException
- Main method of this display controller. Calculates which topics should be shown to
this user and which announcements to show from those topics.
- Parameters:
model - request - from - to -
- Returns:
-
- Throws:
javax.portlet.PortletException
displayFullAnnouncement
@RequestMapping(value="VIEW",
params="action=displayFullAnnouncement")
public String displayFullAnnouncement(org.springframework.ui.Model model,
javax.portlet.RenderRequest request,
@RequestParam(value="announcementId")
String announcementId)
throws Exception
- Throws:
Exception
editPreferences
@RequestMapping(value="EDIT")
public String editPreferences(org.springframework.ui.Model model,
javax.portlet.RenderRequest request)
throws javax.portlet.PortletException
- Throws:
javax.portlet.PortletException
savePreferences
@RequestMapping(value="EDIT")
public void savePreferences(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
@RequestParam(value="topicsToUpdate")
Integer topicsToUpdate)
throws javax.portlet.PortletException
- Throws:
javax.portlet.PortletException
getDisplayPublishDate
@ModelAttribute(value="displayPublishDate")
public boolean getDisplayPublishDate(javax.portlet.PortletRequest req)
setTss
public void setTss(ITopicSubscriptionService tss)
setShowDate
public void setShowDate(Boolean showDate)
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
setCm
public void setCm(net.sf.ehcache.CacheManager cm)
Copyright © 2012 Jasig, Inc.. All Rights Reserved.