Class NoteController


  • @RestController("noteController")
    @RequestMapping(path="api/note",
                    produces="application/json")
    public class NoteController
    extends java.lang.Object
    Controller for handling note requests.
    Since:
    6.0
    • Constructor Summary

      Constructors 
      Constructor Description
      NoteController()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addNote​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apereo.cas.mgmt.domain.CNote cnote)
      Method will add the supplied note from the client to the submit request in the repo.
      void getNotes​(javax.servlet.http.HttpServletResponse response, java.lang.String id)
      Method will return all notes that have been added to a submit request.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NoteController

        public NoteController()
    • Method Detail

      • getNotes

        @GetMapping("/{id}")
        public void getNotes​(javax.servlet.http.HttpServletResponse response,
                             @PathVariable
                             java.lang.String id)
        Method will return all notes that have been added to a submit request.
        Parameters:
        response - - HttpServletResponse
        id - - id of note
      • addNote

        @PostMapping
        @ResponseStatus(OK)
        public void addNote​(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response,
                            @RequestBody
                            org.apereo.cas.mgmt.domain.CNote cnote)
        Method will add the supplied note from the client to the submit request in the repo.
        Parameters:
        request - - HttpServletRequest
        response - - HttpServletResponse
        cnote - - CNote