Package org.kuali.rice.ken.web.spring
Class NotificationController
java.lang.Object
org.kuali.rice.ken.web.spring.NotificationController
@RequestMapping("/ken")
@Controller("notificationController")
public class NotificationController
extends Object
This class is the controller for the basic notification related actions - viewing, etc.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected NotificationMessageDeliveryServiceprotected NotificationServiceprotected NotificationWorkflowDocumentService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected NotificationMessageDeliverydetermineMessageFromRequest(javax.servlet.http.HttpServletRequest request) This method retrieves the NotificationMessageDelivery given an HttpServletRequest which may contain EITHER a message delivery id or a workflow doc id.org.springframework.web.servlet.ModelAndViewdismissMessage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) This method handles user dismissal of a message.org.springframework.web.servlet.ModelAndViewdisplayHome(javax.servlet.http.HttpServletRequest request) Handles the display of the main home page in the system.org.springframework.web.servlet.ModelAndViewdisplayLookupUsers(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) This method displays the user lookup screen.org.springframework.web.servlet.ModelAndViewdisplayLookupWorkgroups(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) This method displays the workgroup lookup screen.org.springframework.web.servlet.ModelAndViewdisplayNotificationDetail(javax.servlet.http.HttpServletRequest request) This controller handles displaying the appropriate notification details for a specific record.org.springframework.web.servlet.ModelAndViewdisplayNotificationsSent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) This method handles displaying the notifications that an individual sent.org.springframework.web.servlet.ModelAndViewdisplaySearch(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) This method handles displaying the search screen.protected booleanrequestIsFromKEW(javax.servlet.http.HttpServletRequest req) voidsetMessageDeliveryService(NotificationMessageDeliveryService messageDeliveryService) voidsetNotificationService(NotificationService notificationService) void
-
Field Details
-
notificationService
-
notificationWorkflowDocService
@Autowired @Qualifier("notificationWorkflowDocumentService") protected NotificationWorkflowDocumentService notificationWorkflowDocService -
messageDeliveryService
@Autowired @Qualifier("notificationMessageDeliveryService") protected NotificationMessageDeliveryService messageDeliveryService
-
-
Constructor Details
-
NotificationController
public NotificationController()
-
-
Method Details
-
displayHome
@RequestMapping("/Home.form") public org.springframework.web.servlet.ModelAndView displayHome(javax.servlet.http.HttpServletRequest request) Handles the display of the main home page in the system. -
displayNotificationsSent
@RequestMapping("/NotificationsSent.form") public org.springframework.web.servlet.ModelAndView displayNotificationsSent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException This method handles displaying the notifications that an individual sent.- Throws:
javax.servlet.ServletExceptionIOException
-
displaySearch
@RequestMapping("/Search.form") public org.springframework.web.servlet.ModelAndView displaySearch(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException This method handles displaying the search screen.- Throws:
javax.servlet.ServletExceptionIOException
-
displayLookupUsers
@RequestMapping("/LookupUsers.form") public org.springframework.web.servlet.ModelAndView displayLookupUsers(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException This method displays the user lookup screen.- Throws:
javax.servlet.ServletExceptionIOException
-
displayLookupWorkgroups
@RequestMapping("/LookupWorkgroups.form") public org.springframework.web.servlet.ModelAndView displayLookupWorkgroups(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException This method displays the workgroup lookup screen.- Throws:
javax.servlet.ServletExceptionIOException
-
determineMessageFromRequest
protected NotificationMessageDelivery determineMessageFromRequest(javax.servlet.http.HttpServletRequest request) This method retrieves the NotificationMessageDelivery given an HttpServletRequest which may contain EITHER a message delivery id or a workflow doc id. Therefore, this is a "special case" for handling the workflow deliverer.- Parameters:
request- the incomingHttpServletRequest- Returns:
- the
NotificationMessageDeliveryor null if not found
-
requestIsFromKEW
protected boolean requestIsFromKEW(javax.servlet.http.HttpServletRequest req) - Parameters:
req- theHttpServletRequest- Returns:
- whether the incoming request was from the action list
-
displayNotificationDetail
@RequestMapping("/DetailView.form") public org.springframework.web.servlet.ModelAndView displayNotificationDetail(javax.servlet.http.HttpServletRequest request) This controller handles displaying the appropriate notification details for a specific record. -
dismissMessage
@RequestMapping("/DismissMessage.form") public org.springframework.web.servlet.ModelAndView dismissMessage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) This method handles user dismissal of a message. -
setNotificationService
-
setNotificationWorkflowDocumentService
-
setMessageDeliveryService
-