@Controller @RequestMapping(value="VIEW") public class AdminTopicController extends Object
AdminTopicController class.
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SORT_STRATEGY
Constant
DEFAULT_SORT_STRATEGY="START_DISPLAY_DATE_ASCENDING" |
static String |
PREFERENCE_SORT_STRATEGY
Constant
PREFERENCE_SORT_STRATEGY="AdminTopicController.AnnouncementSortSt"{trunked} |
| Constructor and Description |
|---|
AdminTopicController() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionAddTopicForm(Topic topic,
org.springframework.validation.BindingResult result,
org.springframework.web.bind.support.SessionStatus status,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
Saves the Topic that was submitted
|
void |
actionDeleteTopic(String topicId,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
Delete a specified topic
|
void |
setAnnouncementService(IAnnouncementService announcementService)
Setter for the field
announcementService. |
String |
showAddTopicForm(String topicIdStr,
org.springframework.ui.Model model)
Add topic view controller, creates or fetches the topic for adding or editing
|
String |
showTopic(String topicId,
javax.portlet.RenderRequest request,
org.springframework.ui.Model model)
Show a specified topic management view
|
public static final String PREFERENCE_SORT_STRATEGY
PREFERENCE_SORT_STRATEGY="AdminTopicController.AnnouncementSortSt"{trunked}public static final String DEFAULT_SORT_STRATEGY
DEFAULT_SORT_STRATEGY="START_DISPLAY_DATE_ASCENDING"@RequestMapping(params="action=addTopic") public String showAddTopicForm(@RequestParam(value="edit",required=false) String topicIdStr, org.springframework.ui.Model model) throws javax.portlet.PortletException
@RequestMapping(params="action=addTopic")
public void actionAddTopicForm(@ModelAttribute(value="topic")
Topic topic,
org.springframework.validation.BindingResult result,
org.springframework.web.bind.support.SessionStatus status,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws javax.portlet.PortletException
topic - a Topic object.result - a BindingResult object.status - a SessionStatus object.request - a ActionRequest object.response - a ActionResponse object.javax.portlet.PortletException@RequestMapping(params="action=deleteTopic")
public void actionDeleteTopic(@RequestParam(value="topicId")
String topicId,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response)
throws NumberFormatException,
javax.portlet.PortletException
topicId - a String object.response - a ActionResponse object.request - a ActionRequest object.NumberFormatExceptionjavax.portlet.PortletException@RequestMapping(params="action=showTopic") public String showTopic(@RequestParam(value="topicId") String topicId, javax.portlet.RenderRequest request, org.springframework.ui.Model model) throws NumberFormatException, javax.portlet.PortletException
topicId - a String object.request - a RenderRequest object.model - a Model object.String object.NumberFormatExceptionjavax.portlet.PortletExceptionpublic void setAnnouncementService(IAnnouncementService announcementService)
Setter for the field announcementService.
announcementService - a IAnnouncementService object.Copyright © 2019 Jasig, Inc.. All rights reserved.