@Controller @RequestMapping(value="VIEW") public class AnnouncementsViewController extends Object implements org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SORT_STRATEGY |
static String |
NOTIFICATION_NAMESPACE |
static String |
NOTIFICATION_QUERY_LOCAL_NAME |
static QName |
NOTIFICATION_QUERY_QNAME |
static String |
NOTIFICATION_QUERY_QNAME_STRING |
static String |
NOTIFICATION_RESULT_LOCAL_NAME |
static QName |
NOTIFICATION_RESULT_QNAME |
static String |
NOTIFICATION_RESULT_QNAME_STRING |
static String |
PREFERENCE_DISABLE_EDIT |
static String |
PREFERENCE_DISPLAY_STARTDATE |
static String |
PREFERENCE_HIDE_ABSTRACT |
static String |
PREFERENCE_PAGE_SIZE |
static String |
PREFERENCE_SCROLLING_DISPLAY_HEIGHT_PIXELS |
static String |
PREFERENCE_SORT_STRATEGY |
static String |
PREFERENCE_SYNDICATE_TOPICS_ANNOUNCEMENTS_DISPLAY_FNAME |
static String |
PREFERENCE_SYNDICATE_TOPICS_AS_NOTIFICATIONS |
static String |
PREFERENCE_USE_SCROLLING_DISPLAY |
| Constructor and Description |
|---|
AnnouncementsViewController() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
String |
displayFullAnnouncement(org.springframework.ui.Model model,
javax.portlet.RenderRequest request,
String announcementId) |
String |
displayFullAnnouncementHistory(org.springframework.ui.Model model,
javax.portlet.RenderRequest request,
String announcementId) |
String |
displayHistory(org.springframework.ui.Model model,
javax.portlet.RenderRequest request) |
boolean |
getDisplayPublishDate(javax.portlet.PortletRequest req) |
int |
getPageSize(javax.portlet.PortletRequest req) |
int |
getScrollingDisplayHeightPixels(javax.portlet.PortletRequest req) |
boolean |
getUseScrollingDisplay(javax.portlet.PortletRequest req) |
boolean |
isGuest(javax.portlet.PortletRequest req) |
String |
mainView(org.springframework.ui.Model model,
javax.portlet.RenderRequest request,
Integer from,
Integer to)
Main method of this display controller.
|
void |
setCm(org.springframework.cache.ehcache.EhCacheCacheManager cm) |
void |
setTss(ITopicSubscriptionService tss) |
void |
syndicateAnnouncementsAsNotifications(javax.portlet.EventRequest req,
javax.portlet.EventResponse res) |
public static final String PREFERENCE_DISPLAY_STARTDATE
public static final String PREFERENCE_DISABLE_EDIT
public static final String PREFERENCE_PAGE_SIZE
public static final String PREFERENCE_SORT_STRATEGY
public static final String PREFERENCE_USE_SCROLLING_DISPLAY
public static final String PREFERENCE_SCROLLING_DISPLAY_HEIGHT_PIXELS
public static final String PREFERENCE_HIDE_ABSTRACT
public static final String PREFERENCE_SYNDICATE_TOPICS_AS_NOTIFICATIONS
public static final String PREFERENCE_SYNDICATE_TOPICS_ANNOUNCEMENTS_DISPLAY_FNAME
public static final String DEFAULT_SORT_STRATEGY
public static final String NOTIFICATION_NAMESPACE
public static final String NOTIFICATION_QUERY_LOCAL_NAME
public static final QName NOTIFICATION_QUERY_QNAME
public static final String NOTIFICATION_QUERY_QNAME_STRING
public static final String NOTIFICATION_RESULT_LOCAL_NAME
public static final QName NOTIFICATION_RESULT_QNAME
public static final String NOTIFICATION_RESULT_QNAME_STRING
@RenderMapping 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
model - request - from - javax.portlet.PortletException@RenderMapping(params="action=displayFullAnnouncement") public String displayFullAnnouncement(org.springframework.ui.Model model, javax.portlet.RenderRequest request, @RequestParam(value="announcementId") String announcementId) throws Exception
Exception@EventMapping(value="{https://source.jasig.org/schemas/portlet/notification}NotificationQuery")
public void syndicateAnnouncementsAsNotifications(javax.portlet.EventRequest req,
javax.portlet.EventResponse res)
throws javax.portlet.PortletException
javax.portlet.PortletException@ModelAttribute(value="displayPublishDate") public boolean getDisplayPublishDate(javax.portlet.PortletRequest req)
public void setTss(ITopicSubscriptionService tss)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void setCm(org.springframework.cache.ehcache.EhCacheCacheManager cm)
@RenderMapping(params="action=displayFullAnnouncementHistory") public String displayFullAnnouncementHistory(org.springframework.ui.Model model, javax.portlet.RenderRequest request, @RequestParam(value="announcementId") String announcementId) throws Exception
Exception@RenderMapping(params="action=displayHistory") public String displayHistory(org.springframework.ui.Model model, javax.portlet.RenderRequest request) throws Exception
Exception@ModelAttribute(value="increment") public int getPageSize(javax.portlet.PortletRequest req)
@ModelAttribute(value="isGuest") public boolean isGuest(javax.portlet.PortletRequest req)
@ModelAttribute(value="useScrollingDisplay") public boolean getUseScrollingDisplay(javax.portlet.PortletRequest req)
@ModelAttribute(value="scrollingDisplayHeightPixels") public int getScrollingDisplayHeightPixels(javax.portlet.PortletRequest req)
Copyright © 2016 Jasig, Inc.. All Rights Reserved.