类 Y9GroupServiceImpl
- java.lang.Object
-
- net.risesoft.service.org.impl.Y9GroupServiceImpl
-
- 所有已实现的接口:
Y9GroupService
@Transactional(value="rsTenantTransactionManager", readOnly=true) @Service public class Y9GroupServiceImpl extends Object implements Y9GroupService- 作者:
- dingzhaojun, qinman, mengjuhua
- Date:
- 2022/2/10
-
-
构造器概要
构造器 构造器 说明 Y9GroupServiceImpl()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Y9GroupchangeDisabled(String id)更改禁用状态Y9GroupcreateGroup(Y9Group y9Group)创建用户组voiddelete(String groupId)根据主键id移除用户组实例(并且移除组内的人员)voiddeleteByParentId(String parentId)根据父节点id删除用户组实例(并且移除组内的人员)booleanexistsById(String id)根据id判断用户组是否存在Optional<Y9Group>findById(String id)根据id查找用户组Y9GroupgetById(String id)根据主键id获取用户组实例List<Y9Group>listAll()获取所有用户组List<Y9Group>listByDn(String dn, Boolean disabled)根据dn查询List<Y9Group>listByNameLike(String name)根据名称查询List<Y9Group>listByNameLikeAndDn(String name, String dn)根据名称查询List<Y9Group>listByParentId(String parentId, Boolean disabled)根据父节点id,获取本层级的用户组列表List<Y9Group>listByPersonId(String personId, Boolean disabled)根据人员 id获取用户组列表Y9Groupmove(String groupId, String parentId)voidonParentDepartmentDeleted(net.risesoft.y9.pubsub.event.Y9EntityDeletedEvent<Y9Department> event)voidonParentOrganizationDeleted(net.risesoft.y9.pubsub.event.Y9EntityDeletedEvent<Y9Organization> event)voidonParentUpdated(net.risesoft.y9.pubsub.event.Y9EntityUpdatedEvent<? extends Y9OrgBase> event)List<Y9Group>saveOrder(List<String> groupIds)保存新的序号Y9GroupsaveOrUpdate(Y9Group group)修改此用户组实例的信息Y9GroupsaveProperties(String groupId, String properties)保存或者更新用户组扩展信息Y9GroupupdateTabIndex(String id, int tabIndex)更新用户组排列序号
-
-
-
方法详细资料
-
changeDisabled
@Transactional(readOnly=false) public Y9Group changeDisabled(String id)
从接口复制的说明:Y9GroupService更改禁用状态- 指定者:
changeDisabled在接口中Y9GroupService- 参数:
id- ID- 返回:
- 用户组
-
createGroup
@Transactional(readOnly=false) public Y9Group createGroup(Y9Group y9Group)
从接口复制的说明:Y9GroupService创建用户组- 指定者:
createGroup在接口中Y9GroupService- 参数:
y9Group- 用户组对象- 返回:
Y9Group
-
delete
@Transactional(readOnly=false) public void delete(String groupId)
从接口复制的说明:Y9GroupService根据主键id移除用户组实例(并且移除组内的人员)- 指定者:
delete在接口中Y9GroupService- 参数:
groupId- 唯一标识
-
deleteByParentId
@Transactional(readOnly=false) public void deleteByParentId(String parentId)
从接口复制的说明:Y9GroupService根据父节点id删除用户组实例(并且移除组内的人员)- 指定者:
deleteByParentId在接口中Y9GroupService- 参数:
parentId- 父节点id
-
existsById
public boolean existsById(String id)
从接口复制的说明:Y9GroupService根据id判断用户组是否存在- 指定者:
existsById在接口中Y9GroupService- 参数:
id- 唯一标识- 返回:
- boolean
-
findById
public Optional<Y9Group> findById(String id)
从接口复制的说明:Y9GroupService根据id查找用户组- 指定者:
findById在接口中Y9GroupService- 参数:
id- 唯一标识- 返回:
- 用户组对象 或 null
-
getById
public Y9Group getById(String id)
从接口复制的说明:Y9GroupService根据主键id获取用户组实例- 指定者:
getById在接口中Y9GroupService- 参数:
id- 唯一标识- 返回:
- 用户组对象
-
listAll
public List<Y9Group> listAll()
从接口复制的说明:Y9GroupService获取所有用户组- 指定者:
listAll在接口中Y9GroupService- 返回:
List<Y9Group>
-
listByDn
public List<Y9Group> listByDn(String dn, Boolean disabled)
从接口复制的说明:Y9GroupService根据dn查询- 指定者:
listByDn在接口中Y9GroupService- 参数:
dn- dn- 返回:
List<Y9Group>
-
listByNameLike
public List<Y9Group> listByNameLike(String name)
从接口复制的说明:Y9GroupService根据名称查询- 指定者:
listByNameLike在接口中Y9GroupService- 参数:
name- 用户组名称- 返回:
- List
-
listByNameLikeAndDn
public List<Y9Group> listByNameLikeAndDn(String name, String dn)
从接口复制的说明:Y9GroupService根据名称查询- 指定者:
listByNameLikeAndDn在接口中Y9GroupService- 参数:
name- 用户组名称dn- dn- 返回:
- List
-
listByParentId
public List<Y9Group> listByParentId(String parentId, Boolean disabled)
从接口复制的说明:Y9GroupService根据父节点id,获取本层级的用户组列表- 指定者:
listByParentId在接口中Y9GroupService- 参数:
parentId- 父节点id- 返回:
List<Y9Group>
-
listByPersonId
public List<Y9Group> listByPersonId(String personId, Boolean disabled)
从接口复制的说明:Y9GroupService根据人员 id获取用户组列表- 指定者:
listByPersonId在接口中Y9GroupService- 参数:
personId- 人员id- 返回:
- List
-
move
@Transactional(readOnly=false) public Y9Group move(String groupId, String parentId)
- 指定者:
move在接口中Y9GroupService
-
saveOrder
@Transactional(readOnly=false) public List<Y9Group> saveOrder(List<String> groupIds)
从接口复制的说明:Y9GroupService保存新的序号- 指定者:
saveOrder在接口中Y9GroupService- 参数:
groupIds- 用户组id数组- 返回:
List<Y9Group>
-
saveOrUpdate
@Transactional(readOnly=false) public Y9Group saveOrUpdate(Y9Group group)
从接口复制的说明:Y9GroupService修改此用户组实例的信息- 指定者:
saveOrUpdate在接口中Y9GroupService- 参数:
group- 用户组对象- 返回:
- ORGGroup
-
saveProperties
@Transactional(readOnly=false) public Y9Group saveProperties(String groupId, String properties)
从接口复制的说明:Y9GroupService保存或者更新用户组扩展信息- 指定者:
saveProperties在接口中Y9GroupService- 参数:
groupId- 用户组idproperties- 扩展信息- 返回:
Y9Group
-
updateTabIndex
@Transactional(readOnly=false) public Y9Group updateTabIndex(String id, int tabIndex)
从接口复制的说明:Y9GroupService更新用户组排列序号- 指定者:
updateTabIndex在接口中Y9GroupService- 参数:
id- 用户组唯一标识tabIndex- 排列序号- 返回:
Y9Department
-
onParentDepartmentDeleted
@EventListener @Transactional(readOnly=false) public void onParentDepartmentDeleted(net.risesoft.y9.pubsub.event.Y9EntityDeletedEvent<Y9Department> event)
-
onParentOrganizationDeleted
@EventListener @Transactional(readOnly=false) public void onParentOrganizationDeleted(net.risesoft.y9.pubsub.event.Y9EntityDeletedEvent<Y9Organization> event)
-
onParentUpdated
@EventListener @Transactional(readOnly=false) public void onParentUpdated(net.risesoft.y9.pubsub.event.Y9EntityUpdatedEvent<? extends Y9OrgBase> event)
-
-