@Controller @RequestMapping(value="VIEW") public class AdminAnnouncementController extends Object implements org.springframework.beans.factory.InitializingBean
AdminAnnouncementController class.
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ABSTRACT_MAX_LENGTH
Constant
DEFAULT_ABSTRACT_MAX_LENGTH="255" |
static String |
DEFAULT_TINY_MCE_INITIALIZATION_OPTIONS
Constant
DEFAULT_TINY_MCE_INITIALIZATION_OPTIONS="mode:\"textareas\", editor_selector:\""{trunked} |
static String |
DEFAULT_USE_ATTACHMENTS
Constant
DEFAULT_USE_ATTACHMENTS="true" |
static String |
PREFERENCE_ABSTRACT_MAX_LENGTH
Constant
PREFERENCE_ABSTRACT_MAX_LENGTH="AdminAnnouncementController.abstractTex"{trunked} |
static String |
PREFERENCE_ALLOW_EMPTY_MESSAGE
Constant
PREFERENCE_ALLOW_EMPTY_MESSAGE="AdminAnnouncementController.allowEmptyM"{trunked} |
static String |
PREFERENCE_ALLOW_OPEN_ENDDATE
Constant
PREFERENCE_ALLOW_OPEN_ENDDATE="AdminAnnouncementController.allowOpenEn"{trunked} |
static String |
PREFERENCE_TINY_MCE_INITIALIZATION_OPTIONS
Constant
PREFERENCE_TINY_MCE_INITIALIZATION_OPTIONS="AdminAnnouncementController.tinyMceInit"{trunked} |
static String |
PREFERENCE_USE_ATTACHMENTS
Constant
PREFERENCE_USE_ATTACHMENTS="AdminAnnouncementController.useAttachme"{trunked} |
| 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()
afterPropertiesSet.
|
boolean |
getAllowEmptyMessage(javax.portlet.PortletRequest req)
getAllowEmptyMessage.
|
boolean |
getAllowOpenEndDate(javax.portlet.PortletRequest req)
getAllowOpenEndDate.
|
void |
initBinder(org.springframework.web.bind.WebDataBinder binder)
initBinder.
|
void |
setAnnouncementService(IAnnouncementService announcementService)
Setter for the field
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
PREFERENCE_USE_ATTACHMENTS="AdminAnnouncementController.useAttachme"{trunked}public static final String DEFAULT_USE_ATTACHMENTS
DEFAULT_USE_ATTACHMENTS="true"public static final String PREFERENCE_ALLOW_OPEN_ENDDATE
PREFERENCE_ALLOW_OPEN_ENDDATE="AdminAnnouncementController.allowOpenEn"{trunked}public static final String PREFERENCE_ALLOW_EMPTY_MESSAGE
PREFERENCE_ALLOW_EMPTY_MESSAGE="AdminAnnouncementController.allowEmptyM"{trunked}public static final String PREFERENCE_ABSTRACT_MAX_LENGTH
PREFERENCE_ABSTRACT_MAX_LENGTH="AdminAnnouncementController.abstractTex"{trunked}public static final String DEFAULT_ABSTRACT_MAX_LENGTH
DEFAULT_ABSTRACT_MAX_LENGTH="255"public static final String PREFERENCE_TINY_MCE_INITIALIZATION_OPTIONS
PREFERENCE_TINY_MCE_INITIALIZATION_OPTIONS="AdminAnnouncementController.tinyMceInit"{trunked}public static final String DEFAULT_TINY_MCE_INITIALIZATION_OPTIONS
DEFAULT_TINY_MCE_INITIALIZATION_OPTIONS="mode:\"textareas\", editor_selector:\""{trunked}@InitBinder(value="announcement") public void initBinder(org.springframework.web.bind.WebDataBinder binder)
initBinder.
binder - a WebDataBinder object.@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
@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 - a ActionRequest object.res - a ActionResponse object.announcement - a Announcement object.result - a BindingResult object.status - a SessionStatus object.javax.portlet.PortletException - if any.@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
public boolean getAllowOpenEndDate(javax.portlet.PortletRequest req)
getAllowOpenEndDate.
req - a PortletRequest object.public boolean getAllowEmptyMessage(javax.portlet.PortletRequest req)
getAllowEmptyMessage.
req - a PortletRequest object.public void setCustomDateFormat(String customDateFormat)
customDateFormat - a String object.public void setAnnouncementService(IAnnouncementService announcementService)
Setter for the field announcementService.
announcementService - a IAnnouncementService object.Copyright © 2023 Jasig, Inc.. All rights reserved.