public class BusinessOrgManagerDirectImpl extends java.lang.Object implements BusinessOrgManagerDirect
构造器和说明 |
---|
BusinessOrgManagerDirectImpl() |
限定符和类型 | 方法和说明 |
---|---|
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)
获取指定人员能看到的业务线下的所有人
|
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)
批量更新业务组织部门
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAccountList
public OrganizationMessage addAccount(V3xOrgAccount account) throws com.seeyon.ctp.common.exceptions.BusinessException
BusinessOrgManagerDirect
addAccount
在接口中 BusinessOrgManagerDirect
com.seeyon.ctp.common.exceptions.BusinessException
public OrganizationMessage updateAccount(V3xOrgAccount account) throws com.seeyon.ctp.common.exceptions.BusinessException
BusinessOrgManagerDirect
updateAccount
在接口中 BusinessOrgManagerDirect
com.seeyon.ctp.common.exceptions.BusinessException
public OrganizationMessage deleteAccount(V3xOrgAccount account) throws com.seeyon.ctp.common.exceptions.BusinessException
BusinessOrgManagerDirect
deleteAccount
在接口中 BusinessOrgManagerDirect
com.seeyon.ctp.common.exceptions.BusinessException
public java.util.List<V3xOrgAccount> findAccountByUnitId(java.lang.Long acountId, java.lang.Boolean enable) throws com.seeyon.ctp.common.exceptions.BusinessException
BusinessOrgManagerDirect
findAccountByUnitId
在接口中 BusinessOrgManagerDirect
acountId
- 单位Idenable
- 是否可用com.seeyon.ctp.common.exceptions.BusinessException
public OrganizationMessage addDepartment(V3xOrgDepartment dept) throws com.seeyon.ctp.common.exceptions.BusinessException
BusinessOrgManagerDirect
addDepartment
在接口中 BusinessOrgManagerDirect
com.seeyon.ctp.common.exceptions.BusinessException
public OrganizationMessage addDepartments(java.util.List<V3xOrgDepartment> depts) throws com.seeyon.ctp.common.exceptions.BusinessException
BusinessOrgManagerDirect
addDepartments
在接口中 BusinessOrgManagerDirect
com.seeyon.ctp.common.exceptions.BusinessException
public OrganizationMessage updateDepartment(V3xOrgDepartment dept) throws com.seeyon.ctp.common.exceptions.BusinessException
BusinessOrgManagerDirect
updateDepartment
在接口中 BusinessOrgManagerDirect
com.seeyon.ctp.common.exceptions.BusinessException
public OrganizationMessage updateDepartments(java.util.List<V3xOrgDepartment> depts) throws com.seeyon.ctp.common.exceptions.BusinessException
BusinessOrgManagerDirect
updateDepartments
在接口中 BusinessOrgManagerDirect
com.seeyon.ctp.common.exceptions.BusinessException
public OrganizationMessage deleteDepartment(V3xOrgDepartment dept) throws com.seeyon.ctp.common.exceptions.BusinessException
BusinessOrgManagerDirect
deleteDepartment
在接口中 BusinessOrgManagerDirect
com.seeyon.ctp.common.exceptions.BusinessException
public OrganizationMessage deleteDepartments(java.util.List<V3xOrgDepartment> depts) throws com.seeyon.ctp.common.exceptions.BusinessException
BusinessOrgManagerDirect
deleteDepartments
在接口中 BusinessOrgManagerDirect
com.seeyon.ctp.common.exceptions.BusinessException
public 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
isExistRepeatProperty
在接口中 BusinessOrgManagerDirect
com.seeyon.ctp.common.exceptions.BusinessException
public java.util.List<V3xOrgDepartment> getChildDepartments(java.lang.Long parentDepId, boolean firtLayer) throws com.seeyon.ctp.common.exceptions.BusinessException
BusinessOrgManagerDirect
getChildDepartments
在接口中 BusinessOrgManagerDirect
com.seeyon.ctp.common.exceptions.BusinessException
public java.util.List<V3xOrgMember> getAllMembers(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
BusinessOrgManagerDirect
getAllMembers
在接口中 BusinessOrgManagerDirect
com.seeyon.ctp.common.exceptions.BusinessException
public java.util.List<V3xOrgMember> getMembersByDepartment(java.lang.Long deptId, boolean firtLayer) throws com.seeyon.ctp.common.exceptions.BusinessException
BusinessOrgManagerDirect
getMembersByDepartment
在接口中 BusinessOrgManagerDirect
deptId
- 部门idfirtLayer
- true只查询本部门 false查询所有子部门com.seeyon.ctp.common.exceptions.BusinessException
public java.util.List<MemberPost> getMemberPostByDepartment(java.lang.Long deptId, boolean firtLayer) throws com.seeyon.ctp.common.exceptions.BusinessException
getMemberPostByDepartment
在接口中 BusinessOrgManagerDirect
com.seeyon.ctp.common.exceptions.BusinessException
public java.util.Set<java.lang.Long> getAccessBusinessMember(java.lang.Long memberId, java.lang.Long businessId) throws com.seeyon.ctp.common.exceptions.BusinessException
BusinessOrgManagerDirect
getAccessBusinessMember
在接口中 BusinessOrgManagerDirect
com.seeyon.ctp.common.exceptions.BusinessException
public java.util.List<V3xOrgAccount> getAccessBusiness(java.lang.Long memberId, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
BusinessOrgManagerDirect
getAccessBusiness
在接口中 BusinessOrgManagerDirect
com.seeyon.ctp.common.exceptions.BusinessException
public boolean canAccess(java.lang.Long memberId, java.lang.Long businessId) throws com.seeyon.ctp.common.exceptions.BusinessException
BusinessOrgManagerDirect
canAccess
在接口中 BusinessOrgManagerDirect
com.seeyon.ctp.common.exceptions.BusinessException
public V3xOrgRole getRoleByCode(java.lang.String code, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
BusinessOrgManagerDirect
getRoleByCode
在接口中 BusinessOrgManagerDirect
com.seeyon.ctp.common.exceptions.BusinessException
public java.util.List<V3xOrgDepartment> getBusinessDeptsByMemberId(java.lang.Long memberId, java.lang.Long businessId, boolean firtLayer) throws com.seeyon.ctp.common.exceptions.BusinessException
BusinessOrgManagerDirect
getBusinessDeptsByMemberId
在接口中 BusinessOrgManagerDirect
memberId
- 指定人员businessId
- 业务线id null:获取所有所属的部门,不建议使用firtLayer
- 是否包含子部门 false: 包含; true:不包含com.seeyon.ctp.common.exceptions.BusinessException
public java.util.List<V3xOrgAccount> getBusinessByMemberId(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
BusinessOrgManagerDirect
getBusinessByMemberId
在接口中 BusinessOrgManagerDirect
com.seeyon.ctp.common.exceptions.BusinessException
public java.util.List<MemberPost> getMemberPostByMemberId(java.lang.Long businessId, java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
BusinessOrgManagerDirect
getMemberPostByMemberId
在接口中 BusinessOrgManagerDirect
businessId
- 多维组织id. null:匹配所有多维组织memberId
- 人员idcom.seeyon.ctp.common.exceptions.BusinessException
public java.util.List<MemberPost> getMemberPostByAccount(java.lang.Long accountId, OrgConstants.MemberPostType type, boolean isDealRepeat) throws com.seeyon.ctp.common.exceptions.BusinessException
BusinessOrgManagerDirect
getMemberPostByAccount
在接口中 BusinessOrgManagerDirect
isDealRepeat
- 是否需要去重com.seeyon.ctp.common.exceptions.BusinessException
public 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
getMemberBusinessDepartment
在接口中 BusinessOrgManagerDirect
memberId
- com.seeyon.ctp.common.exceptions.BusinessException
public java.util.List<MemberPost> getVirtualPostByAccount(java.lang.Long accountId, boolean isDealRepeat) throws com.seeyon.ctp.common.exceptions.BusinessException
BusinessOrgManagerDirect
getVirtualPostByAccount
在接口中 BusinessOrgManagerDirect
accountId
- 单位IdisDealRepeat
- 是否去重com.seeyon.ctp.common.exceptions.BusinessException