@Controller @VisitRefer(refer="decision-management-user") @RequestMapping(value="/{version}") public class DepartmentResource extends java.lang.Object
构造器和说明 |
---|
DepartmentResource() |
限定符和类型 | 方法和说明 |
---|---|
Response |
addDepartment(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
java.lang.String pId,
java.lang.String depName) |
Response |
deleteDepartment(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
java.lang.String departmentId) |
Response |
editDepartment(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
java.lang.String departmentId,
java.lang.String depName) |
Response |
getDepartmentsUnderParentDepartment(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
java.lang.String pId) |
Response |
getDepartmentTree(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version) |
Response |
getRootDepartment(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version) |
Response |
searchDepartment(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
java.lang.String keyword) |
@RequestMapping(value="/department/{pId}/{depName}", method=POST) @ResponseBody public Response addDepartment(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @PathVariable(value="pId") java.lang.String pId, @FinePathVariable(value="depName") java.lang.String depName) throws java.lang.Exception
java.lang.Exception
@RequestMapping(value="/department/{departmentId}/{depName}", method=PUT) @ResponseBody public Response editDepartment(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @PathVariable(value="departmentId") java.lang.String departmentId, @FinePathVariable(value="depName") java.lang.String depName) throws java.lang.Exception
java.lang.Exception
@RequestMapping(value="/department/{departmentId}", method=DELETE) @ResponseBody public Response deleteDepartment(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @PathVariable(value="departmentId") java.lang.String departmentId) throws java.lang.Exception
java.lang.Exception
@RequestMapping(value="/department/root", method=GET) @VisitRefer(required=false) @ResponseBody public Response getRootDepartment(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version) throws java.lang.Exception
java.lang.Exception
@RequestMapping(value="/departments/{pId}", method=GET) @VisitRefer(required=false) @ResponseBody public Response getDepartmentsUnderParentDepartment(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @PathVariable(value="pId") java.lang.String pId) throws java.lang.Exception
java.lang.Exception
@RequestMapping(value="/departments", method=GET) @VisitRefer(required=false) @ResponseBody public Response searchDepartment(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @RequestParam(value="keyword",required=false) java.lang.String keyword) throws java.lang.Exception
java.lang.Exception
@RequestMapping(value="/departments/tree", method=GET) @VisitRefer(required=false) @ResponseBody public Response getDepartmentTree(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version) throws java.lang.Exception
java.lang.Exception