@Controller @RequestMapping(value="VIEW") public class AdminTopicController extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SORT_STRATEGY |
static String |
PREFERENCE_SORT_STRATEGY |
| 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) |
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
public static final String DEFAULT_SORT_STRATEGY
@RequestMapping(params="action=addTopic") public String showAddTopicForm(@RequestParam(value="edit",required=false) String topicIdStr, org.springframework.ui.Model model) throws javax.portlet.PortletException
topicIdStr - model - 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 - result - status - request - response - 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 - response - 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 - request - model - NumberFormatExceptionjavax.portlet.PortletExceptionpublic void setAnnouncementService(IAnnouncementService announcementService)
announcementService - the announcementService to setCopyright © 2017 Jasig, Inc.. All Rights Reserved.