Package org.kuali.rice.ken.web.spring
Class AdministerNotificationRequestController
java.lang.Object
org.kuali.rice.ken.web.spring.AdministerNotificationRequestController
@RequestMapping("/ken")
@Controller("administerNotificationRequestController")
public class AdministerNotificationRequestController
extends Object
Implements reviewer Approve/Disapprove and initiator Acknowledge of a Notification requests
sent to channels configured with reviewers
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCommand object for this controller -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault command name used for binding command objects: "command"protected NotificationMessageContentServiceprotected org.kuali.rice.kim.api.identity.PersonServiceprotected NotificationRecipientServiceprotected NotificationWorkflowDocumentService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.servlet.ModelAndViewacknowledge(javax.servlet.http.HttpServletRequest request, AdministerNotificationRequestController.AdministerNotificationRequestCommand command) Acknowledge action that acknowledges a notification request disapprovalorg.springframework.web.servlet.ModelAndViewapprove(javax.servlet.http.HttpServletRequest request, AdministerNotificationRequestController.AdministerNotificationRequestCommand command) Approve action that approves a notification requestorg.springframework.web.servlet.ModelAndViewdisapprove(javax.servlet.http.HttpServletRequest request, AdministerNotificationRequestController.AdministerNotificationRequestCommand command) Disapprove action that disapproves a notification requestprotected StringgetCommandName(Object command) Return the command name to use for the given command object.org.kuali.rice.kim.api.identity.PersonServicevoidsetMessageContentService(NotificationMessageContentService notificationMessageContentService) voidsetPersonService(org.kuali.rice.kim.api.identity.PersonService personService) voidsetRecipientService(NotificationRecipientService notificationRecipientService) voidsetWorkflowDocumentService(NotificationWorkflowDocumentService notificationWorkflowDocumentService) org.springframework.web.servlet.ModelAndViewview(javax.servlet.http.HttpServletRequest request, AdministerNotificationRequestController.AdministerNotificationRequestCommand command) View action that displays an approve/disapprove/acknowledge view
-
Field Details
-
DEFAULT_COMMAND_NAME
Default command name used for binding command objects: "command"- See Also:
-
messageContentService
@Autowired @Qualifier("messageContentService") protected NotificationMessageContentService messageContentService -
workflowDocumentService
@Autowired @Qualifier("notificationWorkflowDocumentService") protected NotificationWorkflowDocumentService workflowDocumentService -
recipientService
@Autowired @Qualifier("notificationRecipientService") protected NotificationRecipientService recipientService -
personService
@Autowired @Qualifier("personService") protected org.kuali.rice.kim.api.identity.PersonService personService
-
-
Constructor Details
-
AdministerNotificationRequestController
public AdministerNotificationRequestController()
-
-
Method Details
-
view
@RequestMapping("/AdministerNotificationRequest.form") public org.springframework.web.servlet.ModelAndView view(javax.servlet.http.HttpServletRequest request, @RequestBody AdministerNotificationRequestController.AdministerNotificationRequestCommand command) View action that displays an approve/disapprove/acknowledge view- Parameters:
request- the HttpServletRequestcommand- the command object bound for this Controller- Returns:
- a view ModelAndView
-
approve
@RequestMapping(path="/AdministerNotificationRequest.form", params="approve") public org.springframework.web.servlet.ModelAndView approve(javax.servlet.http.HttpServletRequest request, @RequestBody AdministerNotificationRequestController.AdministerNotificationRequestCommand command) throws javax.servlet.ServletException Approve action that approves a notification request- Parameters:
request- the HttpServletRequestcommand- the command object bound for this Controller- Returns:
- a view ModelAndView
- Throws:
javax.servlet.ServletException- if an error occurs during approval
-
disapprove
@RequestMapping(path="/AdministerNotificationRequest.form", params="disapprove") public org.springframework.web.servlet.ModelAndView disapprove(javax.servlet.http.HttpServletRequest request, @RequestBody AdministerNotificationRequestController.AdministerNotificationRequestCommand command) throws javax.servlet.ServletException Disapprove action that disapproves a notification request- Parameters:
request- the HttpServletRequestcommand- the command object bound for this Controller- Returns:
- a view ModelAndView
- Throws:
javax.servlet.ServletException- if an error occurs during disapproval
-
acknowledge
@RequestMapping(path="/AdministerNotificationRequest.form", params="acknowledge") public org.springframework.web.servlet.ModelAndView acknowledge(javax.servlet.http.HttpServletRequest request, @RequestBody AdministerNotificationRequestController.AdministerNotificationRequestCommand command) throws javax.servlet.ServletException Acknowledge action that acknowledges a notification request disapproval- Parameters:
request- the HttpServletRequestcommand- the command object bound for this Controller- Returns:
- a view ModelAndView
- Throws:
javax.servlet.ServletException- if an error occurs during acknowledgement
-
getCommandName
Return the command name to use for the given command object.Default is "command".
- Parameters:
command- the command object- Returns:
- the command name to use
- See Also:
-
setMessageContentService
public void setMessageContentService(NotificationMessageContentService notificationMessageContentService) -
setWorkflowDocumentService
public void setWorkflowDocumentService(NotificationWorkflowDocumentService notificationWorkflowDocumentService) -
setRecipientService
-
getMessageContentService
-
getWorkflowDocumentService
-
getRecipientService
-
getPersonService
public org.kuali.rice.kim.api.identity.PersonService getPersonService() -
setPersonService
public void setPersonService(org.kuali.rice.kim.api.identity.PersonService personService)
-