@Service(value="personService") @CacheConfig(cacheNames="person") public class SimplePersonService extends EnableCacheAllEvictGenericEntityService<PersonEntity,String> implements PersonService, org.hswebframework.web.organizational.authorization.PersonnelAuthenticationManager
eventPublisherentityFactory, entityType, logger, logicPrimaryKeyValidator, primaryKeyType, validator| 构造器和说明 |
|---|
SimplePersonService() |
| 限定符和类型 | 方法和说明 |
|---|---|
PersonEntity |
deleteByPk(String id) |
protected <T extends org.hswebframework.web.commons.entity.TreeSupportEntity<String>> |
getAllChildrenAndReturnRootNode(org.hswebframework.web.dao.dynamic.QueryByEntityDao<T> dao,
Set<String> rootIds,
java.util.function.BiConsumer<T,List<T>> childAccepter,
java.util.function.Consumer<List<T>> rootConsumer)
获取一个树形结构的数据,并返回根节点集合
|
PersonDao |
getDao() |
protected org.hswebframework.web.id.IDGenerator<String> |
getIDGenerator() |
org.hswebframework.web.organizational.authorization.PersonnelAuthentication |
getPersonnelAuthorizationByPersonId(String personId) |
org.hswebframework.web.organizational.authorization.PersonnelAuthentication |
getPersonnelAuthorizationByUserId(String userId) |
void |
handleClearCache(ClearPersonCacheEvent event) |
String |
insert(PersonAuthBindEntity authBindEntity) |
List<String> |
selectAllDepartmentId(List<String> personId) |
List<String> |
selectAllOrgId(List<String> personId) |
PersonAuthBindEntity |
selectAuthBindByPk(String id) |
List<PersonEntity> |
selectByDepartmentId(List<String> departmentId) |
List<PersonEntity> |
selectByName(String name) |
List<PersonEntity> |
selectByOrgId(List<String> orgId) |
List<PersonEntity> |
selectByPositionId(String positionId) |
List<PersonEntity> |
selectByPositionIds(List<String> positionId) |
List<PersonEntity> |
selectByRoleId(String roleId) |
PersonEntity |
selectByUserId(String userId) |
protected void |
syncPositionInfo(String personId,
Set<String> positionIds) |
protected void |
syncUserInfo(PersonAuthBindEntity bindEntity) |
static <V extends org.hswebframework.web.commons.entity.TreeSupportEntity<String>> |
transformationTreeNode(V parent,
List<V> data) |
int |
updateByPk(PersonAuthBindEntity authBindEntity) |
count, insert, saveOrUpdate, select, selectByPk, selectByPk, updateByPk, updateByPkdataExisted, init, physicalDeleteByPk, pushCreatedEvent, pushModifyEvent, setEventPublisher, updateByPkassertNotNull, assertNotNull, createEntity, entityFactoryIsEnabled, getEntityInstanceType, getEntityType, getPrimaryKeyType, setEntityFactory, setLogicPrimaryKeyValidator, setValidator, tryValidate, tryValidate, tryValidate, tryValidateProperty, tryValidateProperty, tryValidatePropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, select, selectPager, selectSinglesaveOrUpdate, updateByPk, updateByPkinsertcreateEntity, getEntityInstanceTypecount, select, selectByPk, selectByPkcreateQuery, createQuerycount, select, selectPager, selectSinglecreateUpdate, createUpdate, createUpdate, createUpdatecreateDelete, createDelete, createDeleteprotected org.hswebframework.web.id.IDGenerator<String> getIDGenerator()
getIDGenerator 在类中 GenericEntityService<PersonEntity,String>public PersonDao getDao()
getDao 在接口中 DefaultDSLDeleteService<PersonEntity,String>getDao 在接口中 DefaultDSLUpdateService<PersonEntity,String>getDao 在接口中 DefaultQueryByEntityService<PersonEntity>getDao 在接口中 GenericService<PersonEntity,String>@CacheEvict(allEntries=true) public String insert(PersonAuthBindEntity authBindEntity)
insert 在接口中 PersonService@CacheEvict(allEntries=true) public int updateByPk(PersonAuthBindEntity authBindEntity)
updateByPk 在接口中 PersonService@TransactionalEventListener @CacheEvict(allEntries=true) public void handleClearCache(ClearPersonCacheEvent event)
@Cacheable(key="\'person-name:\'+#name") public List<PersonEntity> selectByName(String name)
selectByName 在接口中 PersonService@Cacheable(key="\'auth-bind:\'+#id") public PersonAuthBindEntity selectAuthBindByPk(String id)
selectAuthBindByPk 在接口中 PersonService@Cacheable(key="\'by-position-id:\'+#positionId") public List<PersonEntity> selectByPositionId(String positionId)
selectByPositionId 在接口中 PersonService@Cacheable(key="\'by-position-ids:\'+#positionId.hashCode()") public List<PersonEntity> selectByPositionIds(List<String> positionId)
selectByPositionIds 在接口中 PersonService@Cacheable(key="\'by-department:\'+#departmentId.hashCode()") public List<PersonEntity> selectByDepartmentId(List<String> departmentId)
selectByDepartmentId 在接口中 PersonService@Cacheable(key="\'by-org-id:\'+#orgId.hashCode()") public List<PersonEntity> selectByOrgId(List<String> orgId)
selectByOrgId 在接口中 PersonService@Cacheable(key="\'by-user-id:\'+#userId") public PersonEntity selectByUserId(String userId)
selectByUserId 在接口中 PersonService@Cacheable(key="\'all-department-id:\'+#personId.hashCode()") public List<String> selectAllDepartmentId(List<String> personId)
selectAllDepartmentId 在接口中 PersonService@Cacheable(key="\'all-org-id:\'+#personId.hashCode()") public List<String> selectAllOrgId(List<String> personId)
selectAllOrgId 在接口中 PersonService@Cacheable(key="\'by-role-id:\'+#roleId") public List<PersonEntity> selectByRoleId(String roleId)
selectByRoleId 在接口中 PersonServiceprotected void syncUserInfo(PersonAuthBindEntity bindEntity)
@CacheEvict(allEntries=true) public PersonEntity deleteByPk(String id)
deleteByPk 在接口中 DefaultDeleteService<PersonEntity,String>deleteByPk 在接口中 DeleteService<PersonEntity,String>deleteByPk 在类中 EnableCacheAllEvictGenericEntityService<PersonEntity,String>@Cacheable(key="\'auth:persion-id\'+#personId") public org.hswebframework.web.organizational.authorization.PersonnelAuthentication getPersonnelAuthorizationByPersonId(String personId)
getPersonnelAuthorizationByPersonId 在接口中 org.hswebframework.web.organizational.authorization.PersonnelAuthenticationManagerprotected <T extends org.hswebframework.web.commons.entity.TreeSupportEntity<String>> List<T> getAllChildrenAndReturnRootNode(org.hswebframework.web.dao.dynamic.QueryByEntityDao<T> dao, Set<String> rootIds, java.util.function.BiConsumer<T,List<T>> childAccepter, java.util.function.Consumer<List<T>> rootConsumer)
T - 节点类型dao - 查询dao接口rootIds - 根节点ID集合childAccepter - 子节点接收方法rootConsumer - 根节点消费回调public static <V extends org.hswebframework.web.commons.entity.TreeSupportEntity<String>> Set<org.hswebframework.web.organizational.authorization.TreeNode<String>> transformationTreeNode(V parent, List<V> data)
@Cacheable(key="\'auth:user-id:\'+#userId") public org.hswebframework.web.organizational.authorization.PersonnelAuthentication getPersonnelAuthorizationByUserId(String userId)
getPersonnelAuthorizationByUserId 在接口中 org.hswebframework.web.organizational.authorization.PersonnelAuthenticationManagerCopyright © 2016–2019. All rights reserved.