public interface BusinessOrgManagerDirect
限定符和类型 | 方法和说明 |
---|---|
OrganizationMessage |
addAccount(V3xOrgAccount account)
新建业务组织
|
OrganizationMessage |
addDepartment(V3xOrgDepartment dept)
新建业务组织部门
|
OrganizationMessage |
addDepartments(java.util.List<V3xOrgDepartment> depts)
批量新建业务组织部门
|
boolean |
canAccess(java.lang.Long memberId,
java.lang.Long businessId)
指定人员是否可以访问指定的业务线
|
OrganizationMessage |
deleteAccount(V3xOrgAccount account)
删除业务组织
|
OrganizationMessage |
deleteDepartment(V3xOrgDepartment dept)
删除业务组织部门
|
OrganizationMessage |
deleteDepartments(java.util.List<V3xOrgDepartment> depts)
批量删除业务组织部门
|
java.util.List<V3xOrgAccount> |
findAccountByUnitId(java.lang.Long acountId,
java.lang.Boolean enable)
通过组织id,获取对应组织的业务单位列表
|
java.util.List<V3xOrgAccount> |
getAccessBusiness(java.lang.Long memberId,
java.lang.Long accountId)
获取人员可见的单位下的业务线
|
java.util.Set<java.lang.Long> |
getAccessBusinessMember(java.lang.Long memberId,
java.lang.Long businessId)
获取指定人员能看到的业务线下的所有人
|
default java.util.List<V3xOrgAccount> |
getAccountList(java.lang.Long createrId,
java.lang.Boolean enable)
已过时。
通过单位id,获取业务单位列表
|
java.util.List<V3xOrgMember> |
getAllMembers(java.lang.Long accountId)
获取组织下所有人员
|
java.util.List<V3xOrgAccount> |
getBusinessByMemberId(java.lang.Long memberId)
获取指定人员存在于哪些业务线中
|
java.util.List<V3xOrgDepartment> |
getBusinessDeptsByMemberId(java.lang.Long memberId,
java.lang.Long businessId,
boolean firtLayer)
获取人员在指定业务线下 存在于哪些部门
|
java.util.List<V3xOrgDepartment> |
getChildDepartments(java.lang.Long parentDepId,
boolean firtLayer)
获取单位/部门下的自部门
|
java.util.List<V3xOrgRelationship> |
getMemberBusinessDepartment(java.lang.Long memberId,
java.util.Set<java.lang.Long> postList,
java.util.Set<java.lang.Long> departMentIdList)
获取人员所在的多维组织部门关系
|
java.util.List<MemberPost> |
getMemberPostByAccount(java.lang.Long accountId,
OrgConstants.MemberPostType type,
boolean isDealRepeat)
获取多维组织下的人员岗位信息
|
java.util.List<MemberPost> |
getMemberPostByDepartment(java.lang.Long deptId,
boolean firtLayer) |
java.util.List<MemberPost> |
getMemberPostByMemberId(java.lang.Long businessId,
java.lang.Long memberId)
获取人员的多维组织部门角色信息。
|
java.util.List<V3xOrgMember> |
getMembersByDepartment(java.lang.Long deptId,
boolean firtLayer)
获取部分下的人员
|
V3xOrgRole |
getRoleByCode(java.lang.String code,
java.lang.Long accountId)
根据编号获取角色
|
java.util.List<MemberPost> |
getVirtualPostByAccount(java.lang.Long accountId,
boolean isDealRepeat)
根据工作流需求,按照不同部门给每个人员构建一个虚拟的岗位
|
boolean |
isExistRepeatProperty(java.util.List<? extends V3xOrgEntity> ents,
java.lang.String propertyName,
java.lang.Object value,
V3xOrgEntity entity) |
OrganizationMessage |
updateAccount(V3xOrgAccount account)
更新业务组织
|
OrganizationMessage |
updateDepartment(V3xOrgDepartment dept)
更新业务组织部门
|
OrganizationMessage |
updateDepartments(java.util.List<V3xOrgDepartment> depts)
批量更新业务组织部门
|
default java.util.List<V3xOrgAccount> getAccountList(java.lang.Long createrId, java.lang.Boolean enable) throws com.seeyon.ctp.common.exceptions.BusinessException
createrId
- enable
- com.seeyon.ctp.common.exceptions.BusinessException
findAccountByUnitId(Long, Boolean)
java.util.List<V3xOrgAccount> findAccountByUnitId(java.lang.Long acountId, java.lang.Boolean enable) throws com.seeyon.ctp.common.exceptions.BusinessException
acountId
- 单位Idenable
- 是否可用com.seeyon.ctp.common.exceptions.BusinessException
OrganizationMessage addAccount(V3xOrgAccount account) throws com.seeyon.ctp.common.exceptions.BusinessException
account
- com.seeyon.ctp.common.exceptions.BusinessException
OrganizationMessage updateAccount(V3xOrgAccount account) throws com.seeyon.ctp.common.exceptions.BusinessException
account
- com.seeyon.ctp.common.exceptions.BusinessException
OrganizationMessage deleteAccount(V3xOrgAccount account) throws com.seeyon.ctp.common.exceptions.BusinessException
account
- com.seeyon.ctp.common.exceptions.BusinessException
OrganizationMessage addDepartment(V3xOrgDepartment dept) throws com.seeyon.ctp.common.exceptions.BusinessException
dept
- com.seeyon.ctp.common.exceptions.BusinessException
OrganizationMessage addDepartments(java.util.List<V3xOrgDepartment> depts) throws com.seeyon.ctp.common.exceptions.BusinessException
dept
- com.seeyon.ctp.common.exceptions.BusinessException
OrganizationMessage updateDepartment(V3xOrgDepartment dept) throws com.seeyon.ctp.common.exceptions.BusinessException
dept
- com.seeyon.ctp.common.exceptions.BusinessException
OrganizationMessage updateDepartments(java.util.List<V3xOrgDepartment> depts) throws com.seeyon.ctp.common.exceptions.BusinessException
depts
- com.seeyon.ctp.common.exceptions.BusinessException
OrganizationMessage deleteDepartment(V3xOrgDepartment dept) throws com.seeyon.ctp.common.exceptions.BusinessException
dept
- com.seeyon.ctp.common.exceptions.BusinessException
OrganizationMessage deleteDepartments(java.util.List<V3xOrgDepartment> depts) throws com.seeyon.ctp.common.exceptions.BusinessException
depts
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgDepartment> getChildDepartments(java.lang.Long parentDepId, boolean firtLayer) throws com.seeyon.ctp.common.exceptions.BusinessException
parentDepId
- firtLayer
- externalType
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByDepartment(java.lang.Long deptId, boolean firtLayer) throws com.seeyon.ctp.common.exceptions.BusinessException
deptId
- 部门idfirtLayer
- true只查询本部门 false查询所有子部门com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getAllMembers(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByDepartment(java.lang.Long deptId, boolean firtLayer) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.Set<java.lang.Long> getAccessBusinessMember(java.lang.Long memberId, java.lang.Long businessId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- businessId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgAccount> getAccessBusiness(java.lang.Long memberId, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- accountId
- com.seeyon.ctp.common.exceptions.BusinessException
V3xOrgRole getRoleByCode(java.lang.String code, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
code
- accountId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgDepartment> getBusinessDeptsByMemberId(java.lang.Long memberId, java.lang.Long businessId, boolean firtLayer) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 指定人员businessId
- 业务线id null:获取所有所属的部门,不建议使用firtLayer
- 是否包含子部门 false: 包含; true:不包含com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgAccount> getBusinessByMemberId(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- com.seeyon.ctp.common.exceptions.BusinessException
boolean canAccess(java.lang.Long memberId, java.lang.Long businessId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- businessId
- com.seeyon.ctp.common.exceptions.BusinessException
boolean isExistRepeatProperty(java.util.List<? extends V3xOrgEntity> ents, java.lang.String propertyName, java.lang.Object value, V3xOrgEntity entity) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByMemberId(java.lang.Long businessId, java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
businessId
- 多维组织id. null:匹配所有多维组织memberId
- 人员idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByAccount(java.lang.Long accountId, OrgConstants.MemberPostType type, boolean isDealRepeat) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- type
- isDealRepeat
- 是否需要去重com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgRelationship> getMemberBusinessDepartment(java.lang.Long memberId, java.util.Set<java.lang.Long> postList, java.util.Set<java.lang.Long> departMentIdList) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getVirtualPostByAccount(java.lang.Long accountId, boolean isDealRepeat) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 单位IdisDealRepeat
- 是否去重com.seeyon.ctp.common.exceptions.BusinessException