org.jasig.portlet.announcements.controller
Class AdminTopicController

java.lang.Object
  extended by org.jasig.portlet.announcements.controller.AdminTopicController

@Controller
@RequestMapping(value="VIEW")
public class AdminTopicController
extends Object

Author:
eolsson

Constructor Summary
AdminTopicController()
           
 
Method Summary
 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)
           
 void setIncludeJQuery(Boolean includeJQuery)
           
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminTopicController

public AdminTopicController()
Method Detail

showAddTopicForm

@RequestMapping(params="action=addTopic")
public String showAddTopicForm(@RequestParam(value="edit",required=false)
                                              String topicIdStr,
                                              org.springframework.ui.Model model)
                        throws javax.portlet.PortletException
Add topic view controller, creates or fetches the topic for adding or editing

Parameters:
topicIdStr -
model -
Returns:
Throws:
javax.portlet.PortletException

actionAddTopicForm

@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
Saves the Topic that was submitted

Parameters:
topic -
result -
status -
request -
response -
Throws:
javax.portlet.PortletException

actionDeleteTopic

@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
Delete a specified topic

Parameters:
topicId -
response -
Throws:
NumberFormatException
javax.portlet.PortletException

showTopic

@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
Show a specified topic management view

Parameters:
topicId -
request -
model -
Returns:
Throws:
NumberFormatException
javax.portlet.PortletException

setAnnouncementService

public void setAnnouncementService(IAnnouncementService announcementService)
Parameters:
announcementService - the announcementService to set

setIncludeJQuery

public void setIncludeJQuery(Boolean includeJQuery)
Parameters:
includeJQuery - the includeJQuery to set


Copyright © 2012 Jasig, Inc.. All Rights Reserved.