@Controller @RequestMapping(value="VIEW") public class AdminAnnouncementController extends Object implements org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ABSTRACT_MAX_LENGTH |
static String |
DEFAULT_TINY_MCE_INITIALIZATION_OPTIONS |
static String |
DEFAULT_USE_ATTACHMENTS |
static String |
PREFERENCE_ABSTRACT_MAX_LENGTH |
static String |
PREFERENCE_ALLOW_EMPTY_MESSAGE |
static String |
PREFERENCE_ALLOW_OPEN_ENDDATE |
static String |
PREFERENCE_TINY_MCE_INITIALIZATION_OPTIONS |
static String |
PREFERENCE_USE_ATTACHMENTS |
| Constructor and Description |
|---|
AdminAnnouncementController() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionAddAnnouncementForm(Announcement announcement,
org.springframework.validation.BindingResult result,
org.springframework.web.bind.support.SessionStatus status,
javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res)
Saves the announcement
|
void |
actionDeleteAnnouncement(Long topicId,
Long annId,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
Handles deletion of announcements
|
void |
afterPropertiesSet() |
boolean |
getAllowEmptyMessage(javax.portlet.PortletRequest req) |
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,
javax.portlet.RenderRequest request,
org.springframework.ui.Model model)
Does all the prep work before showing the form
|
public static final String PREFERENCE_USE_ATTACHMENTS
public static final String DEFAULT_USE_ATTACHMENTS
public static final String PREFERENCE_ALLOW_OPEN_ENDDATE
public static final String PREFERENCE_ALLOW_EMPTY_MESSAGE
public static final String PREFERENCE_ABSTRACT_MAX_LENGTH
public static final String DEFAULT_ABSTRACT_MAX_LENGTH
public static final String PREFERENCE_TINY_MCE_INITIALIZATION_OPTIONS
public static final String DEFAULT_TINY_MCE_INITIALIZATION_OPTIONS
@InitBinder(value="announcement") public void initBinder(org.springframework.web.bind.WebDataBinder binder)
@RequestMapping(params="action=addAnnouncement") public String showAddAnnouncementForm(@RequestParam(value="editId",required=false) Long editId, @RequestParam(value="topicId",required=false) Long topicId, javax.portlet.RenderRequest request, org.springframework.ui.Model model) throws javax.portlet.PortletException
javax.portlet.PortletException@RequestMapping(params="action=addAnnouncement")
public void actionAddAnnouncementForm(@ModelAttribute(value="announcement")
Announcement announcement,
org.springframework.validation.BindingResult result,
org.springframework.web.bind.support.SessionStatus status,
javax.portlet.ActionRequest req,
javax.portlet.ActionResponse res)
throws javax.portlet.PortletException
req - res - javax.portlet.PortletException@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
topicId - annId - response - javax.portlet.PortletExceptionpublic boolean getAllowOpenEndDate(javax.portlet.PortletRequest req)
public boolean getAllowEmptyMessage(javax.portlet.PortletRequest req)
public void setCustomDateFormat(String customDateFormat)
customDateFormat - public void setAnnouncementService(IAnnouncementService announcementService)
announcementService - the announcementService to setCopyright © 2016 Jasig, Inc.. All Rights Reserved.