org.jasig.portlet.announcements.controller
Class AdminAnnouncementController
java.lang.Object
org.jasig.portlet.announcements.controller.AdminAnnouncementController
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean
@Controller
@RequestMapping(value="VIEW")
public class AdminAnnouncementController
- extends Object
- implements org.springframework.beans.factory.InitializingBean
- Author:
- eolsson
|
Method Summary |
void |
actionAddAnnouncementForm(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
Announcement announcement,
org.springframework.validation.BindingResult result,
org.springframework.web.bind.support.SessionStatus status)
Saves the announcement |
void |
actionDeleteAnnouncement(Long topicId,
Long annId,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
Handles deletion of announcements |
void |
afterPropertiesSet()
|
boolean |
getAllowOpenEndDate(javax.portlet.PortletRequest req)
|
void |
initBinder(org.springframework.web.bind.WebDataBinder binder)
|
void |
setAnnouncementService(IAnnouncementService announcementService)
|
void |
setCustomDateFormat(String customDateFormat)
When a custom date format is set by Spring, this method converts it immediately to a string of two CSS classes
required by the date picker in the view. |
String |
showAddAnnouncementForm(Long editId,
Long topicId,
org.springframework.ui.Model model)
Does all the prep work before showing the form |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PREFERENCE_ALLOW_OPEN_ENDDATE
public static final String PREFERENCE_ALLOW_OPEN_ENDDATE
- See Also:
- Constant Field Values
AdminAnnouncementController
public AdminAnnouncementController()
initBinder
@InitBinder(value="announcement")
public void initBinder(org.springframework.web.bind.WebDataBinder binder)
showAddAnnouncementForm
@RequestMapping(params="action=addAnnouncement")
public String showAddAnnouncementForm(@RequestParam(value="editId",required=false)
Long editId,
@RequestParam(value="topicId",required=false)
Long topicId,
org.springframework.ui.Model model)
throws javax.portlet.PortletException
- Does all the prep work before showing the form
- Throws:
javax.portlet.PortletException
actionAddAnnouncementForm
@RequestMapping(params="action=addAnnouncement")
public void actionAddAnnouncementForm(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
@ModelAttribute(value="announcement")
Announcement announcement,
org.springframework.validation.BindingResult result,
org.springframework.web.bind.support.SessionStatus status)
throws javax.portlet.PortletException
- Saves the announcement
- Parameters:
newAnn - topicIdStr - request - response - errors -
- Throws:
javax.portlet.PortletException
actionDeleteAnnouncement
@RequestMapping(params="action=deleteAnnouncement")
public void actionDeleteAnnouncement(@RequestParam(value="topicId")
Long topicId,
@RequestParam(value="annId")
Long annId,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws javax.portlet.PortletException
- Handles deletion of announcements
- Parameters:
topicId - annId - response -
- Throws:
javax.portlet.PortletException
getAllowOpenEndDate
public boolean getAllowOpenEndDate(javax.portlet.PortletRequest req)
setCustomDateFormat
public void setCustomDateFormat(String customDateFormat)
- When a custom date format is set by Spring, this method converts it immediately to a string of two CSS classes
required by the date picker in the view.
- Parameters:
customDateFormat -
setAnnouncementService
public void setAnnouncementService(IAnnouncementService announcementService)
- Parameters:
announcementService - the announcementService to set
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
Copyright © 2012 Jasig, Inc.. All Rights Reserved.