Package org.apereo.cas.mgmt.controller
Class SubmitController
- java.lang.Object
-
- org.apereo.cas.mgmt.controller.SubmitController
-
@RestController("submitController") @RequestMapping(path="api/submit", produces="application/json") public class SubmitController extends java.lang.ObjectController to handle submit requests.- Since:
- 6.0
-
-
Constructor Summary
Constructors Constructor Description SubmitController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrevertSubmit(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String branchName)Method will revert a submitted pull request from a user's repository if it has been rejected by an admin.voidsubmitPull(javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request, java.lang.String msg)Method commits the working dir of the user and creates a submit branch that is made into a pull request.java.util.List<org.apereo.cas.mgmt.domain.BranchData>submits(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Method will create and return a list of branches that have been submitted as pull request by users.
-
-
-
Method Detail
-
submitPull
@PostMapping public void submitPull(javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request, @RequestBody java.lang.String msg)Method commits the working dir of the user and creates a submit branch that is made into a pull request.- Parameters:
response- - HttpServletResponserequest- - HttpServletRequestmsg- - message from user
-
submits
@GetMapping public java.util.List<org.apereo.cas.mgmt.domain.BranchData> submits(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Method will create and return a list of branches that have been submitted as pull request by users.- Parameters:
request- - HttpServletRequestresponse- - HttpServletResponse- Returns:
- - List of BranchData
-
revertSubmit
@GetMapping("revert/{bracnch}") @ResponseStatus(OK) public void revertSubmit(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, @PathVariable java.lang.String branchName)Method will revert a submitted pull request from a user's repository if it has been rejected by an admin.- Parameters:
request- - HttpServletRequestresponse- - HttpServletResponsebranchName- - Name of the pull requet
-
-