@RestController
@RequestMapping(value="${hsweb.web.mappings.person:person}")
@Authorize(permission="person",
description="\u4eba\u5458\u7ba1\u7406",
dataAccess=@RequiresDataAccess)
public class PersonController
extends Object
implements SimpleGenericEntityController<PersonEntity,String,org.hswebframework.web.commons.entity.param.QueryParamEntity>
| 构造器和说明 |
|---|
PersonController() |
| 限定符和类型 | 方法和说明 |
|---|---|
ResponseMessage<String> |
createPersonDetail(PersonAuthBindEntity bindEntity) |
ResponseMessage<List<PersonEntity>> |
getByPositionId(String positionId) |
ResponseMessage<PersonAuthBindEntity> |
getDetail(String id) |
ResponseMessage<String> |
getDetail(String id,
PersonAuthBindEntity bindEntity) |
ResponseMessage<PersonAuthBindEntity> |
getLoginUserPerson() |
ResponseMessage<org.hswebframework.web.organizational.authorization.PersonnelAuthentication> |
getLoginUserPersonDetail() |
ResponseMessage<org.hswebframework.web.organizational.authorization.PersonnelAuthentication> |
getPersonDetail(String personId) |
PersonService |
getService() |
ResponseMessage<org.hswebframework.web.commons.entity.PagerResult<PersonEntity>> |
list(org.hswebframework.web.commons.entity.param.QueryParamEntity param) |
void |
setPersonService(PersonService personService) |
ResponseMessage<String> |
updateMePersonInfo(PersonAuthBindEntity bindEntity) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmodelToEntityassertNotNull, count, getByPrimaryKey, getByPrimaryKey, listNoPagingsaveOrUpdate, updateByPrimaryKeyadddeleteByPrimaryKey@Autowired public void setPersonService(PersonService personService)
public PersonService getService()
getService 在接口中 CreateController<PersonEntity,String,PersonEntity>getService 在接口中 DeleteController<PersonEntity,String>getService 在接口中 QueryController<PersonEntity,String,org.hswebframework.web.commons.entity.param.QueryParamEntity>getService 在接口中 SimpleCrudController<PersonEntity,String,org.hswebframework.web.commons.entity.param.QueryParamEntity>getService 在接口中 SimpleGenericEntityController<PersonEntity,String,org.hswebframework.web.commons.entity.param.QueryParamEntity>getService 在接口中 UpdateController<PersonEntity,String,PersonEntity>public ResponseMessage<org.hswebframework.web.commons.entity.PagerResult<PersonEntity>> list(org.hswebframework.web.commons.entity.param.QueryParamEntity param)
list 在接口中 QueryController<PersonEntity,String,org.hswebframework.web.commons.entity.param.QueryParamEntity>@GetMapping(value="/me") @Authorize(merge=false) public ResponseMessage<PersonAuthBindEntity> getLoginUserPerson()
@PutMapping(value="/me") @Authorize(merge=false) public ResponseMessage<String> updateMePersonInfo(@RequestBody PersonAuthBindEntity bindEntity)
@GetMapping(value="/me/authorization") @Authorize(merge=false) public ResponseMessage<org.hswebframework.web.organizational.authorization.PersonnelAuthentication> getLoginUserPersonDetail()
@GetMapping(value="/{personId}/authorization")
@Authorize(action="get",
dataAccess=@RequiresDataAccess(ignore=true))
public ResponseMessage<org.hswebframework.web.organizational.authorization.PersonnelAuthentication> getPersonDetail(@PathVariable
String personId)
@GetMapping(value="/{id}/detail")
@Authorize(action="get",
dataAccess=@RequiresDataAccess(phased=after))
public ResponseMessage<PersonAuthBindEntity> getDetail(@PathVariable
String id)
@PostMapping(value="/detail")
@Authorize(action="add",
dataAccess=@RequiresDataAccess(ignore=true))
@ResponseStatus(value=CREATED)
public ResponseMessage<String> createPersonDetail(@RequestBody
PersonAuthBindEntity bindEntity)
@PutMapping(value="/{id}/detail")
@Authorize(action="update",
dataAccess=@RequiresDataAccess(ignore=true))
public ResponseMessage<String> getDetail(@PathVariable
String id,
@RequestBody
PersonAuthBindEntity bindEntity)
@GetMapping(value="/in-position/{positionId}")
@Authorize(action="get",
dataAccess=@RequiresDataAccess(phased=after))
public ResponseMessage<List<PersonEntity>> getByPositionId(@PathVariable
String positionId)
Copyright © 2016–2019. All rights reserved.