类 DepartmentController
- java.lang.Object
-
- net.guerlab.smart.platform.server.controller.AbstractControllerImpl<D,E,S,PK>
-
- net.guerlab.smart.platform.server.controller.BaseFindController<D,E,S,SP,PK>
-
- net.guerlab.smart.platform.server.controller.BaseController<net.guerlab.smart.platform.user.core.domain.DepartmentDTO,Department,DepartmentService,net.guerlab.smart.platform.user.core.searchparams.DepartmentSearchParams,Long>
-
- net.guerlab.smart.platform.user.web.controller.user.DepartmentController
-
- 所有已实现的接口:
net.guerlab.smart.platform.server.controller.DeleteController<net.guerlab.smart.platform.user.core.domain.DepartmentDTO,Department,DepartmentService,Long>,net.guerlab.smart.platform.server.controller.FindController<net.guerlab.smart.platform.user.core.domain.DepartmentDTO,Department,DepartmentService,net.guerlab.smart.platform.user.core.searchparams.DepartmentSearchParams,Long>,net.guerlab.smart.platform.server.controller.IController<Department,DepartmentService,Long>,net.guerlab.smart.platform.server.controller.ModifyControllerWrapper<net.guerlab.smart.platform.user.core.domain.DepartmentDTO,Department,Long>,net.guerlab.smart.platform.server.controller.SaveController<net.guerlab.smart.platform.user.core.domain.DepartmentDTO,Department,DepartmentService,Long>,net.guerlab.smart.platform.server.controller.UpdateController<net.guerlab.smart.platform.user.core.domain.DepartmentDTO,Department,DepartmentService,Long>
@RestController("/user/department") @RequestMapping("/user/department") public class DepartmentController extends net.guerlab.smart.platform.server.controller.BaseController<net.guerlab.smart.platform.user.core.domain.DepartmentDTO,Department,DepartmentService,net.guerlab.smart.platform.user.core.searchparams.DepartmentSearchParams,Long>部门- 作者:
- guer
-
-
构造器概要
构造器 构造器 说明 DepartmentController()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Collection<Long>getDistribution(Long departmentId)protected net.guerlab.commons.exception.ApplicationExceptionnullPointException()voidremoveChargeUser(Long departmentId)voidremoveDirectorUser(Long departmentId)voidsetChargeUser(ManagerSetterDTO setter)voidsetDirectorUser(ManagerSetterDTO setter)voidsetDistribution(Long departmentId, Collection<Long> dutyIds)voidsetDistributionService(DepartmentDutyDistributionService distributionService)Collection<net.guerlab.smart.platform.user.core.domain.DepartmentDTO>tree()net.guerlab.smart.platform.user.core.domain.DepartmentDTOupdate(Long id, net.guerlab.smart.platform.user.core.domain.DepartmentDTO dto)-
从类继承的方法 net.guerlab.smart.platform.server.controller.AbstractControllerImpl
findOne0, getService, newEntity, setService
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
方法详细资料
-
update
public net.guerlab.smart.platform.user.core.domain.DepartmentDTO update(@PathVariable Long id, @RequestBody net.guerlab.smart.platform.user.core.domain.DepartmentDTO dto)
-
nullPointException
protected net.guerlab.commons.exception.ApplicationException nullPointException()
- 覆盖:
nullPointException在类中net.guerlab.smart.platform.server.controller.AbstractControllerImpl<net.guerlab.smart.platform.user.core.domain.DepartmentDTO,Department,DepartmentService,Long>
-
tree
@GetMapping("/tree") public Collection<net.guerlab.smart.platform.user.core.domain.DepartmentDTO> tree()
-
setDirectorUser
@PostMapping("/directorUser") public void setDirectorUser(@RequestBody ManagerSetterDTO setter)
-
setChargeUser
@PostMapping("/chargeUser") public void setChargeUser(@RequestBody ManagerSetterDTO setter)
-
removeDirectorUser
@DeleteMapping("/directorUser/{departmentId}") public void removeDirectorUser(@PathVariable Long departmentId)
-
removeChargeUser
@DeleteMapping("/chargeUser/{departmentId}") public void removeChargeUser(@PathVariable Long departmentId)
-
getDistribution
@GetMapping("/distribution/{departmentId}") public Collection<Long> getDistribution(@PathVariable Long departmentId)
-
setDistribution
@PostMapping("/distribution/{departmentId}") @Transactional(rollbackFor=java.lang.Exception.class) public void setDistribution(@PathVariable Long departmentId, @RequestBody Collection<Long> dutyIds)
-
setDistributionService
@Autowired public void setDistributionService(DepartmentDutyDistributionService distributionService)
-
-