public interface OrgManager
Title: 组织模型OrgManager接口
Description: 接口提供组织模型信息与状态等查询
Copyright: Copyright (c) 2012
Company: seeyon.com
接口维护规则:本接口用于提供外部应用对组织模型信息的查询支持,对组织模型信息维护管理等接口请不要定义于此处
限定符和类型 | 方法和说明 |
---|---|
java.util.List<V3xOrgAccount> |
accessableAccounts(java.lang.Long memberId)
返回一个成员能够访问的的单位列表
|
java.util.List<V3xOrgAccount> |
accessableAccounts(java.lang.Long memberId,
boolean includeDisable)
返回一个成员能够访问的的单位列表
|
java.util.List<V3xOrgAccount> |
accessableAccountsByUnitId(java.lang.Long unitId)
返回单位能够访问的的单位列表
|
boolean |
accessedByVisitor(java.lang.String category,
java.lang.Long accountId)
判断应用是否允许访客访问
|
java.util.Set<java.lang.Long> |
canSeeLevels(V3xOrgMember currentMember,
int levelScope,
java.util.List<V3xOrgLevel> allLevels,
java.lang.Long accountId,
java.util.Map<java.lang.Long,java.util.List<MemberPost>> concurrentPostMap)
获取人员可以看到的职级
|
java.util.List<V3xOrgMember> |
canSeMembersByDeptId(java.lang.Long memberId,
java.lang.Long departmentId,
int levelScope,
boolean filter)
普通人员可以看到的部门中的人员
|
java.util.List<V3xOrgMember> |
canSeMembersByPostId(java.lang.Long memberId,
java.lang.Long postId,
int levelScope)
能够获取的岗位下的人员
|
java.lang.Boolean |
canSeSubDept(java.lang.Long memberId,
java.lang.Long departmentId,
int levelScope,
java.util.Set<java.lang.Long> canSeeLevels,
java.util.Set<java.lang.Long> deptIds)
获取可以选择的部门
|
boolean |
canShowPeopleCard(java.lang.Long memberid_me,
java.lang.Long memeberid2_other)
是否允许显示人员卡片
|
boolean |
checkAccessAccount(java.lang.Long currentMemberId,
java.lang.Long memberId)
判断当前人员与某人员所在单位和兼职单位是否在互相可见
|
java.lang.String |
checkCanLeave(java.lang.Long memberId,
boolean checkRole)
校验人员是否可以进行 工作交接/离职办理/转编外人员
|
boolean |
checkLevelForExternal(java.lang.Long currentMemberId,
java.lang.Long memberId)
人员是vjon人员时,判断是否可以互访
|
boolean |
checkLevelScope(java.lang.Long memberID1,
java.lang.Long memberID2)
判断职务级别访问范围
|
java.lang.String |
checkNameI18nData(java.lang.String i18nData,
java.lang.String action,
java.lang.Long accountId,
java.util.Map param)
校验国际化的名称(名称重复等)
|
java.lang.Boolean |
checkOldPasswordOverTime(java.lang.String password)
校验输入错误密码次数是否超过系统设置次数
|
boolean |
checkPwdStrength(java.lang.String password)
验证密码强度
|
boolean |
checkRolePrefabricated(java.lang.Long roleId) |
void |
clearAllCurrentPosts(java.lang.Long accountId)
删除所有的兼职岗位
|
java.util.List<V3xOrgAccount> |
concurrentAccount(java.lang.Long memberId)
返回人员兼职的单位列表,包含人员所在单位。
|
java.util.List<V3xOrgAccount> |
concurrentAccounts4ChangeAccount(java.lang.Long memberId)
专门为portal出现切换单位选项出现提供接口,其中包括本单位
|
java.util.List<MemberPost> |
dealRepeat(java.util.List<MemberPost> memberPosts,
java.util.List<java.lang.Long> unitIds,
V3xOrgEntity entity)
MemberPost 去重
|
void |
deleteMemberPostByMemberId(long memberId)
删除人员岗位,通过人员Id
|
void |
deleteMemberPostByMemberIdAndType(long memberId,
OrgConstants.MemberPostType postType)
删除人员岗位,通过人员Id
|
void |
deleteMemberRoleByMemberId(long memberId)
删除人员对应的角色
|
void |
deleteTeamMemberByEntityId(long entityId)
删除组成员关系
|
void |
deleteTPByEntityId(long entityId)
删除组的公开范围
|
void |
disableMember(java.lang.Long memberId)
停用人员
|
java.util.List<V3xOrgMember> |
findAdministrator(long accountId)
获取单位管理员
|
java.util.List<V3xOrgRelationship> |
findAllDeptPost()
获取部门岗位关系
|
java.util.List<V3xOrgRelationship> |
findAllMemberPost()
获取全部的人员岗位信息
|
java.util.List<V3xOrgMember> |
findAuditAdmin()
获取审计管理员
|
java.util.List<V3xOrgRelationship> |
findBusDeptMemberByEntityId(long entityId)
通过实体Id,获取多维部门的关系
|
java.util.List<V3xOrgRelationship> |
findDeptPostByByDeptIdAndPostIds(long deptId,
java.util.List<java.lang.Long> posts)
获取部门岗位关系
|
java.util.List<V3xOrgRelationship> |
findDeptPostByDeptAndAccount(long deptId,
long accountId)
获取部门岗位关系
|
java.util.List<V3xOrgRelationship> |
findDeptPostByDeptAndAccountAndPost(long deptId,
long accountId,
long postId)
获取部门岗位关系
|
java.util.List<V3xOrgMember> |
findGroupAdmin()
获取集团管理员
|
java.util.List<V3xOrgRelationship> |
findMemberPostByAccountId(java.util.List<java.lang.Long> accountIds)
人员岗位关系缓存
|
java.util.List<V3xOrgRelationship> |
findMemberPostByAccountId(long accountId)
人员岗位关系缓存
|
java.util.List<V3xOrgRelationship> |
findMemberPostByAccountIdAndMemberIdAndType(long accountId,
long memberId,
OrgConstants.MemberPostType postType)
人员岗位关系缓存
|
java.util.List<V3xOrgRelationship> |
findMemberPostByDeptId(long deptId)
人员岗位关系缓存
|
java.util.List<V3xOrgRelationship> |
findMemberPostByDeptIdAndPostIdAndType(long deptId,
long postId,
OrgConstants.MemberPostType type) |
java.util.List<V3xOrgRelationship> |
findMemberPostByLevelId(long leveId)
人员岗位关系缓存
|
java.util.List<V3xOrgRelationship> |
findMemberPostByMemberId(java.util.List<java.lang.Long> memberIds)
人员岗位关系缓存
|
java.util.List<V3xOrgRelationship> |
findMemberPostByMemberId(long memberId)
人员岗位关系缓存
|
java.util.List<V3xOrgRelationship> |
findMemberPostByMemberIdAndType(long memberId,
java.util.List<OrgConstants.MemberPostType> memberPostTypes)
人员岗位关系缓存
|
java.util.List<V3xOrgRelationship> |
findMemberPostByPostId(long postId)
人员岗位关系缓存
|
java.util.List<V3xOrgRelationship> |
findMemberRoleByAccountAndUnitAndEntityAndRole(long accountId,
long unitId,
long entityId,
long roleId)
获取人员角色关系
|
java.util.List<V3xOrgRelationship> |
findMemberRoleByAccountId(long accountId)
获取人员角色关系
|
java.util.List<V3xOrgRelationship> |
findMemberRoleByAccountIdAndEntityId(long accountId,
long entityId)
获取人员角色关系
|
java.util.List<V3xOrgRelationship> |
findMemberRoleByAccountIdAndEntityIdAndRole(long accountId,
long entityId,
long roleId)
获取人员角色关系
|
java.util.List<V3xOrgRelationship> |
findMemberRoleByEntityId(long entityId)
获取人员角色关系
|
java.util.List<V3xOrgRelationship> |
findMemberRoleByEntityIdAndType(long entityId,
OrgConstants.ORGENT_TYPE entityType)
获取人员角色关系
|
java.util.List<V3xOrgEntity> |
findModifyEntity(java.lang.String entityClassName,
java.util.Date dateTime)
根据时间获取在这时间后修改的实体列表
|
java.util.List<V3xOrgMember> |
findSystemAdmin()
获取系统管理员
|
java.util.List<V3xOrgRelationship> |
findTMByAccountIdAndTeamIdAndTeamMemberType(long accountId,
long teamId,
OrgConstants.TeamMemberType teamMemberType)
获取组成员关系
|
java.util.List<V3xOrgRelationship> |
findTMByEntryId(long entityId)
获取组成员关系
|
java.util.List<V3xOrgRelationship> |
findTMByTeamId(long teamId)
获取组成员关系
|
java.util.List<V3xOrgRelationship> |
findTMByTeamIdAndEntityIdAndTeamMemberType(long teamId,
long entityId,
OrgConstants.TeamMemberType teamMemberType)
获取组成员关系
|
java.util.List<java.lang.Long> |
getAccountAdminId(java.lang.Long accountId)
获取三员模式下,指定单位的三员管理员的ID
|
V3xOrgAccount |
getAccountById(java.lang.Long id)
按Id取单位。
|
V3xOrgAccount |
getAccountByLoginName(java.lang.String loginName)
根据登录名获取该人员所在单位实体对象
|
V3xOrgAccount |
getAccountByName(java.lang.String accountName)
根据名称获得一个
遍历所有名字符合单位取第一个结果返回 |
V3xOrgAccount |
getAccountByPath(java.lang.String path)
根据单位的path获得单位
|
java.util.Map<java.lang.Long,java.util.List<V3xOrgPost>> |
getAccountDeptPosts(java.lang.Long accountId)
获取单位下的部门的岗位
|
java.lang.Long |
getAccountIdByCustomLoginUrl(java.lang.String customLoginUrl)
5.1新增接口,配合T3任务每个单位不同登录页任务项
根据设置的url获取单位ID |
V3xOrgPost |
getAccountPostByBMPostId(java.lang.Long bmPostId,
java.lang.Long accountId)
根据基准岗ID查询单位自建岗
|
V3xOrgMember |
getAdministrator(java.lang.Long accountId)
已过时。
8.1以后接口返回的数据是不对的,随机的一个管理员
|
java.util.List<java.lang.Long> |
getAllAccountAdminId()
获取三员模式下,所有系统级和单位级的三员管理员的ID
|
java.util.List<V3xOrgAccount> |
getAllAccounts()
获取有效的未删除的所有单位
|
java.util.List<V3xOrgMember> |
getAllAccountsExtMember(boolean includeDisabled)
获得所有单位的外部人员
|
java.util.Map<java.lang.Long,java.lang.String> |
getAllAccountShortNames()
取得所有单位的简称。
|
java.util.List<V3xOrgPost> |
getAllBenchmarkPost(java.lang.Long accountId)
取得所有指定单位引用的基准岗。
|
java.util.List<MemberPost> |
getAllConcurrentPostByAccount(java.lang.Long accountId)
根据单位获得兼职列表
|
java.util.List<MemberPost> |
getAllConcurrentPostBydepartment(java.lang.Long departmentId)
根据部门获得兼职列表
|
java.util.List<V3xOrgRole> |
getAllCustomerRoles(java.lang.Long accountId,
int bond)
获取该单位下的,集团、单位或部门自定义角色
|
java.util.List<V3xOrgDepartment> |
getAllDepartments(java.lang.Long accountId)
取指定单位的所有部门(不包含停用部门,包含外部部门)。
|
java.util.List<V3xOrgDepartment> |
getAllDepartmentsWidthDisable(java.lang.Long accountId)
取指定单位的所有部门(包含停用部门,包含外部部门)。
|
java.util.List<V3xOrgRole> |
getAllDepRoles(java.lang.Long accountId)
取指定单位的所有部门角色。
|
java.util.Map<OrgConstants.ORGENT_TYPE,java.util.List<java.lang.Long>> |
getAllDomainTypeAndIdMap(java.lang.Long memberId) |
java.util.Map<OrgConstants.ORGENT_TYPE,java.util.List<java.lang.Long>> |
getAllDomainTypeAndIdMap(java.lang.Long memberId,
java.lang.Long accountId,
java.lang.String... types) |
java.util.Map<OrgConstants.ORGENT_TYPE,java.util.List<java.lang.Long>> |
getAllDomainTypeAndIdMap(java.lang.Long memberId,
java.lang.String... types) |
java.util.List<org.apache.commons.lang3.tuple.Pair<OrgConstants.ORGENT_TYPE,java.util.List<java.lang.Long>>> |
getAllDomainTypeAndIds(java.lang.Long memberId) |
java.util.List<org.apache.commons.lang3.tuple.Pair<OrgConstants.ORGENT_TYPE,java.util.List<java.lang.Long>>> |
getAllDomainTypeAndIds(java.lang.Long memberId,
java.lang.Long accountId,
java.lang.String... types) |
java.util.List<org.apache.commons.lang3.tuple.Pair<OrgConstants.ORGENT_TYPE,java.util.List<java.lang.Long>>> |
getAllDomainTypeAndIds(java.lang.Long memberId,
java.lang.String... types) |
java.util.List<org.apache.commons.lang3.tuple.Pair<OrgConstants.ORGENT_TYPE,java.util.List<java.lang.Long>>> |
getAllDomainTypeAndIdsWithDepartmentRole(java.lang.Long memberId) |
java.util.Map<OrgConstants.ORGENT_TYPE,java.util.List<java.lang.Long>> |
getAllDomainTypeAndIdsWithDepartmentRoleMap(java.lang.Long memberId) |
java.util.List<V3xOrgDutyLevel> |
getAllDutyLevels(java.lang.Long accountId)
政务版——取指定单位的所有职级(不包含停用职级)。
|
java.util.List<V3xOrgDutyLevel> |
getAllDutyLevels(java.lang.Long accountID,
java.lang.String type,
java.lang.String value)
政务版——按单位查询职级
|
java.util.List<V3xOrgDepartment> |
getAllExtDepartments(java.lang.Long accountId)
取得单位下的外部部门
|
java.util.List<V3xOrgMember> |
getAllExtMembers(java.lang.Long accountId)
获得单位下所有的外部成员
|
java.util.List<OrgMember> |
getAllGroupEnableMemberPO()
获取集团下的所有有效人员,包含管理员,用户首次初始话的时候加载所有人员
|
java.util.List<V3xOrgDepartment> |
getAllInternalDepartments(java.lang.Long accountId)
取得单位下的内部部门
|
java.util.List<OrgLevel> |
getAllLevelPO(java.lang.Long accountId,
java.lang.Boolean enable,
java.lang.String condition,
java.lang.Object feildvalue,
com.seeyon.ctp.util.FlipInfo flipInfo) |
java.util.List<V3xOrgLevel> |
getAllLevels(java.lang.Long accountId)
取指定单位的所有职务级别(不包含停用职务级别)。
|
java.util.Map<java.lang.Long,java.lang.String> |
getAllMemberNames(java.lang.Long accountId)
取得指定单位所有人员的姓名。
|
java.util.List<V3xOrgMember> |
getAllMembers(java.lang.Long accountId)
取指定单位的所有人员。
|
java.util.List<V3xOrgMember> |
getAllMembers(java.lang.Long accountId,
boolean includeChildAcc)
获取单位下所有人员
|
java.util.List<V3xOrgMember> |
getAllMembersByAccountId(java.lang.Long accountId,
java.lang.Integer type,
java.lang.Boolean isInternal,
java.lang.Boolean enable,
java.lang.String condition,
java.lang.Object feildvalue,
com.seeyon.ctp.util.FlipInfo flipInfo)
从数据库中取出人员,默认条件:
isDelete=false and isVirtual=false and isAssigned=true ,即把删除人员、虚拟账号、取消分配缺省排除,通过其它接口提供 |
java.util.List |
getAllMembersByDepartmentBO(java.lang.Long departmentId)
获取部门下所有member的bo,不包含子部门,包含外部人员,不包含无效人员
|
java.util.List<V3xOrgMember> |
getAllMembersByDepartmentId(java.lang.Long departmentId,
boolean isCludChildDepart,
java.lang.Integer type,
java.lang.Boolean isInternal,
java.lang.Boolean enable,
java.lang.String condition,
java.lang.Object feildvalue,
com.seeyon.ctp.util.FlipInfo flipInfo)
从数据库中取出人员,默认条件:
isDelete=false and isVirtual=false and isAssigned=true ,即把删除人员、虚拟账号、取消分配缺省排除,通过其它接口提供 |
java.util.List<V3xOrgMember> |
getAllMembersByRole(java.lang.Long unitId,
java.lang.String roleCode)
获取对应角色下的所有人
unitId == null时,获取集团下所有对应角色code的人员
|
java.lang.Integer |
getAllMembersNum(java.lang.Long accountId)
获取单位下的所有人员数量,包括兼职
|
java.lang.Integer |
getAllMembersNumsByAccountId(java.lang.Long accountId,
java.lang.Integer type,
java.lang.Boolean isInternal,
java.lang.Boolean enable,
java.lang.String condition,
java.lang.Object feildvalue)
根据查询条件获取单位下人员数量
|
java.lang.Integer |
getAllMembersNumsByAccountIds(java.util.List<java.lang.Long> paramList,
java.lang.Integer paramInteger,
java.lang.Boolean paramBoolean1,
java.lang.Boolean paramBoolean2,
java.lang.String paramString,
java.lang.Object paramObject) |
java.lang.Integer |
getAllMembersNumsWithOutConcurrent(java.lang.Long accountId) |
java.util.List<V3xOrgMember> |
getAllMembersWithDisable(java.lang.Long accountId)
获取所有的人员,(包含无效人员)
|
java.util.List<V3xOrgMember> |
getAllMembersWithOutConcurrent(java.lang.Long accountId)
获取单位下所有人员,不包含兼职
|
java.util.List<V3xOrgMember> |
getAllMembersWithOuter(java.lang.Long accountId)
获取指定单位的所有人员,包括外部人员
|
java.util.List<V3xOrgAccount> |
getAllParentAccount(java.lang.Long accountId)
获取单位的所有上级单位
|
java.util.List<V3xOrgDepartment> |
getAllParentDepartments(java.lang.Long depId)
获得某部门的所有父部门
|
java.util.List<OrgPost> |
getAllPostPO(java.lang.Long accountId,
java.lang.Boolean enable,
java.lang.String condition,
java.lang.Object feildvalue,
com.seeyon.ctp.util.FlipInfo flipInfo) |
java.util.List<OrgPost> |
getAllPostPO(java.lang.Long accountId,
java.lang.Boolean enable,
java.lang.String condition,
java.lang.Object feildvalue,
com.seeyon.ctp.util.FlipInfo flipInfo,
boolean equal) |
java.util.List<V3xOrgPost> |
getAllPosts(java.lang.Long accountId)
取指定单位的所有岗位(不包含停用岗位)。
|
java.util.List<OrgRole> |
getAllRolePO(java.lang.Long accountId,
java.lang.Boolean enable,
java.util.Map<java.lang.String,java.lang.Object> param,
com.seeyon.ctp.util.FlipInfo flipInfo) |
java.util.List<OrgRole> |
getAllRolePO(java.lang.Long accountId,
java.lang.Boolean enable,
java.lang.String condition,
java.lang.Object feildvalue,
com.seeyon.ctp.util.FlipInfo flipInfo) |
java.util.List<V3xOrgRole> |
getAllRoles(java.lang.Long accountId)
取指定单位的所有角色,不包含系统管理员,审计管理员,单位管理员,集团管理员这四个集团角色
|
java.util.List<V3xOrgRole> |
getAllRolesByBond(java.lang.Long accountId,
OrgConstants.ROLE_BOND... types)
获取单位下指定bond类型的角色
如果不指定bond类型取得所有角色(包含业务生成器等特殊角色),慎用
|
java.util.List<OrgTeam> |
getAllTeamPO(java.lang.Long accountId,
java.lang.Integer type,
java.lang.Boolean enable,
java.lang.String condition,
java.lang.Object feildvalue,
com.seeyon.ctp.util.FlipInfo flipInfo) |
java.util.List<V3xOrgTeam> |
getAllTeams(java.lang.Long accountId)
取指定单位的所有组(不包含停用的组)。
|
java.util.Map<java.lang.String,java.lang.String> |
getAllUnitAdminLoginName()
获取三员模式下,所有单位级的三员管理员的 登录账号
key=单位ID+三员角色ID,value=登录账号
|
java.util.List<OrgUnit> |
getAllUnitPO(OrgConstants.UnitType type,
java.lang.Long accountId,
java.lang.Boolean enable,
java.lang.Boolean isInternal,
java.lang.String condition,
java.lang.Object feildvalue,
com.seeyon.ctp.util.FlipInfo flipInfo) |
java.util.List<java.lang.Long> |
getAllUserDomainIDs(java.lang.Long memberId)
获取某人员所有组织信息ID集合
|
java.util.List<java.lang.Long> |
getAllUserDomainIDsWithDepartmentRole(java.lang.Long memberId)
获取某人员所有组织信息ID集合,包含部门角色(如 是一个单位下的任何一个部门的部门主管,就会返回这个部门主管的角色id)
|
java.util.List<OrgVisitor> |
getAllVisitorPO()
获取集团下的访客
|
V3xOrgMember |
getAuditAdmin()
已过时。
8.1以后接口返回的数据是不对的,随机的一个管理员
|
java.lang.String |
getAvatarImageUrl(java.lang.Long memberId)
获取人员头像
|
V3xOrgPost |
getBMPostByPostId(java.lang.Long postId)
根据岗位id获得绑定的集团基准岗
如果岗位本身为集团基准岗则返回岗位本身
如果没有绑定基准岗则返回空
|
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<MemberPost> |
getBusinessMemberPosts(java.lang.Long accountId,
java.lang.Long memberId)
获取人员的多维组织部门角色信息。
|
java.util.List<V3xOrgAccount> |
getChildAccount(java.lang.Long accountId,
boolean firstLayer)
返回当前单位的子单位,包含他自己
|
java.util.List<java.lang.Long> |
getChildDepartmentIds(java.lang.Long parentDepId,
boolean firtLayer)
获取所有子部门ID(不包含自己)
|
java.util.List<V3xOrgDepartment> |
getChildDepartments(java.lang.Long parentDepId,
boolean firtLayer)
获取所有子部门(不包含自己)
|
java.util.List<V3xOrgDepartment> |
getChildDepartments(java.lang.Long parentDepId,
boolean firtLayer,
java.lang.Boolean isInteranl)
获取所有子部门(不包含自己)
|
java.util.List<V3xOrgDepartment> |
getChildDeptsByAccountId(java.lang.Long accountId,
boolean firtLayer)
获取所有子部门(不包含自己)
|
java.util.List<V3xOrgDepartment> |
getChildExtDepartments(java.lang.Long accountId,
java.lang.Long deptId)
取得单位的部门下的外部部门
|
java.util.Map<java.lang.Long,java.util.List<V3xOrgMember>> |
getConcurentPostByAccount(java.lang.Long accountId)
返回一个单位下的兼职列表,Map<部门ID,人员列表>
|
java.util.Map<java.lang.Long,java.util.List<MemberPost>> |
getConcurentPosts(java.lang.Long accountId)
返回单位下的兼职列表,Map<部门ID,兼职列表>
|
java.util.Map<java.lang.Long,java.util.List<MemberPost>> |
getConcurentPostsByMemberId(java.lang.Long accountId,
java.lang.Long memberId)
返回单位下人员的兼职列表,Map<部门ID,兼职列表>
|
java.util.List<V3xOrgAccount> |
getConcurrentAccounts(java.lang.Long memberId)
返回人员兼职的单位列表,不包含人员所在单位。
|
V3xOrgDepartment |
getCurrentDepartment()
获取当前登录用户的所在部门(考虑兼职)
|
java.lang.String |
getCustomLoginUrlByAccountId(java.lang.Long accountId)
5.1新增接口,配合T3任务每个单位不同登录页任务项
根据单位ID获取单位独立登录地址 |
java.lang.String |
getDataByMappingDomainId(java.lang.Long domainId)
根据虚拟的domainId,获取dataId,目前只用于组织属性数据
|
V3xOrgMember |
getDefaultSystemAdmin()
获取系统预制管理员账号
1、此账号可用于发消息、预制数据等
2、此账号对应A6的单位管理员、A8的系统管理员
3、此账号不可登录
|
V3xOrgDepartment |
getDepartmentById(java.lang.Long id)
按id取部门。
|
V3xOrgDepartment |
getDepartmentByPath(java.lang.String path)
根据部门的path获得部门
|
java.util.Map<java.lang.Long,DepartmentAccess> |
getDepartmentInfoByDepartmentAccess(java.lang.Long memberId,
java.lang.Long accountId)
根据部门可见性设置,获取指定人员在指定单位能看到的部门
|
java.util.List<V3xOrgPost> |
getDepartmentPost(java.lang.Long departmentId)
获取部门下的岗位
|
java.util.List<V3xOrgRole> |
getDepartmentRolesByAccount(java.lang.Long accountID)
获取某单位的所有部门角色
|
java.util.List<V3xOrgRole> |
getDepartmentRolesWithoutDepLeaderByAccount(java.lang.Long accountID)
获取某单位排除部门分管领导外的所有部门角色
|
java.util.List<V3xOrgDepartment> |
getDepartmentsByName(java.lang.String deptName,
java.lang.Long acccountId)
根据部门名称获取部门列表
|
java.util.List<V3xOrgDepartment> |
getDepartmentsByUser(java.lang.Long memberId)
根据人员的ID取得人员的部门列表
|
java.util.List<V3xOrgTeam> |
getDepartmentTeam(java.lang.Long depId)
获取一个部门下的已启用的组列表
|
java.util.List<java.lang.Long> |
getDepartmentWorkScopeForExternal(java.lang.Long memberId)
根据人员ID获得内部人员可以访问的外部部门
|
java.util.List<java.lang.Long> |
getDepartmentWorkScopeForExternalByAccount(java.lang.Long memberId,
java.lang.Long accountId) |
java.lang.String |
getDeptFullPath(long depId)
获取部门全路径
|
int |
getDeptLevel(java.lang.Long deptId) |
java.util.List<V3xOrgDepartment> |
getDeptsByAdmin(java.lang.Long memberId,
java.lang.Long accountId)
得到所有部门管理员为当前人员的部门列表(根据单位ID获得)
|
java.util.List<V3xOrgDepartment> |
getDeptsByDeptLeader(java.lang.Long memberId,
java.lang.Long accountId)
得到所有部门分管领导为当前人员的部门列表(根据单位ID获得)
|
java.util.List<V3xOrgDepartment> |
getDeptsByManager(java.lang.Long memberId,
java.lang.Long accountId)
得到所有部门主管为当前人员的部门列表(根据单位ID获得)
|
java.util.List<V3xOrgEntity> |
getDisableEntity(java.lang.String entityClassName,
java.lang.Long accountId,
java.lang.String condition,
java.lang.Object feildvalue)
获取无效实体(删除和停用)
只给快速查询用的,每次最多只返回十条数据
|
java.util.List<java.lang.Long> |
getDomainByRole(java.lang.Long roleId,
java.lang.Long userId)
根据角色和人员ID,返回指定人员管理的单位或者部门
|
java.lang.Long |
getDomainIdByMappingData(java.lang.String dataId)
根据dataId,获取虚拟的domainId,目前只用于组织属性数据
|
java.util.List<V3xOrgEntity> |
getEntities(java.lang.String typeAndIds)
把多项组织类型和id用","以及“|”连接,格式必须与..
|
<T extends V3xOrgEntity> |
getEntitiesByName(java.lang.Class<T> clazz,
java.lang.String name,
java.lang.Long accountId)
根据名称取组织模型实体列表(从数据库中查询)
|
<T extends V3xOrgEntity> |
getEntitiesByNameWithCache(java.lang.Class<T> clazz,
java.lang.String name,
java.lang.Long accountId)
根据名称取组织模型实体列表(从缓存中获取)。
|
<T extends V3xOrgEntity> |
getEntitiesByNameWithCache(java.lang.Class<T> clazz,
java.lang.String name,
java.lang.Long accountId,
java.lang.Integer externalType) |
java.util.List<V3xOrgEntity> |
getEntitiesByOrgMetadata(java.lang.String id)
根据组织元数据属性id,获取对应的组织集合
eg:id = type_[accountId]_[metadataCloumnId]_[enumItemId] display = 部门[密级=绝密](北京分公司)
|
java.util.List<V3xOrgEntity> |
getEntitiesByOrgMetadataEnumItemId(java.lang.String type,
java.lang.Long accountId,
java.lang.Long columnId,
java.lang.Long enumItemId,
java.lang.Long departmentId)
根据组织元数据属性,获取对应的组织集合
|
<T extends com.seeyon.ctp.common.po.BasePO> |
getEntity(java.lang.Class<T> entityClass,
java.lang.Long id)
全局查找
|
V3xOrgEntity |
getEntity(java.lang.String typeAndId)
把组织类型和id用“|”连接,该方法自动分解,返回对应数据
|
V3xOrgEntity |
getEntity(java.lang.String entityType,
java.lang.Long id)
获取实体
|
java.util.List<V3xOrgEntity> |
getEntity(java.lang.String entityClassName,
java.lang.String property,
java.lang.Object value,
java.lang.Long accountId)
获取实体
|
V3xOrgEntity |
getEntityAnyType(java.lang.Long id)
已过时。
|
<T extends V3xOrgEntity> |
getEntityById(java.lang.Class<T> classType,
java.lang.Long id)
获取实体
|
<T extends V3xOrgEntity> |
getEntityByIdNoClone(java.lang.Class<T> classType,
java.lang.Long id)
获取实体,请不要调用setter,否则天诛地灭
|
<T extends V3xOrgEntity> |
getEntityByName(java.lang.Class<T> clazz,
java.util.HashSet<java.lang.String> names)
根据名称获得成员,可能会有多个,限定为有效的可以访问系统的人员
(仅包含有效人员)判断人员是否有效标识
isValid() 方法 |
java.util.List<V3xOrgEntity> |
getEntityList(java.lang.String entityClassName,
java.lang.String property,
java.lang.Object value,
java.lang.Long accountId)
根据实体的属性从表中查找实体
|
java.util.List<V3xOrgEntity> |
getEntityList(java.lang.String entityClassName,
java.lang.String property,
java.lang.Object value,
java.lang.Long accountId,
boolean isPaginate)
根据属性和属性值获取符合条件的实体列表(支持分页)
|
java.util.List<V3xOrgEntity> |
getEntityList(java.lang.String entityClassName,
java.lang.String property,
java.lang.Object value,
java.lang.Long accountId,
boolean isPaginate,
boolean equal)
根据属性和属性值获取符合条件的实体列表(支持分页)
|
java.util.List<V3xOrgEntity> |
getEntityList(java.lang.String entityClassName,
java.lang.String property,
java.lang.String value,
java.lang.Long accountId)
当你的value参数是String类型时,才能用该方法,千万不要把Long转成String,这是不道德的
|
java.util.List<V3xOrgEntity> |
getEntityListNoRelation(java.lang.String entityClassName,
java.lang.String property,
java.lang.Object value,
java.lang.Long accountId)
获取实体列表,不考虑实体关系,适用于查询组织模型实体
|
java.util.List<V3xOrgEntity> |
getEntityListNoRelation(java.lang.String entityClassName,
java.lang.String property,
java.lang.Object value,
java.lang.Long accountId,
boolean isPaginate)
获取实体列表,不考虑实体关系,适用于查询组织模型实体,分页
|
V3xOrgEntity |
getEntityNoRelation(java.lang.String entityClassName,
java.lang.String property,
java.lang.Object value,
java.lang.Long accountId)
根据实体的属性从表中查找单个实体(无需载入关系,适用于七大实体)
|
java.util.List<V3xOrgEntity> |
getEntityNoRelation(java.lang.String entityClassName,
java.lang.String property,
java.lang.Object value,
java.lang.Long accountId,
boolean isPaginate,
boolean equal,
java.lang.Boolean enable)
获取实体列表,不考虑实体关系,适用于查询组织模型实体,分页
|
V3xOrgEntity |
getEntityOnlyById(java.lang.Long id)
已过时。
|
java.util.List<V3xOrgEntity> |
getEntitys4Merge(java.lang.String typeAndId)
把组织类型和id用“|”连接,该方法自动分解,返回对应数据
用于解析选人界面部门角色和部门岗位返回实体 |
java.util.List<? extends V3xOrgEntity> |
getEntitysByPropertysNoRelation(java.lang.String entityClassName,
java.lang.Long accountId,
boolean isPaginate,
java.lang.Object... args)
根据实体属性获得实体(不载入实体关系)
|
java.util.List<V3xOrgEntity> |
getEntitysByRole(java.lang.Long unitId,
java.lang.Long roleId)
根据角色获取实体
|
java.util.List<V3xOrgEntity> |
getEntitysByRole(java.lang.Long unitId,
java.lang.String rolename)
根据角色名称获得分配的实体
|
java.util.List<V3xOrgEntity> |
getEntitysByRoleAllowRepeat(java.lang.Long unitId,
java.lang.Long roleId)
根据角色获得实体(包含重复的)
|
java.lang.String |
getEntitysStrByRole(java.lang.Long unitId,
java.lang.String rolename)
根据角色名称获得分配的实体(返回选人字符串格式)
|
V3xOrgLevel |
getErrorMapLevel(java.lang.Long accountId,
java.lang.Integer levelId,
java.lang.Integer groupLevelId)
得到错误映射的集团职务级别
用于设定职务级别做映射时错误查询映射的职务级别 |
java.util.List<V3xOrgEntity> |
getExternalMemberWorkScope(java.lang.Long memberId,
boolean includeDisabled)
获得外部人员访问权限
|
java.util.List<MemberPost> |
getExtMemberPostByDepartment(java.lang.Long departmentId,
boolean firtLayer) |
java.util.List<V3xOrgMember> |
getExtMembersByDepartment(java.lang.Long departmentId,
boolean firtLayer)
获得部门下所有外部成员成员
|
V3xOrgEntity |
getGlobalEntity(java.lang.String entityType,
java.lang.Long id)
从全局获取实体
|
V3xOrgMember |
getGroupAdmin()
已过时。
8.1以后接口返回的数据是不对的,随机的一个管理员
|
java.util.List<V3xOrgUnit> |
getGroupByMemberAndRole(java.lang.Long memberId,
java.lang.Long roleId)
获得人员所在角色的域(如人员A为哪个部门的主管,人员B为哪个单位的hr管理员,如果是部门角色,则得到是哪个部门的角色)
|
java.lang.String |
getInitPWD()
獲取系統設置的初始密碼,如果沒設置過,則為123456
|
java.lang.String |
getInitPWDForPage() |
V3xOrgLevel |
getLevelByGroupLevelId(java.lang.Long GroupLevelId,
java.lang.Long accountId)
获取集团职务级别在指定单位下映射的单位职务级别
|
V3xOrgLevel |
getLevelById(java.lang.Long id)
按id取职务级别。
|
java.lang.String |
getLoginMemberDepartment(java.lang.String accountId)
获取当前用户的所属部门(包含兼职的),选人格式
|
V3xOrgLevel |
getLowestLevel(java.lang.Long accountId)
获得单位下启用状态的最低职务级别
原主要作用: 1.通讯录代码检查职务级别 2.公共方法functions中检查职务级别 3.集团管理员将未分配人员到指定单位去检验如果没有职务分配一个最小的职务级别DistributeManager 建议应用代码采用统一的方法进行职务级别的处理,建议使用Functions中的代码 |
java.util.List<MemberPost> |
getMainPostByAccount(java.lang.Long accountId) |
java.lang.Integer |
getMaxMemberSortByAccountId(java.lang.Long accountId)
获取某单位内人员最大排序号
|
V3xOrgMember |
getMemberById(java.lang.Long memberId)
按id取人员。
|
java.util.List<V3xOrgMember> |
getMemberByIndistinctName(java.lang.String indistinctName)
根据模糊名称返回人员列表,可能会有多个,限定为有效的可以访问系统的人员
(仅包含有效人员)判断人员是否有效标识
isValid() 方法 |
V3xOrgMember |
getMemberByLoginName(java.lang.String loginName)
按登录名取人员,限定为有效的可以访问系统的人。
|
java.util.List<V3xOrgMember> |
getMemberByName(java.lang.String memberName)
根据名称获得成员,可能会有多个,限定为有效的可以访问系统的人员
(仅包含有效人员)判断人员是否有效标识
isValid() 方法 |
java.util.List<V3xOrgMember> |
getMemberByName(java.lang.String memberName,
java.lang.Long accountId)
根据名称获得成员,可能会有多个,限定为有效的可以访问系统的人员
(仅包含有效人员)判断人员是否有效标识
isValid() 方法 |
java.util.List<MemberPost> |
getMemberConcurrentPosts(java.lang.Long memberId)
获取人员的兼职信息
|
java.util.List<MemberPost> |
getMemberConcurrentPostsByAccountId(java.lang.Long memberId,
java.lang.Long acccountId)
获取人员在特定单位的兼职信息
|
java.util.List<RelationMemberAttribute> |
getMemberCustomAttribute()
获取可用于流程和表单的人员自定义属性信息
|
int |
getMemberExternalType(java.lang.Long memberId) |
java.lang.Object |
getMemberInfoByAttribute(java.lang.Long memberId,
java.lang.String attributeCode)
根据人员的属性code 或者自定义属性id,得到属性值
|
java.util.List<V3xOrgMember> |
getMemberListByMobile(java.lang.String mobile,
java.lang.Long accountId)
根据手机号码获取人员(内部人员)
|
java.util.List<V3xOrgMember> |
getMemberListWithOuterByMobile(java.lang.String mobile,
java.lang.Long accountId)
根据手机号码获取人员(包含编外人员)
|
java.util.Map<java.lang.String,V3xOrgMember> |
getMemberNamesMap(java.lang.Long accountId)
取得一个大Map<姓名, 人员对象>;key同时包括:姓名、姓名(code)、姓名(登录名);
当姓名存在重复时,就没有单个姓名的key 并做线程级缓存 e.g: 谭敏锋 谭敏锋(10202) 谭敏锋(tanmf) 刘强(402034) 刘强(liuq1) 刘强(670001) 刘强(liuq2) |
java.util.Map<java.lang.String,V3xOrgMember> |
getMemberNamesMap(java.lang.Long accountId,
java.lang.Integer externalType) |
java.util.Map<java.lang.Long,java.lang.Integer> |
getMemberNumsMapWithConcurrent()
取得系统中每个单位的人数(含兼职人员)
|
java.lang.Integer |
getMemberNumsWithOuter(java.lang.Long accountId)
获取当前注册并且可用的人员数,并包含外部人员
|
java.util.List<MemberPost> |
getMemberPostByAccount(java.lang.Long accountId,
OrgConstants.MemberPostType type)
获取单位下的所有部门岗位信息
|
java.util.List<MemberPost> |
getMemberPostByAccount(java.lang.Long accountId,
OrgConstants.MemberPostType type,
boolean isDealRepeat)
获取单位下的所有部门岗位信息[流程人员匹配专用,其他应用不要使用]
|
java.util.List<MemberPost> |
getMemberPostByAccountRole(long accountId,
java.lang.String roleNameOrId,
boolean isDealRepeat)
根据单位角色ID获取的所有部门岗位信息[流程人员匹配专用,其他应用不要使用]
|
java.util.List<MemberPost> |
getMemberPostByAccountRoleOfUp(long accountId,
java.lang.String roleNameOrId) |
java.util.List<MemberPost> |
getMemberPostByAccountRoleOfUp(long accountId,
java.lang.String roleNameOrId,
boolean isDealRepeat)
根据单位角色ID获取的所有部门岗位信息(未找到向上找)[流程人员匹配专用,其他应用不要使用]
|
java.util.List<MemberPost> |
getMemberPostByBusinessAccount4Wf(java.lang.Long accountId,
boolean isDealRepeat)
获取单位下的所有部门人员【虚拟岗位】信息,多维组织不存在岗位,返回的岗位信息全部是-1[流程人员匹配专用,其他应用不要使用]
|
java.util.List<MemberPost> |
getMemberPostByDepartment(java.lang.Long departmentId,
boolean firtLayer) |
java.util.List<MemberPost> |
getMemberPostByDepartment(java.lang.Long departmentId,
boolean firtLayer,
OrgConstants.MemberPostType type) |
java.util.List<MemberPost> |
getMemberPostByDepartment(java.lang.Long departmentId,
boolean firtLayer,
OrgConstants.MemberPostType type,
boolean isDealRepeat)
获取部门下的所有部门岗位信息[流程人员匹配专用,其他应用不要使用]
|
java.util.List<MemberPost> |
getMemberPostByDepartmentPost(long departmentId,
long postId0) |
java.util.List<MemberPost> |
getMemberPostByDepartmentPostOfDown(long departmentId,
long postId) |
java.util.List<MemberPost> |
getMemberPostByDepartmentPostOfUp(java.lang.Long departmentId,
java.lang.Long postId) |
java.util.List<MemberPost> |
getMemberPostByDepartmentRole(long departmentId,
java.lang.String roleNameOrId) |
java.util.List<MemberPost> |
getMemberPostByDepartmentRole(long departmentId,
java.lang.String roleNameOrId,
boolean isDealRepeat)
根据部门角色ID获取的所有部门岗位信息[流程人员匹配专用,其他应用不要使用]
|
java.util.List<MemberPost> |
getMemberPostByDepartmentRoleOfUp(long departmentId,
java.lang.String roleNameOrId) |
java.util.List<MemberPost> |
getMemberPostByDepartmentRoleOfUp(long departmentId,
java.lang.String roleNameOrId,
boolean isDealRepeat)
根据部门角色ID获取的所有部门岗位信息(未找到向上找)[流程人员匹配专用,其他应用不要使用]
|
java.util.List<MemberPost> |
getMemberPostByLevel(java.lang.Long levelId) |
java.util.List<MemberPost> |
getMemberPostByLevel(java.lang.Long levelId,
boolean isDealRepeat)
根据职务级别ID获取的所有部门岗位信息[流程人员匹配专用,其他应用不要使用]
|
java.util.List<MemberPost> |
getMemberPostByLevel(java.lang.Long levelId,
boolean isDealRepeat,
boolean memberAllPost)
根据职务级别ID获取的所有部门岗位信息[流程人员匹配专用,其他应用不要使用]
|
java.util.List<MemberPost> |
getMemberPostByMemberPostOfOnlyUp(long memberId,
long postId0,
long accountId) |
java.util.List<MemberPost> |
getMemberPostByMemberPostOfOnlyUp(long memberId,
long postId,
long accountId,
boolean dealRepeat) |
java.util.List<MemberPost> |
getMemberPostByMemberPostOfUp(long memberId,
long postId0,
long accountId) |
java.util.List<MemberPost> |
getMemberPostByPost(java.lang.Long postId)
通过职务级别或者职务关联的全部人员【默认去重】
|
java.util.List<MemberPost> |
getMemberPostByPost(java.lang.Long postId,
java.lang.Long accountId)
通过职务级别或者职务关联的全部人员【默认去重】
|
java.util.List<MemberPost> |
getMemberPostByPost(java.lang.Long postId,
java.lang.Long accountId,
boolean isDealRepeat)
通过职务级别或者职务关联的全部人员
|
java.util.List<MemberPost> |
getMemberPostByPost4Access(java.lang.Long postId,
java.lang.Long accountId) |
java.util.List<MemberPost> |
getMemberPostByRole(java.lang.Long unitId,
java.lang.Long roleId) |
java.util.List<MemberPost> |
getMemberPostByRole(java.lang.Long unitId,
java.lang.Long roleId,
boolean isDealRepeat)
根据角色ID获取的所有部门岗位信息[流程人员匹配专用,其他应用不要使用]
|
java.util.List<MemberPost> |
getMemberPostByRole(java.lang.Long unitId,
java.lang.String roleName) |
java.util.List<MemberPost> |
getMemberPostByTeam(java.lang.Long teamId)
获取组下人员岗位部门信息[流程人员匹配专用,其他应用不要使用]
|
java.util.List<MemberPost> |
getMemberPostByType(java.lang.String type,
java.lang.Long id) |
java.util.List<MemberPost> |
getMemberPostByType(java.lang.String type,
java.lang.String id) |
java.util.List<V3xOrgRelationship> |
getMemberPostRelastionships(java.lang.Long memberId,
java.lang.Long accountId,
java.util.EnumMap<OrgConstants.RelationshipObjectiveName,java.lang.Object> enummap)
已过时。
方法的参数定义不规范
|
V3xOrgRelationship |
getMemberPostRSById(java.lang.Long id)
获取人员关系通过Id
|
java.util.List<MemberPost> |
getMemberPosts(java.lang.Long accountId,
java.lang.Long memberId)
得到这个人在指定单位下的岗位信息
|
java.util.List<MemberRole> |
getMemberRoles(java.lang.Long memberId,
java.lang.Long unitId)
根据人员id和单位id,获取这个人所在单位内拥有的角色列表,包含部门角色
注意:这个方法会返回人员的岗位、部门、职务所拥有的角色 | unitId类型 | 部门角色 | 单位角色 |集团角色 | --------------------------------------------- | null | V | V | V | | 部门ID | V | | | | 单位ID | | V | V | | 集团ID | | | V | |
java.util.Set<java.lang.String> |
getMemberRolesForSet(java.lang.Long id,
java.lang.Long accountId) |
java.util.List<V3xOrgMember> |
getMembersByAccountRoleOfUp(long accountId,
java.lang.String roleNameOrId)
取指定单位下指定单位下的人员,自动往上查找
|
java.util.List<V3xOrgMember> |
getMembersByDepartment(java.lang.Long departmentId,
boolean firstLayer)
取得部门人员。
|
java.util.List<V3xOrgMember> |
getMembersByDepartment(java.lang.Long departmentId,
boolean firstLayer,
boolean checkSecretLevel)
取得部门人员。
|
java.util.List<V3xOrgMember> |
getMembersByDepartment(java.lang.Long departmentId,
boolean firtLayer,
OrgConstants.MemberPostType type)
根据部门及人员类型查找部门下的人员
|
java.util.List<V3xOrgMember> |
getMembersByDepartmentPost(long departmentId,
long postId)
解析指定人员所在部门的某个岗位下的人员(仅取该部门)
|
java.util.List<V3xOrgMember> |
getMembersByDepartmentPostOfDown(long departmentId,
long postId)
解析指定人员所在部门的某个岗位下的人员
|
java.util.List<V3xOrgMember> |
getMembersByDepartmentPostOfUp(long departmentId,
long postId)
解析指定人员所在部门的某个岗位下的人员,当本部门没有匹配到的时候,自动往上级部门查找,直到全单位
|
java.util.List<V3xOrgMember> |
getMembersByDepartmentRole(long departmentId,
java.lang.String roleName)
取部门角色对应的所有人员。
|
java.util.Map |
getMembersByDepartmentRoleByStr(java.lang.String departmentTypeAndId,
java.lang.String roleNameOrId)
获取部门角色关联的人员,返回选人格式
|
java.util.List<V3xOrgMember> |
getMembersByDepartmentRoleOfAll(long departmentId,
java.lang.String roleNameOrId)
取指定部门及其所有上级部门 指定角色下的所有人员
|
java.util.List<V3xOrgMember> |
getMembersByDepartmentRoleOfUp(long departmentId,
java.lang.String roleNameOrId)
取指定部门下指定角色下的人员,自动往上查找
|
java.util.List<V3xOrgMember> |
getMembersByDeptIdWithCheckLevelScope(java.lang.Long memberId,
java.lang.Long departmentId)
获取某人在某部门内能看到的所有人员列表,根据单位内的工作范围过滤
|
java.util.List<V3xOrgMember> |
getMembersByExternal(java.lang.Long memberId,
boolean includeDisabled)
获取编外人员可访问的人员
|
java.util.List<V3xOrgMember> |
getMembersByLevel(java.lang.Long levelId)
取具有某个职务级别的所有人员。
|
java.util.List<V3xOrgMember> |
getMembersByMemberDepartmentRoleOfAll(java.lang.Long memberId,
java.lang.String roleNameOrId)
获取人员的所在的部门(包含主副岗 和 多维组织部门)及其上级部门的部门角色成员。
|
java.util.List<V3xOrgMember> |
getMembersByMemberMetadataEnumItemId(java.lang.Long accountId,
java.lang.Long enumItemId)
根据人员信息标签(人员主数据枚举值id),查询人员集合
|
java.util.List<V3xOrgMember> |
getMembersByMemberPostOfOnlyUp(long memberId,
long postId,
long accountId)
取指定人员在指定单位的工作部门(含主\副\兼)下指定岗位下的人员,自动往上查找 (常用于本部门匹配),如果向上找不到,返回空集合
|
java.util.List<V3xOrgMember> |
getMembersByMemberPostOfUp(long memberId,
long postId,
long accountId)
取指定人员在指定单位的工作部门(含主\副\兼)下指定岗位下的人员,自动往上查找 (常用于本部门匹配),如果向上找不到,去全单位找
|
java.util.List<V3xOrgMember> |
getMembersByMemberRoleOfUp(long memberId,
java.lang.String roleNameOrId,
java.lang.Long accountId)
取指定人员在指定单位的工作部门(含主\副\兼)下指定角色下的人员,自动往上查找 (常用于本部门匹配)
|
V3xOrgMember |
getMembersByMobile(java.lang.String mobile,
java.lang.Long accountId)
根据手机查询人员
注意:手机号没有唯一判断,系统可能存在某两个人相同手机号,但接口只返回第一个匹配的结果,如果没有查询到则返回null |
java.util.List<V3xOrgMember> |
getMembersByOrgType(OrgTypeIdBO bo)
根据OrgTypeIdBO返回member
|
java.util.List<V3xOrgMember> |
getMembersByPost(java.lang.Long postId)
取具有某个岗位的所有有效人员,包括主岗、副岗和兼职为指定岗位的所有人员
(仅包含有效人员)判断人员是否有效标识 isValid() 方法 |
java.util.List<V3xOrgMember> |
getMembersByPost(java.lang.Long postId,
java.lang.Long accountId)
获取岗位下的人员,支持标准岗
/--- PostId --|-- accountId --|--------------- 返回值 ------------/
| 标准岗 | null/集团ID | 全集团所有单位引用自建岗下的人员 |
| 标准岗 | 单位ID | 指定单位引用自建岗下的人员 |
| 单位自建岗 | 此参数被忽略 | 指定单位引用自建岗下的人员 |
|
java.util.List<V3xOrgMember> |
getMembersByPost4Access(java.lang.Long postId,
java.lang.Long accountId)
获取岗位下的人员,支持集团基准岗,限制单位可见范围
/--- PostId --|-- accountId --|--------------- 返回值 ------------/
| 标准岗 | null/集团ID | 全集团所有单位引用自建岗下的人员 |
| 标准岗 | 单位ID | 指定单位引用自建岗下的人员 |
| 单位自建岗 | 此参数被忽略 | 指定单位引用自建岗下的人员 |
|
java.util.List<V3xOrgMember> |
getMembersByRole(java.lang.Long unitId,
java.lang.Long roleId,
OrgConstants.MemberPostType... postTypes)
获取一个单位或部门下面指定角色的人员列表
|
java.util.List<V3xOrgMember> |
getMembersByRole(java.lang.Long unitId,
java.lang.String roleName)
获取一个单位或部门下面指定角色名称的人员列表
|
java.util.List<V3xOrgMember> |
getMembersByTeam(java.lang.Long teamId)
获取组的成员
|
java.util.List<V3xOrgMember> |
getMembersByTeam(java.lang.Long teamId,
java.util.Set<java.lang.Long> teamIds)
获取组的成员
|
java.util.List<V3xOrgMember> |
getMembersByTeam(java.lang.Long teamId,
java.util.Set<java.lang.Long> teamIds,
OrgConstants.TeamMemberType[] types)
根据组id和组内人员类型取得组人员
|
java.util.List<V3xOrgMember> |
getMembersByType(java.lang.String type,
java.lang.Long id)
固定角色的解析
|
java.util.List<V3xOrgMember> |
getMembersByType(java.lang.String type,
java.lang.String id)
固定角色的解析
|
java.util.Set<V3xOrgMember> |
getMembersByTypeAndIds(java.lang.String typeAndIds)
根据类型及ID查询所属人员
把多项组织类型和id用","以及“|”连接,格式必须与..
|
java.util.List<MemberPost> |
getMemberSecondPosts(java.lang.Long memberId)
获取某人员的所有副岗
|
int |
getMemberSizeByDepartment(java.lang.Long departmentId,
boolean firstLayer) |
java.lang.Integer |
getMembersNumByDepartment(java.lang.Long departmentId,
boolean firtLayer)
获取部门下的人员数量,包括副岗兼职
|
java.lang.Integer |
getMembersNumByDepartment(java.lang.Long departmentId,
boolean firtLayer,
boolean includeOuter)
获取部门下的人员数量,包括副岗兼职
|
java.lang.Long |
getMemberSort(java.lang.Long memberId,
java.lang.String sortType,
java.lang.Long entityId)
获取人员排序
|
java.util.List<V3xOrgMember> |
getMembersWithDisableByDepartment(java.lang.Long departmentId,
boolean firtLayer)
取得部门人员,包含无效(停用和删除人员)。
|
java.util.List<V3xOrgMember> |
getMemberWorkScopeForExternal(java.lang.Long memberId,
boolean includeDisabled)
根据人员ID获得内部人员与外部人员的互访权限(不包括挂靠部门的情况)
|
java.util.List<V3xOrgMember> |
getMemberWorkScopeForExternalByAccountId(java.lang.Long memberId,
java.lang.Long acountId,
boolean includeDisabled) |
java.util.HashMap<java.lang.Long,com.seeyon.ctp.util.UniqueList<V3xOrgMember>> |
getMemberWorkScopeForExternalForMap(java.lang.Long memberId)
根据人员ID获得内部人员与外部人员的互访权限(不包括挂靠部门的情况)
|
java.util.List<MetadataColumnBO> |
getMetadataColumn(java.lang.Integer moduleType)
根据类型,获取元数据字段信息
|
java.util.Date |
getModifiedTimeStamp(java.lang.Long accountId)
获取修改时间
|
org.apache.commons.lang3.tuple.Pair<V3xOrgDepartment,java.util.List<MemberPost>> |
getMpostAndDepartmentByDepartmentRoleOfUp(long departmentId,
java.lang.String roleNameOrId,
boolean isDealRepeat)
根据部门角色ID获取的所有部门岗位信息(未找到向上找)[流程人员匹配专用,其他应用不要使用]
|
boolean |
getOrgExportFlag()
获取导出组织信息动作的标志
|
java.util.List<OrgRelationship> |
getOrgRelationshipPO(OrgConstants.RelationshipType type,
java.lang.Long sourceId,
java.lang.Long accountId,
java.util.EnumMap<OrgConstants.RelationshipObjectiveName,java.lang.Object> objectiveIds,
com.seeyon.ctp.util.FlipInfo flipInfo) |
V3xOrgDepartment |
getParentDepartment(java.lang.Long depId)
获取某单位下某部门的父部门
|
V3xOrgUnit |
getParentUnit(V3xOrgUnit orgunit)
获取组织的父组织
|
V3xOrgUnit |
getParentUnitById(java.lang.Long unitId)
根据组织ID获取父组织
|
java.util.List<V3xOrgRole> |
getPlugDisableRole(java.lang.Long accountId)
获取插件判断,返回不应该出现的角色列表
|
V3xOrgPost |
getPostById(java.lang.Long id)
按Id取岗位。
|
java.util.Map<java.lang.Long,java.util.Set<java.lang.String>> |
getRepeatUnitNameMap(java.util.List<java.lang.Long> accountIds)
获取指定单位下的重名单位和部门信息
1.一个单位下的一级子单位名称和一级子部门名称重复。
|
java.util.List<V3xOrgRole> |
getRoleByCode(java.lang.String code,
java.lang.Long accountId) |
V3xOrgRole |
getRoleById(java.lang.Long id)
按照角色实体Id取实体
|
V3xOrgRole |
getRoleByName(java.lang.String roleName,
java.lang.Long accountId)
按名称取角色。
|
java.lang.String |
getRoleByOtherBenchmarkRole(java.lang.String roleId,
java.lang.Long unitId)
在集团基准角色同步到各单位的情况下,传入一个单位的映射角色ID,再根据传入的unitId,获取此单位/部门映射对应的角色Id
|
java.util.Map<java.lang.String,OrgRoleDefaultDefinition> |
getRoleDefinitions()
取得所有的扩展角色定义。
|
java.util.Map<java.lang.String,java.util.List<V3xOrgUnit>> |
getRoleUnitByMemberId(java.lang.Long memberId,
java.lang.String... roleNames)
获取指定人员的角色所在的单位/部门
|
V3xOrgAccount |
getRootAccount()
获得当前单位所在树的根单位, 当前只能有一个根单位
|
V3xOrgAccount |
getRootAccount(long accountId)
获得当前单位所在树的根单位, 当前只能有一个根单位;如果是独立单位就返回
null |
java.util.List<MemberPost> |
getSecConMemberByDept(java.lang.Long departmentId)
返回一个部门下的副岗和兼职列表,Map<部门ID,人员列表>
|
java.util.List<MemberPost> |
getSecondPostByAccount(java.lang.Long accountId)
返回一个单位下的副岗列表,Map<部门ID,人员列表>
|
V3xOrgMember |
getSystemAdmin()
已过时。
8.1以后接口返回的数据是不对的,随机的一个管理员
|
V3xOrgTeam |
getTeamById(java.lang.Long id)
按Id取组。
|
java.util.List<V3xOrgTeam> |
getTeamByType(int type,
java.lang.Long accId)
根据不同的类型获得组。
|
java.util.Set<java.lang.Long> |
getTeamIdsByMember(java.lang.Long memberId,
java.lang.Long accountId) |
java.util.List<V3xOrgEntity> |
getTeamMember(java.lang.Long teamId)
获取组的成员。
|
java.util.List<V3xOrgEntity> |
getTeamMember(java.lang.Long teamId,
OrgConstants.TeamMemberType orgRelType)
获取组的不同类型的成员。
|
java.util.List<V3xOrgMember> |
getTeamRelative(java.lang.Long teamId)
获取组的相关人员
|
java.util.List<V3xOrgTeam> |
getTeamsByMember(java.lang.Long memberId,
java.lang.Long accountId)
得到我能访问的组,
一、普通用户包括(前提是这个单位下的组):
1.
|
java.util.List<V3xOrgTeam> |
getTeamsByName(java.lang.String teamName,
java.lang.Long acccountId)
根据组名称获取组列表
|
java.util.List<V3xOrgTeam> |
getTeamsByOwner(java.lang.Long ownerId,
java.lang.Long accountID)
获得个人组列表
|
java.util.List<V3xOrgTeam> |
getTeamsExceptPersonByMember(java.lang.Long memberId)
通过人员ID获得除个人组所有的组
|
V3xOrgUnit |
getUnitById(java.lang.Long id)
根据ID获取组织结构
|
java.util.Map<java.lang.String,java.lang.Object> |
getUpdateEntityAndLastTime(java.lang.String entityClassName,
java.util.Date updateTime,
java.lang.Long accountId)
指定单位下,获取指定实体在指定更新日期后的列表数据和最后更新时间
|
java.util.List<java.lang.Long> |
getUserDomainIDs(java.lang.Long memberId,
java.lang.Long accountId,
java.lang.String... types)
个人组织属性访问:从组织模型获得当前执行人的所有相关组织属性,不包含部门角色
|
java.util.List<java.lang.Long> |
getUserDomainIDs(java.lang.Long memberId,
java.lang.String... types)
个人组织属性访问:从组织模型获得当前执行人的所有相关组织属性,不包含部门角色
参数说明: userId:当前用户的ID types: 需要返回的域的类型,这是一个变参,可根据需要选择输入域的类型。
|
java.lang.String |
getUserIDDomain(java.lang.Long memberId,
java.lang.Long accountId,
java.lang.String... types)
个人组织属性访问:从组织模型获得当前执行人的所有相关组织属性,逗号分隔,不包含部门角色
|
java.lang.String |
getUserIDDomain(java.lang.Long memberId,
java.lang.String... types)
个人组织属性访问:从组织模型获得当前执行人的所有相关组织属性,不包含部门角色
|
java.util.List<V3xOrgRelationship> |
getV3xOrgRelationship(OrgConstants.RelationshipType type,
java.lang.Long sourceId,
java.lang.Long accountId,
java.util.EnumMap<OrgConstants.RelationshipObjectiveName,java.lang.Object> objectiveIds)
已过时。
方法的参数定义不规范,
|
V3xOrgVisitor |
getVisitorById(java.lang.Long visitorId)
根据id获取访客对象
|
boolean |
hasAdminRole(java.lang.Long memberId)
判断当前人员是否有管理员权限
|
boolean |
hasBaseRole(java.util.List<java.lang.Long> roleIds,
long memberId)
判断人员是否具有给定的角色对应的基准角色
|
boolean |
hasChildren(java.lang.Long parentDepId,
boolean includeExternal)
是否包含子部门
|
java.lang.Boolean |
hasSpecificRole(java.lang.Long memberId,
java.lang.Long unitId,
java.lang.String roleName)
获取一个单位或部门下面指定人员是否具有特定角色
|
boolean |
isAccessGroup(java.lang.Long accountId)
根据单位ID判断是否可以访问集团
|
boolean |
isAccountInGroupTree(java.lang.Long accountId)
判断单位是否在集团树内
|
boolean |
isAdmin(java.lang.String loginName)
判断当前登录账号是否具有管理员角色(特指后台管理角色)
|
java.lang.Boolean |
isAdministrator()
判断当前登录用户在当前单位是否是管理员
|
java.lang.Boolean |
isAdministrator(java.lang.String loginName,
V3xOrgAccount account)
判断是否为单位管理员。
|
java.lang.Boolean |
isAdministratorById(java.lang.Long memberId,
java.lang.Long accountId)
判断是否为单位管理员。
|
java.lang.Boolean |
isAdministratorById(java.lang.Long memberId,
V3xOrgAccount account)
判断是否为单位管理员。
|
java.lang.Boolean |
isAuditAdmin(java.lang.String loginName)
是否为审计管理员
|
java.lang.Boolean |
isAuditAdminById(java.lang.Long memberId)
是否为审计管理员
|
boolean |
isBaseRole(java.lang.String roleCode)
判断角色是否是固定角色
|
void |
isCreateDeptSpace(java.lang.Long deptId,
boolean isCreateDept)
修改部门空间开启状态
|
java.lang.Boolean |
isDepAdminRole(java.lang.Long memberId,
java.lang.Long depId)
判断人员是否具有部门管理员角色。
|
boolean |
isDepartmentAdmin()
判断当前登录用户是否有是部门管理员
|
java.lang.Boolean |
isDocGroupAdmin(java.lang.String loginName,
V3xOrgAccount account)
判断是否为集团库管理员。
|
boolean |
isEmptyTeamScope(V3xOrgTeam team)
判断组的公开范围是否有公开范围如果有公开组,如果没有就是私有组
|
java.lang.Boolean |
isExistLoginName(java.lang.String loginName)
登录名是否重复
|
boolean |
isGroup()
判断当前登录单位是否是集团
|
java.lang.Boolean |
isGroupAdmin(java.lang.String loginName,
V3xOrgAccount account)
判断是否为集团管理员。
|
java.lang.Boolean |
isGroupAdminById(java.lang.Long memberId)
判断是否为集团管理员。
|
boolean |
isGroupAuditAdmin(long memberId)
判断人员是否为[三员分类-系统级-审计管理员]
|
boolean |
isGroupLevelMapRight(java.lang.Long accountId,
java.lang.Integer levelId,
java.lang.Integer groupLevelId)
判断当前职务级别是否映射到正确的集团职务级别
|
boolean |
isGroupSecretAdmin(long memberId)
判断人员是否为[三员分类-系统级-安全管理员]
|
boolean |
isGroupSystemAdmin(long memberId)
判断人员是否为[三员分类-系统级-管理员]
|
boolean |
isHRAdmin()
判断当前人员是否是HR管理员
|
boolean |
isInDepartment(long memberId,
java.util.List<java.lang.Long> deptIdList,
boolean includeChild)
判断指定人员是否在指定部门。
|
boolean |
isInDepartment(long memberId,
java.util.List<java.lang.String> memberPostTypes,
java.util.List<java.lang.Long> deptIdList,
boolean hasChildDep)
判断指定人员是否在指定的部门
|
boolean |
isInDepartmentPathOf(java.lang.Long parentDepId,
java.lang.Long deptid)
根据前面的部门,判断后面的部门是否是其子部门
|
boolean |
isInitAdmin(long memberId)
判断人员是否为[初始化管理员Id]
|
boolean |
isModified(java.util.Date date,
java.lang.Long accountId)
是否修改
|
java.lang.Boolean |
isOldPassword(java.lang.String password,
boolean isEncrypt) |
java.lang.Boolean |
isOldPasswordCorrect(java.lang.String password)
已过时。
|
java.lang.Boolean |
isPlatformAdmin(java.lang.String loginName)
是否为平台管理员
|
java.lang.Boolean |
isPlatformAdminById(java.lang.Long memberId)
是否为平台管理员
|
boolean |
isPost(long memberId,
long postId,
OrgConstants.MemberPostType... postTypes)
判断人员是否具备指定岗位。
|
boolean |
isRole(java.lang.Long memberId,
java.lang.Long unitId,
java.lang.String roleNameOrId,
OrgConstants.MemberPostType... postTypes)
判断是否是指定角色,支持单位角色和部门下的角色
|
boolean |
isSecondMemberForAccount(java.lang.Long memberId,
java.lang.Long accountId)
判断指定人员是否是制定单位的兼职人员(给肖林提供的接口)
|
boolean |
isSetDepartmentAccess(java.lang.Long accountId)
指定单位是否进行了部门可见性设置。
|
java.lang.Boolean |
isSuperAdmin(java.lang.String loginName,
V3xOrgAccount account)
是否是超级管理员
|
java.lang.Boolean |
isSuperAdminById(java.lang.Long memberId) |
java.lang.Boolean |
isSystemAdmin(java.lang.String loginName)
判断是否为系统管理员,
为isAdministrator、isSystemAdmin、isGroupAdmin、isAccountAdmin一起调用而优化,请勿传入与loginName不匹配的account。
|
java.lang.Boolean |
isSystemAdminById(java.lang.Long memberId)
判断是否为系统管理员,
为isAdministrator、isSystemAdmin、isGroupAdmin、isAccountAdmin一起调用而优化,请勿传入与loginName不匹配的account。
|
boolean |
isUnitAuditAdmin(long memberId,
long accountId)
判断人员是否为[三员分类-单位级-审计管理员]
|
boolean |
isUnitSecretAdmin(long memberId,
long accountId)
判断人员是否为[三员分类-单位级-安全管理员]
|
boolean |
isUnitSystemAdmin(long memberId,
long accountId)
判断人员是否为[三员分类-单位级-系统管理员]
|
boolean |
isValidMemberPost(V3xOrgRelationship rel) |
boolean |
isVjoinUnitAdmin(java.lang.Long memberId,
java.lang.Long loginAccount)
判断是否为Vjoin单位类型管理员
|
com.seeyon.ctp.util.FlipInfo |
showBatchModifyResult(com.seeyon.ctp.util.FlipInfo fi,
java.util.Map params) |
java.lang.String |
showDepartmentFullPath(java.lang.Long deptId)
获取该部门的全路径
|
org.apache.commons.lang3.tuple.Pair<java.lang.Boolean,java.lang.String> |
updatePassword(java.lang.String phone,
java.lang.String password)
根据手机号修改人员密码
|
@AjaxAccess boolean canShowPeopleCard(java.lang.Long memberid_me, java.lang.Long memeberid2_other) throws com.seeyon.ctp.common.exceptions.BusinessException
memberid_me
- memeberid2_other
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgRole> getPlugDisableRole(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List getAllMembersByDepartmentBO(java.lang.Long departmentId)
departmentId
- java.lang.String getLoginMemberDepartment(java.lang.String accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
boolean checkPwdStrength(java.lang.String password)
password
- <T extends V3xOrgEntity> T getEntityById(java.lang.Class<T> classType, java.lang.Long id) throws com.seeyon.ctp.common.exceptions.BusinessException
T
- classType
- 实体类id
- 实体的IDcom.seeyon.ctp.common.exceptions.BusinessException
<T extends V3xOrgEntity> T getEntityByIdNoClone(java.lang.Class<T> classType, java.lang.Long id) throws com.seeyon.ctp.common.exceptions.BusinessException
classType
- id
- com.seeyon.ctp.common.exceptions.BusinessException
V3xOrgEntity getEntity(java.lang.String entityType, java.lang.Long id) throws com.seeyon.ctp.common.exceptions.BusinessException
entityType
- 实体类型id
- 实体的IDcom.seeyon.ctp.common.exceptions.BusinessException
boolean checkAccessAccount(java.lang.Long currentMemberId, java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
currentMemberId
- 当前人员memberId
- 被比较人员com.seeyon.ctp.common.exceptions.BusinessException
V3xOrgEntity getEntity(java.lang.String typeAndId) throws com.seeyon.ctp.common.exceptions.BusinessException
typeAndId
- 用"|"组合的字符串,如:Member|-92874958395或者Department|3461234123458com.seeyon.ctp.common.exceptions.BusinessException
@Deprecated V3xOrgEntity getEntityAnyType(java.lang.Long id) throws com.seeyon.ctp.common.exceptions.BusinessException
id
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgEntity> getEntitys4Merge(java.lang.String typeAndId) throws com.seeyon.ctp.common.exceptions.BusinessException
typeAndId
- 用"|"组合的字符串,如:Department_Post|-92874958395_3461234123458com.seeyon.ctp.common.exceptions.BusinessException
boolean isDepartmentAdmin() throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getAllMembersWithOutConcurrent(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- com.seeyon.ctp.common.exceptions.BusinessException
boolean isHRAdmin() throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
V3xOrgEntity getEntityNoRelation(java.lang.String entityClassName, java.lang.String property, java.lang.Object value, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
entityClassName
- 实体类名称property
- 属性名称value
- 属性值accountId
- 单位idEntity
entity.com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgEntity> getEntities(java.lang.String typeAndIds) throws com.seeyon.ctp.common.exceptions.BusinessException
typeAndIds
- 先用",",再用"|"组合的字符串,如:Member|-92874958395,Department|3461234123458,Department|5435234764545com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgEntity> getEntityList(java.lang.String entityClassName, java.lang.String property, java.lang.Object value, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
entityClassName
- 实体类property
- 属性value
- 属性值accountId
- 单位idEntity
entity.com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgEntity> getEntityList(java.lang.String entityClassName, java.lang.String property, java.lang.String value, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
entityClassName
- 实体类的名称property
- 属性value
- 属性值accountId
- 单位idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgEntity> getEntityList(java.lang.String entityClassName, java.lang.String property, java.lang.Object value, java.lang.Long accountId, boolean isPaginate) throws com.seeyon.ctp.common.exceptions.BusinessException
entityClassName
- 实体类property
- 属性value
- 属性值accountId
- 单位idisPaginate
- 是否分页:true分页false不分页com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgEntity> getEntityList(java.lang.String entityClassName, java.lang.String property, java.lang.Object value, java.lang.Long accountId, boolean isPaginate, boolean equal) throws com.seeyon.ctp.common.exceptions.BusinessException
entityClassName
- 实体类property
- 属性value
- 属性值accountId
- 单位idisPaginate
- 是否分页:true分页false不分页equal
- 字符串类型的参数是否完全匹配,true:完全匹配 ,用=, false:模糊匹配, 用likecom.seeyon.ctp.common.exceptions.BusinessException
java.util.Set<V3xOrgMember> getMembersByTypeAndIds(java.lang.String typeAndIds) throws com.seeyon.ctp.common.exceptions.BusinessException
typeAndIds
- 先用",",再用"|"组合的字符串,如:Member|-92874958395,Department|3461234123458,Department|5435234764545com.seeyon.ctp.common.exceptions.BusinessException
V3xOrgEntity getGlobalEntity(java.lang.String entityType, java.lang.Long id) throws com.seeyon.ctp.common.exceptions.BusinessException
entityType
- 实体类型id
- 实体idcom.seeyon.ctp.common.exceptions.BusinessException
V3xOrgAccount getAccountByLoginName(java.lang.String loginName) throws com.seeyon.ctp.common.exceptions.BusinessException
loginName
- 人员登录名com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgAccount> getChildAccount(java.lang.Long accountId, boolean firstLayer) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 单位idfirstLayer
- 是否只取第一层: true只取第一层子单位 false查询所有子单位com.seeyon.ctp.common.exceptions.BusinessException
V3xOrgAccount getRootAccount() throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
V3xOrgAccount getRootAccount(long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
null
accountId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgAccount> concurrentAccount(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgAccount> concurrentAccounts4ChangeAccount(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员com.seeyon.ctp.common.exceptions.BusinessException
java.lang.Boolean isAdministrator() throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgAccount> getConcurrentAccounts(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员Idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberConcurrentPosts(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.Map<java.lang.Long,java.util.List<MemberPost>> getConcurentPosts(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 单位idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.Map<java.lang.Long,java.util.List<MemberPost>> getConcurentPostsByMemberId(java.lang.Long accountId, java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 单位idmemberId
- 人员idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getSecondPostByAccount(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMainPostByAccount(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.Map<java.lang.Long,java.util.List<V3xOrgMember>> getConcurentPostByAccount(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgAccount> accessableAccounts(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgAccount> accessableAccounts(java.lang.Long memberId, boolean includeDisable) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员idincludeDisable
- 是否包含无效单位com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgAccount> accessableAccountsByUnitId(java.lang.Long unitId) throws com.seeyon.ctp.common.exceptions.BusinessException
unitId
- 单位idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPosts(java.lang.Long accountId, java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 可以为null
,表示所有单位memberId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberSecondPosts(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgDutyLevel> getAllDutyLevels(java.lang.Long accountID, java.lang.String type, java.lang.String value) throws com.seeyon.ctp.common.exceptions.BusinessException
accountID
- 单位idtype
- value
- com.seeyon.ctp.common.exceptions.BusinessException
<T extends V3xOrgEntity> java.util.List<T> getEntitiesByName(java.lang.Class<T> clazz, java.lang.String name, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
clazz
- 组织模型实体类型,如OrgDepartment.classname
- 实体的名称accountId
- 所在单位Idcom.seeyon.ctp.common.exceptions.BusinessException
<T extends V3xOrgEntity> java.util.List<T> getEntitiesByNameWithCache(java.lang.Class<T> clazz, java.lang.String name, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
clazz
- 组织模型实体类型,如OrgDepartment.classname
- 实体的名称accountId
- 所在单位Id null
表示任意单位com.seeyon.ctp.common.exceptions.BusinessException
<T extends V3xOrgEntity> java.util.List<T> getEntitiesByNameWithCache(java.lang.Class<T> clazz, java.lang.String name, java.lang.Long accountId, java.lang.Integer externalType) throws com.seeyon.ctp.common.exceptions.BusinessException
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
- 父部门idfirtLayer
- true只查询一层子部门 false查询所有子部门com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<java.lang.Long> getChildDepartmentIds(java.lang.Long parentDepId, boolean firtLayer) throws com.seeyon.ctp.common.exceptions.BusinessException
parentDepId
- 父部门idfirtLayer
- true只查询一层子部门 false查询所有子部门com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgDepartment> getChildDeptsByAccountId(java.lang.Long accountId, boolean firtLayer) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 单位idfirtLayer
- true只查询一层子部门 false查询所有子部门com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgDepartment> getChildDepartments(java.lang.Long parentDepId, boolean firtLayer, java.lang.Boolean isInteranl) throws com.seeyon.ctp.common.exceptions.BusinessException
parentDepId
- 父部门idfirtLayer
- true只查询一层子部门 false查询所有子部门isInteranl
- 是否为内部部门,false==外单位com.seeyon.ctp.common.exceptions.BusinessException
V3xOrgDepartment getParentDepartment(java.lang.Long depId) throws com.seeyon.ctp.common.exceptions.BusinessException
depId
- 部门idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgDepartment> getAllParentDepartments(java.lang.Long depId) throws com.seeyon.ctp.common.exceptions.BusinessException
depId
- 部门idcom.seeyon.ctp.common.exceptions.BusinessException
V3xOrgDepartment getDepartmentByPath(java.lang.String path) throws com.seeyon.ctp.common.exceptions.BusinessException
path
- com.seeyon.ctp.common.exceptions.BusinessException
V3xOrgAccount getAccountByPath(java.lang.String path) throws com.seeyon.ctp.common.exceptions.BusinessException
path
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgTeam> getTeamsByMember(java.lang.Long memberId, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
得到我能访问的组, 一、普通用户包括(前提是这个单位下的组): 1. 我建的私有组 2. 我是成员或关联人员系统组 3. 公开范围有我的系统组(单位、集团、项目)4. 我是部门管理员的部门系统组二、单位管理员: 1. 这个单位所有的单位系统组(不包括部门组) 2. 集团公开范围有这个单位的系统组 三、集团、审计、系统管理员管理员 1. 所有的集团系统组 2. 这个单位的系统组2. 公开范围有我的系统组其它: 1. 看到集团组的前提是单位在集团树下
memberId
- 人员idaccountId
- 单位id,每次都返回集团组com.seeyon.ctp.common.exceptions.BusinessException
java.util.Set<java.lang.Long> getTeamIdsByMember(java.lang.Long memberId, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgTeam> getTeamsExceptPersonByMember(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgEntity> getTeamMember(java.lang.Long teamId, OrgConstants.TeamMemberType orgRelType) throws com.seeyon.ctp.common.exceptions.BusinessException
teamId
- 组idorgRelType
- 四类人员的标志com.seeyon.ctp.common.exceptions.BusinessException
boolean isEmptyTeamScope(V3xOrgTeam team) throws com.seeyon.ctp.common.exceptions.BusinessException
team
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgEntity> getTeamMember(java.lang.Long teamId) throws com.seeyon.ctp.common.exceptions.BusinessException
teamId
- 组idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByTeam(java.lang.Long teamId) throws com.seeyon.ctp.common.exceptions.BusinessException
teamId
- 组idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByTeam(java.lang.Long teamId, java.util.Set<java.lang.Long> teamIds) throws com.seeyon.ctp.common.exceptions.BusinessException
teamId
- 组idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getTeamRelative(java.lang.Long teamId) throws com.seeyon.ctp.common.exceptions.BusinessException
teamId
- 组idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByRole(java.lang.Long unitId, java.lang.Long roleId, OrgConstants.MemberPostType... postTypes) throws com.seeyon.ctp.common.exceptions.BusinessException
unitId
- 部门或单位的ID , 如果是部门角色,当unitId为空或者设置的是单位的id,表示可以查出单位下所有的部门角色人员roleId
- 角色的IDcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getAllMembersByRole(java.lang.Long unitId, java.lang.String roleCode) throws com.seeyon.ctp.common.exceptions.BusinessException
unitId
- roleCode
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByRole(java.lang.Long unitId, java.lang.String roleName) throws com.seeyon.ctp.common.exceptions.BusinessException
unitId
- 部门或单位的IDroleName
- 角色名称com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgEntity> getEntitysByRole(java.lang.Long unitId, java.lang.Long roleId) throws com.seeyon.ctp.common.exceptions.BusinessException
unitId
- roleId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<java.lang.Long> getDomainByRole(java.lang.Long roleId, java.lang.Long userId) throws com.seeyon.ctp.common.exceptions.BusinessException
roleId,已知的角色的ID,比如“部门管理员”
- userId,当前人员的ID
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByDepartmentRole(long departmentId, java.lang.String roleName) throws com.seeyon.ctp.common.exceptions.BusinessException
isValid()
方法departmentId
- 部门IdroleName
- 角色名称com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByDepartmentRoleOfUp(long departmentId, java.lang.String roleNameOrId) throws com.seeyon.ctp.common.exceptions.BusinessException
departmentId
- roleNameOrId
- 可以是ID,也可以是Namecom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByDepartmentRoleOfAll(long departmentId, java.lang.String roleNameOrId) throws com.seeyon.ctp.common.exceptions.BusinessException
departmentId
- roleNameOrId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByMemberDepartmentRoleOfAll(java.lang.Long memberId, java.lang.String roleNameOrId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- roleNameOrId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByMemberRoleOfUp(long memberId, java.lang.String roleNameOrId, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- roleNameOrId
- 可以是ID,也可以是NameaccountId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByDepartmentPost(long departmentId, long postId) throws com.seeyon.ctp.common.exceptions.BusinessException
departmentId
- 部门idpostId
- 岗位id,可以是基准岗com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByDepartmentPostOfUp(long departmentId, long postId) throws com.seeyon.ctp.common.exceptions.BusinessException
departmentId
- 部门idpostId
- 岗位id,可以是基准岗com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByDepartmentPostOfDown(long departmentId, long postId) throws com.seeyon.ctp.common.exceptions.BusinessException
departmentId
- 部门idpostId
- 岗位id,可以是基准岗com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByMemberPostOfUp(long memberId, long postId, long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- postId
- accountId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByMemberPostOfOnlyUp(long memberId, long postId, long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- postId
- accountId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByType(java.lang.String type, java.lang.String id) throws com.seeyon.ctp.common.exceptions.BusinessException
type
- 角色的类型,接收的格式是:OrgConstants.ORGENT_TYPE
,支持Department_Role,Department_Postid
- 对应的ID,如果是Department_Role,这是123123434_231234236,兼容系统预置角色123123434_DeptAdmincom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByOrgType(OrgTypeIdBO bo) throws com.seeyon.ctp.common.exceptions.BusinessException
bo
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByType(java.lang.String type, java.lang.Long id) throws com.seeyon.ctp.common.exceptions.BusinessException
type
- 角色的类型,接收的格式是:OrgConstants.ORGENT_TYPE
,不支持Department_Role,Department_Postid
- 对应的IDcom.seeyon.ctp.common.exceptions.BusinessException
java.util.Map<java.lang.Long,java.lang.String> getAllMemberNames(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 单位Id,如果为null
或OrgEntity.VIRTUAL_ACCOUNT_ID
则返回全集团的人员名称。com.seeyon.ctp.common.exceptions.BusinessException
java.util.Map<java.lang.Long,java.lang.String> getAllAccountShortNames() throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getExtMembersByDepartment(java.lang.Long departmentId, boolean firtLayer) throws com.seeyon.ctp.common.exceptions.BusinessException
departmentId
- 部门idfirtLayer
- true只查询本部门 false同时查询子部门com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getAllExtMembers(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMemberByName(java.lang.String memberName) throws com.seeyon.ctp.common.exceptions.BusinessException
isValid()
方法memberName
- 人员姓名com.seeyon.ctp.common.exceptions.BusinessException
<T extends V3xOrgEntity> java.util.Map<java.lang.String,java.util.List<T>> getEntityByName(java.lang.Class<T> clazz, java.util.HashSet<java.lang.String> names) throws com.seeyon.ctp.common.exceptions.BusinessException
isValid()
方法names
- 姓名(多个)com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMemberByName(java.lang.String memberName, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
isValid()
方法memberName
- accountId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMemberByIndistinctName(java.lang.String indistinctName) throws com.seeyon.ctp.common.exceptions.BusinessException
isValid()
方法indistinctName
- 模糊名称com.seeyon.ctp.common.exceptions.BusinessException
java.lang.Boolean isAdministrator(java.lang.String loginName, V3xOrgAccount account) throws com.seeyon.ctp.common.exceptions.BusinessException
loginName
- 登录名account
- 登录名标识的用户所在单位。com.seeyon.ctp.common.exceptions.BusinessException
java.lang.Boolean isAdministratorById(java.lang.Long memberId, V3xOrgAccount account) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员idaccount
- 登录名标识的用户所在单位。com.seeyon.ctp.common.exceptions.BusinessException
java.lang.Boolean isAdministratorById(java.lang.Long memberId, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员idaccountId
- 登录名标识的用户所在单位。com.seeyon.ctp.common.exceptions.BusinessException
java.lang.Boolean isDocGroupAdmin(java.lang.String loginName, V3xOrgAccount account) throws com.seeyon.ctp.common.exceptions.BusinessException
loginName
- 登录名account
- 登录名标识的用户所在单位。com.seeyon.ctp.common.exceptions.BusinessException
java.lang.Boolean isSystemAdmin(java.lang.String loginName) throws com.seeyon.ctp.common.exceptions.BusinessException
loginName
- 登录名com.seeyon.ctp.common.exceptions.BusinessException
java.lang.Boolean isSystemAdminById(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员idcom.seeyon.ctp.common.exceptions.BusinessException
java.lang.Boolean isAuditAdmin(java.lang.String loginName) throws com.seeyon.ctp.common.exceptions.BusinessException
loginName
- 登录名com.seeyon.ctp.common.exceptions.BusinessException
java.lang.Boolean isAuditAdminById(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员idcom.seeyon.ctp.common.exceptions.BusinessException
java.lang.Boolean isPlatformAdmin(java.lang.String loginName) throws com.seeyon.ctp.common.exceptions.BusinessException
loginName
- 登录名com.seeyon.ctp.common.exceptions.BusinessException
java.lang.Boolean isPlatformAdminById(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员idcom.seeyon.ctp.common.exceptions.BusinessException
java.lang.Boolean isGroupAdmin(java.lang.String loginName, V3xOrgAccount account) throws com.seeyon.ctp.common.exceptions.BusinessException
loginName
- 登录名account
- 登录名标识的用户所在单位。com.seeyon.ctp.common.exceptions.BusinessException
java.lang.Boolean isGroupAdminById(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员idcom.seeyon.ctp.common.exceptions.BusinessException
boolean isModified(java.util.Date date, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
date
- accountId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.Date getModifiedTimeStamp(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<java.lang.Long> getUserDomainIDs(java.lang.Long memberId, java.lang.String... types) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- types
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<java.lang.Long> getAllUserDomainIDs(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<java.lang.Long> getAllUserDomainIDsWithDepartmentRole(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<java.lang.Long> getUserDomainIDs(java.lang.Long memberId, java.lang.Long accountId, java.lang.String... types) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- accountId
- types
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<org.apache.commons.lang3.tuple.Pair<OrgConstants.ORGENT_TYPE,java.util.List<java.lang.Long>>> getAllDomainTypeAndIds(java.lang.Long memberId, java.lang.String... types) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<org.apache.commons.lang3.tuple.Pair<OrgConstants.ORGENT_TYPE,java.util.List<java.lang.Long>>> getAllDomainTypeAndIds(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<org.apache.commons.lang3.tuple.Pair<OrgConstants.ORGENT_TYPE,java.util.List<java.lang.Long>>> getAllDomainTypeAndIdsWithDepartmentRole(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<org.apache.commons.lang3.tuple.Pair<OrgConstants.ORGENT_TYPE,java.util.List<java.lang.Long>>> getAllDomainTypeAndIds(java.lang.Long memberId, java.lang.Long accountId, java.lang.String... types) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.Map<OrgConstants.ORGENT_TYPE,java.util.List<java.lang.Long>> getAllDomainTypeAndIdMap(java.lang.Long memberId, java.lang.String... types) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.Map<OrgConstants.ORGENT_TYPE,java.util.List<java.lang.Long>> getAllDomainTypeAndIdMap(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.Map<OrgConstants.ORGENT_TYPE,java.util.List<java.lang.Long>> getAllDomainTypeAndIdsWithDepartmentRoleMap(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.Map<OrgConstants.ORGENT_TYPE,java.util.List<java.lang.Long>> getAllDomainTypeAndIdMap(java.lang.Long memberId, java.lang.Long accountId, java.lang.String... types) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.lang.String getUserIDDomain(java.lang.Long memberId, java.lang.String... types) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- types
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getAllMembers(java.lang.Long accountId, boolean includeChildAcc) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- includeChildAcc
- true时包所有含子单位,false时仅本单位com.seeyon.ctp.common.exceptions.BusinessException
java.lang.String getUserIDDomain(java.lang.Long memberId, java.lang.Long accountId, java.lang.String... types) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- accountId
- types
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgDepartment> getDeptsByManager(java.lang.Long memberId, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员idaccountId
- 单位idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgDepartment> getDeptsByDeptLeader(java.lang.Long memberId, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员idaccountId
- 单位idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgDepartment> getDeptsByAdmin(java.lang.Long memberId, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- accountId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgDepartment> getDepartmentsByUser(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 用户Idcom.seeyon.ctp.common.exceptions.BusinessException
boolean isAccountInGroupTree(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 单位idcom.seeyon.ctp.common.exceptions.BusinessException
java.lang.Integer getAllMembersNumsWithOutConcurrent(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.lang.Integer getMemberNumsWithOuter(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.Map<java.lang.Long,java.lang.Integer> getMemberNumsMapWithConcurrent() throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
boolean isBaseRole(java.lang.String roleCode) throws com.seeyon.ctp.common.exceptions.BusinessException
roleCode
- com.seeyon.ctp.common.exceptions.BusinessException
java.lang.Integer getAllMembersNumsByAccountId(java.lang.Long accountId, java.lang.Integer type, java.lang.Boolean isInternal, java.lang.Boolean enable, java.lang.String condition, java.lang.Object feildvalue)
accountId
- type
- isInternal
- enable
- condition
- feildvalue
- java.lang.Integer getAllMembersNumsByAccountIds(java.util.List<java.lang.Long> paramList, java.lang.Integer paramInteger, java.lang.Boolean paramBoolean1, java.lang.Boolean paramBoolean2, java.lang.String paramString, java.lang.Object paramObject)
java.util.List<V3xOrgEntity> getEntity(java.lang.String entityClassName, java.lang.String property, java.lang.Object value, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
entityClassName
- 实体类property
- 属性value
- 属性值accountId
- 单位idcom.seeyon.ctp.common.exceptions.BusinessException
V3xOrgPost getAccountPostByBMPostId(java.lang.Long bmPostId, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
bmPostId
- 基准岗IDaccountId
- 单位IDcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgEntity> getEntityListNoRelation(java.lang.String entityClassName, java.lang.String property, java.lang.Object value, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
entityClassName
- 实体类property
- 属性value
- 属性值accountId
- 单位idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgEntity> getEntityListNoRelation(java.lang.String entityClassName, java.lang.String property, java.lang.Object value, java.lang.Long accountId, boolean isPaginate) throws com.seeyon.ctp.common.exceptions.BusinessException
entityClassName
- 实体类property
- 属性value
- 属性值accountId
- 单位idisPaginate
- 是否分页com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgEntity> getEntityNoRelation(java.lang.String entityClassName, java.lang.String property, java.lang.Object value, java.lang.Long accountId, boolean isPaginate, boolean equal, java.lang.Boolean enable) throws com.seeyon.ctp.common.exceptions.BusinessException
entityClassName
- 实体类property
- 属性value
- 属性值accountId
- 单位idisPaginate
- 是否分页equal
- 是否精确匹配enable
- 是否启用com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgEntity> getExternalMemberWorkScope(java.lang.Long memberId, boolean includeDisabled) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员idincludeDisabled
- 是否包含无效人员com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMemberWorkScopeForExternal(java.lang.Long memberId, boolean includeDisabled) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员idincludeDisabled
- 是否包含无效人员com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMemberWorkScopeForExternalByAccountId(java.lang.Long memberId, java.lang.Long acountId, boolean includeDisabled) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByExternal(java.lang.Long memberId, boolean includeDisabled) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员idincludeDisabled
- 包含无效人员com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<java.lang.Long> getDepartmentWorkScopeForExternal(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<java.lang.Long> getDepartmentWorkScopeForExternalByAccount(java.lang.Long memberId, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getAllAccountsExtMember(boolean includeDisabled) throws com.seeyon.ctp.common.exceptions.BusinessException
includeDisabled
- 是否包含无效人员com.seeyon.ctp.common.exceptions.BusinessException
V3xOrgMember getMembersByMobile(java.lang.String mobile, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
mobile
- 手机号accountId
- 单位ID,如果查询全集团请传集团IDcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMemberListByMobile(java.lang.String mobile, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
mobile
- 手机号码accountId
- 单位id,(V3xOrgEntity.VIRTUAL_ACCOUNT_ID:在全集团查找)com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMemberListWithOuterByMobile(java.lang.String mobile, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
mobile
- accountId
- 单位id,(V3xOrgEntity.VIRTUAL_ACCOUNT_ID:在全集团查找)com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<? extends V3xOrgEntity> getEntitysByPropertysNoRelation(java.lang.String entityClassName, java.lang.Long accountId, boolean isPaginate, java.lang.Object... args) throws com.seeyon.ctp.common.exceptions.BusinessException
entityClassName
- accountId
- isPaginate
- args
- com.seeyon.ctp.common.exceptions.BusinessException
V3xOrgPost getBMPostByPostId(java.lang.Long postId) throws com.seeyon.ctp.common.exceptions.BusinessException
postId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgPost> getAllBenchmarkPost(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 单位Id;如果值为OrgEntity.VIRTUAL_ACCOUNT_ID
,等同于取全集团所有被引用的基准岗,但不包含未被引用的。com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgTeam> getDepartmentTeam(java.lang.Long depId) throws com.seeyon.ctp.common.exceptions.BusinessException
depId
- 部门idcom.seeyon.ctp.common.exceptions.BusinessException
boolean isRole(java.lang.Long memberId, java.lang.Long unitId, java.lang.String roleNameOrId, OrgConstants.MemberPostType... postTypes) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 指定的人员unitId
- 可以是单位、部门,可以为null;如果是单位角色,这里给的是部门,暂无此情况roleNameOrId
- 角色名:FormAdmin、HrAdmin、ProjectBuild、DepManager、DepAdmin;或者角色IDpostTypes
- 岗位类型组合:主岗、副岗、兼职。com.seeyon.ctp.common.exceptions.BusinessException
boolean isPost(long memberId, long postId, OrgConstants.MemberPostType... postTypes) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员IdpostId
- 岗位Id,岗位为基准岗时检查基准岗下所有岗位postTypes
- 岗位类型组合:主岗、副岗、兼职。com.seeyon.ctp.common.exceptions.BusinessException
boolean isInDepartment(long memberId, java.util.List<java.lang.Long> deptIdList, boolean includeChild) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- deptIdList
- 部门Id列表,人员只要在其中任何一个部门下就返回true。includeChild
- 是否判断子部门com.seeyon.ctp.common.exceptions.BusinessException
V3xOrgMember getSystemAdmin()
findSystemAdmin()
,
getDefaultSystemAdmin()
V3xOrgMember getDefaultSystemAdmin()
V3xOrgMember getAuditAdmin()
findAuditAdmin()
V3xOrgMember getGroupAdmin()
findGroupAdmin()
V3xOrgMember getAdministrator(java.lang.Long accountId)
accountId
- findAdministrator(long)
java.util.List<V3xOrgMember> findSystemAdmin()
java.util.List<V3xOrgMember> findAuditAdmin()
java.util.List<V3xOrgMember> findGroupAdmin()
java.util.List<V3xOrgMember> findAdministrator(long accountId)
java.lang.String getRoleByOtherBenchmarkRole(java.lang.String roleId, java.lang.Long unitId) throws com.seeyon.ctp.common.exceptions.BusinessException
roleId
- unitId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgPost> getDepartmentPost(java.lang.Long departmentId) throws com.seeyon.ctp.common.exceptions.BusinessException
departmentId
- 部门idcom.seeyon.ctp.common.exceptions.BusinessException
boolean isInDepartment(long memberId, java.util.List<java.lang.String> memberPostTypes, java.util.List<java.lang.Long> deptIdList, boolean hasChildDep) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- memberPostTypes
- OrgConstants.MemberPostType
岗位类型:主管、副岗、兼职,可以为null,表示所有deptIdList
- hasChildDep
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.Map<java.lang.String,OrgRoleDefaultDefinition> getRoleDefinitions()
java.util.List<V3xOrgDepartment> getAllDepartments(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 单位Idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgDepartment> getAllDepartmentsWidthDisable(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgLevel> getAllLevels(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 单位Id。com.seeyon.ctp.common.exceptions.BusinessException
java.util.Map getMembersByDepartmentRoleByStr(java.lang.String departmentTypeAndId, java.lang.String roleNameOrId) throws com.seeyon.ctp.common.exceptions.BusinessException
departmentTypeAndId
- roleNameOrId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgDutyLevel> getAllDutyLevels(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 单位Id。com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgPost> getAllPosts(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 单位Idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgRole> getAllRoles(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 单位Idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgRole> getAllRolesByBond(java.lang.Long accountId, OrgConstants.ROLE_BOND... types) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- types
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgRole> getAllDepRoles(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 单位Idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgTeam> getAllTeams(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 单位Idcom.seeyon.ctp.common.exceptions.BusinessException
V3xOrgAccount getAccountById(java.lang.Long id) throws com.seeyon.ctp.common.exceptions.BusinessException
id
- 单位Id。null
。com.seeyon.ctp.common.exceptions.BusinessException
V3xOrgDepartment getDepartmentById(java.lang.Long id) throws com.seeyon.ctp.common.exceptions.BusinessException
id
- 部门idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgEntity> getEntitysByRoleAllowRepeat(java.lang.Long unitId, java.lang.Long roleId) throws com.seeyon.ctp.common.exceptions.BusinessException
unitId
- roleId
- com.seeyon.ctp.common.exceptions.BusinessException
V3xOrgLevel getLevelById(java.lang.Long id) throws com.seeyon.ctp.common.exceptions.BusinessException
id
- 职务级别idcom.seeyon.ctp.common.exceptions.BusinessException
boolean getOrgExportFlag()
V3xOrgMember getMemberById(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员Id。com.seeyon.ctp.common.exceptions.BusinessException
java.lang.Integer getMaxMemberSortByAccountId(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- com.seeyon.ctp.common.exceptions.BusinessException
V3xOrgUnit getUnitById(java.lang.Long id) throws com.seeyon.ctp.common.exceptions.BusinessException
id
- com.seeyon.ctp.common.exceptions.BusinessException
V3xOrgMember getMemberByLoginName(java.lang.String loginName) throws com.seeyon.ctp.common.exceptions.BusinessException
loginName
- 人员登录名com.seeyon.ctp.common.exceptions.BusinessException
V3xOrgPost getPostById(java.lang.Long id) throws com.seeyon.ctp.common.exceptions.BusinessException
空
)。id
- 岗位Idcom.seeyon.ctp.common.exceptions.BusinessException
V3xOrgRole getRoleById(java.lang.Long id) throws com.seeyon.ctp.common.exceptions.BusinessException
id
- 角色Idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberRole> getMemberRoles(java.lang.Long memberId, java.lang.Long unitId) throws com.seeyon.ctp.common.exceptions.BusinessException
| unitId类型 | 部门角色 | 单位角色 |集团角色 | --------------------------------------------- | null | V | V | V | | 部门ID | V | | | | 单位ID | | V | V | | 集团ID | | | V |
memberId
- 人员idunitId
- 组织id
1. 可以为null
,表示全系统担任所有“单位角色”和“部门角色”
2. 单位id:在这个单位下担任的“单位角色”和“部门角色”
3. 部门id:在这个部门下担任的“部门角色”
com.seeyon.ctp.common.exceptions.BusinessException
V3xOrgRole getRoleByName(java.lang.String roleName, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
roleName
- 角色名称,取值范围见OrgConstants.Role_SYSTEM_NAME
null
。com.seeyon.ctp.common.exceptions.BusinessException
V3xOrgTeam getTeamById(java.lang.Long id) throws com.seeyon.ctp.common.exceptions.BusinessException
id
- 组Idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByDepartment(java.lang.Long departmentId, boolean firstLayer) throws com.seeyon.ctp.common.exceptions.BusinessException
departmentId
- 部门IdfirstLayer
- 为true
时不包含子部门人员,否则取本部门以及所有子部门的人员。com.seeyon.ctp.common.exceptions.BusinessException
int getMemberSizeByDepartment(java.lang.Long departmentId, boolean firstLayer) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByDepartment(java.lang.Long departmentId, boolean firstLayer, boolean checkSecretLevel) throws com.seeyon.ctp.common.exceptions.BusinessException
departmentId
- 部门IdfirstLayer
- 为true
时不包含子部门人员,否则取本部门以及所有子部门的人员。checkSecretLevel
- 是否过滤密级com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersWithDisableByDepartment(java.lang.Long departmentId, boolean firtLayer) throws com.seeyon.ctp.common.exceptions.BusinessException
departmentId
- firtLayer
- 是否包含子部门。 true: 不包含子部门,false:包含子部门com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByLevel(java.lang.Long levelId) throws com.seeyon.ctp.common.exceptions.BusinessException
isValid()
方法levelId
- 职务级别Idcom.seeyon.ctp.common.exceptions.BusinessException
V3xOrgMember
java.util.List<MemberPost> getMemberPostByLevel(java.lang.Long levelId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.lang.Boolean isDepAdminRole(java.lang.Long memberId, java.lang.Long depId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员Id。depId
- 部门Idtrue
,否则返回false
。com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getAllConcurrentPostByAccount(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 单位idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getAllConcurrentPostBydepartment(java.lang.Long departmentId) throws com.seeyon.ctp.common.exceptions.BusinessException
departmentId
- 部门idcom.seeyon.ctp.common.exceptions.BusinessException
V3xOrgAccount getAccountByName(java.lang.String accountName) throws com.seeyon.ctp.common.exceptions.BusinessException
accountName
- 单位名称com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgRole> getDepartmentRolesByAccount(java.lang.Long accountID) throws com.seeyon.ctp.common.exceptions.BusinessException
accountID
- 单位idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgRole> getDepartmentRolesWithoutDepLeaderByAccount(java.lang.Long accountID) throws com.seeyon.ctp.common.exceptions.BusinessException
accountID
- com.seeyon.ctp.common.exceptions.BusinessException
V3xOrgLevel getErrorMapLevel(java.lang.Long accountId, java.lang.Integer levelId, java.lang.Integer groupLevelId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- levelId
- groupLevelId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgUnit> getGroupByMemberAndRole(java.lang.Long memberId, java.lang.Long roleId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员IDroleId
- 角色IDcom.seeyon.ctp.common.exceptions.BusinessException
V3xOrgLevel getLowestLevel(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 单位IDcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByDepartment(java.lang.Long departmentId, boolean firtLayer, OrgConstants.MemberPostType type) throws com.seeyon.ctp.common.exceptions.BusinessException
departmentId
- 部门IDfirtLayer
- 是否只取当前部门人员type
- 人员类型: null
表示主+副+兼com.seeyon.ctp.common.exceptions.BusinessException
boolean isGroupLevelMapRight(java.lang.Long accountId, java.lang.Integer levelId, java.lang.Integer groupLevelId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- levelId
- groupLevelId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getAllMembers(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
isValid()
方法accountId
- 单位Id V3xOrgEntity.VIRTUAL_ACCOUNT_ID表示全系统com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getAllMembersWithOuter(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.Map<java.lang.String,V3xOrgMember> getMemberNamesMap(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
e.g: 谭敏锋 谭敏锋(10202) 谭敏锋(tanmf) 刘强(402034) 刘强(liuq1) 刘强(670001) 刘强(liuq2)
accountId
- V3xOrgEntity.VIRTUAL_ACCOUNT_ID表示全系统com.seeyon.ctp.common.exceptions.BusinessException
java.util.Map<java.lang.String,V3xOrgMember> getMemberNamesMap(java.lang.Long accountId, java.lang.Integer externalType) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByPost(java.lang.Long postId) throws com.seeyon.ctp.common.exceptions.BusinessException
isValid()
方法postId
- 岗位Id,如果为基准岗,则包括所有基准岗关联岗位的人员。com.seeyon.ctp.common.exceptions.BusinessException
V3xOrgDepartment getCurrentDepartment() throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByPost(java.lang.Long postId, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
/--- PostId --|-- accountId --|--------------- 返回值 ------------/ | 标准岗 | null/集团ID | 全集团所有单位引用自建岗下的人员 | | 标准岗 | 单位ID | 指定单位引用自建岗下的人员 | | 单位自建岗 | 此参数被忽略 | 指定单位引用自建岗下的人员 |
postId
- accountId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgTeam> getTeamByType(int type, java.lang.Long accId) throws com.seeyon.ctp.common.exceptions.BusinessException
type
- : 组类型com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgTeam> getTeamsByOwner(java.lang.Long ownerId, java.lang.Long accountID) throws com.seeyon.ctp.common.exceptions.BusinessException
ownerId
- 组拥有者的人员idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgAccount> getAllAccounts() throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
V3xOrgUnit getParentUnit(V3xOrgUnit orgunit) throws com.seeyon.ctp.common.exceptions.BusinessException
orgunit
- com.seeyon.ctp.common.exceptions.BusinessException
V3xOrgUnit getParentUnitById(java.lang.Long unitId) throws com.seeyon.ctp.common.exceptions.BusinessException
unitId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgEntity> findModifyEntity(java.lang.String entityClassName, java.util.Date dateTime) throws com.seeyon.ctp.common.exceptions.BusinessException
entityClassName
- dateTime
- com.seeyon.ctp.common.exceptions.BusinessException
java.lang.Boolean isSuperAdmin(java.lang.String loginName, V3xOrgAccount account) throws com.seeyon.ctp.common.exceptions.BusinessException
loginName
- account
- com.seeyon.ctp.common.exceptions.BusinessException
java.lang.Boolean isSuperAdminById(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgRelationship> getV3xOrgRelationship(OrgConstants.RelationshipType type, java.lang.Long sourceId, java.lang.Long accountId, java.util.EnumMap<OrgConstants.RelationshipObjectiveName,java.lang.Object> objectiveIds) throws com.seeyon.ctp.common.exceptions.BusinessException
type
- 不可以为nullsourceId
- 可以为null
accountId
- 可以为null
objectiveIds
- 可以为null
可以为null
,value类型只能是Long/String/List<Long>/List<String>com.seeyon.ctp.common.exceptions.BusinessException
boolean checkLevelScope(java.lang.Long memberID1, java.lang.Long memberID2) throws com.seeyon.ctp.common.exceptions.BusinessException
memberID1
- memberID2
- com.seeyon.ctp.common.exceptions.BusinessException
boolean isGroup() throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getAllMembersByAccountId(java.lang.Long accountId, java.lang.Integer type, java.lang.Boolean isInternal, java.lang.Boolean enable, java.lang.String condition, java.lang.Object feildvalue, com.seeyon.ctp.util.FlipInfo flipInfo)
isDelete=false and isVirtual=false and isAssigned=true
,即把删除人员、虚拟账号、取消分配缺省排除,通过其它接口提供accountId
- 所属单位(不包含兼职人员),可以为null
,表示不区分type
- 人员类型:正式/非正式/...,可以为null
,表示不区分isInternal
- 可以为null
,表示不区分enable
- 可以为null
,表示不区分condition
- 取值:name, code, loginName, orgPostId(主岗), orgLevelId(主岗的职务级别)feildvalue
- condition对应的值,类型必须也是对应的,比如name就是String,orgPostId就必须是Long,否则数据库抛出异常flipInfo
- 分页信息,可以为null
,表示所有java.util.List<V3xOrgMember> getAllMembersByDepartmentId(java.lang.Long departmentId, boolean isCludChildDepart, java.lang.Integer type, java.lang.Boolean isInternal, java.lang.Boolean enable, java.lang.String condition, java.lang.Object feildvalue, com.seeyon.ctp.util.FlipInfo flipInfo)
isDelete=false and isVirtual=false and isAssigned=true
,即把删除人员、虚拟账号、取消分配缺省排除,通过其它接口提供departmentId
- 不能为nullisCludChildDepart
- 是否包含子部门,true
包含type
- 人员类型:正式/非正式/...,可以为null
,表示不区分isInternal
- 可以为null
,表示不区分enable
- 可以为null
,表示不区分condition
- 取值:name, code, loginName, orgPostId(主岗), orgLevelId(主岗的职务级别)feildvalue
- condition对应的值,类型必须也是对应的,比如name就是String,orgPostId就必须是Long,否则数据库抛出异常flipInfo
- 分页信息,可以为null
,表示所有@Deprecated java.lang.Boolean isOldPasswordCorrect(java.lang.String password)
password
- 密码@AjaxAccess java.lang.Boolean isOldPassword(java.lang.String password, boolean isEncrypt)
password
- isEncrypt
- 是否密码做过加密处理。java.lang.Boolean isExistLoginName(java.lang.String loginName)
loginName
- 登录名java.util.List<V3xOrgEntity> getEntitysByRole(java.lang.Long unitId, java.lang.String rolename) throws com.seeyon.ctp.common.exceptions.BusinessException
unitId
- rolename
- com.seeyon.ctp.common.exceptions.BusinessException
java.lang.String getEntitysStrByRole(java.lang.Long unitId, java.lang.String rolename) throws com.seeyon.ctp.common.exceptions.BusinessException
unitId
- rolename
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByPost4Access(java.lang.Long postId, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
/--- PostId --|-- accountId --|--------------- 返回值 ------------/ | 标准岗 | null/集团ID | 全集团所有单位引用自建岗下的人员 | | 标准岗 | 单位ID | 指定单位引用自建岗下的人员 | | 单位自建岗 | 此参数被忽略 | 指定单位引用自建岗下的人员 |
postId
- 岗位idaccountId
- 当前登录者的当前登录单位idcom.seeyon.ctp.common.exceptions.BusinessException
boolean isAccessGroup(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 单位idcom.seeyon.ctp.common.exceptions.BusinessException
@Deprecated V3xOrgEntity getEntityOnlyById(java.lang.Long id) throws com.seeyon.ctp.common.exceptions.BusinessException
id
- com.seeyon.ctp.common.exceptions.BusinessException
java.lang.Long getAccountIdByCustomLoginUrl(java.lang.String customLoginUrl) throws com.seeyon.ctp.common.exceptions.BusinessException
customLoginUrl
- 单位的登录url(不包括ip地址和端口)com.seeyon.ctp.common.exceptions.BusinessException
java.lang.String getCustomLoginUrlByAccountId(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 单位IDcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgDepartment> getDepartmentsByName(java.lang.String deptName, java.lang.Long acccountId) throws com.seeyon.ctp.common.exceptions.BusinessException
deptName
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgTeam> getTeamsByName(java.lang.String teamName, java.lang.Long acccountId) throws com.seeyon.ctp.common.exceptions.BusinessException
teamName
- acccountId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByDeptIdWithCheckLevelScope(java.lang.Long memberId, java.lang.Long departmentId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员IDdepartmentId
- 部门IDcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getSecConMemberByDept(java.lang.Long departmentId) throws com.seeyon.ctp.common.exceptions.BusinessException
departmentId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberConcurrentPostsByAccountId(java.lang.Long memberId, java.lang.Long acccountId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- com.seeyon.ctp.common.exceptions.BusinessException
void clearAllCurrentPosts(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 可以为null
,表示所有单位com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgRelationship> getMemberPostRelastionships(java.lang.Long memberId, java.lang.Long accountId, java.util.EnumMap<OrgConstants.RelationshipObjectiveName,java.lang.Object> enummap) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 可以為空accountId
- 可以為空enummap
- 可以為空com.seeyon.ctp.common.exceptions.BusinessException
int getDeptLevel(java.lang.Long deptId) throws com.seeyon.ctp.common.exceptions.BusinessException
deptId
- Long 部門idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.Map<java.lang.Long,java.util.List<V3xOrgPost>> getAccountDeptPosts(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 单位idcom.seeyon.ctp.common.exceptions.BusinessException
boolean isInDepartmentPathOf(java.lang.Long parentDepId, java.lang.Long deptid) throws com.seeyon.ctp.common.exceptions.BusinessException
parentDepId
- deptid
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgDepartment> getAllExtDepartments(java.lang.Long accountId)
accountId
- java.util.List<V3xOrgDepartment> getAllInternalDepartments(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByTeam(java.lang.Long teamId, java.util.Set<java.lang.Long> teamIds, OrgConstants.TeamMemberType[] types) throws com.seeyon.ctp.common.exceptions.BusinessException
teamId
- teamIds
- types
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> canSeMembersByDeptId(java.lang.Long memberId, java.lang.Long departmentId, int levelScope, boolean filter) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- departmentId
- levelScope
- filter
- 是否只包含本部门。为true时不包含子部门人员,否则取本部门以及所有子部门的人员。com.seeyon.ctp.common.exceptions.BusinessException
java.util.Set<java.lang.Long> canSeeLevels(V3xOrgMember currentMember, int levelScope, java.util.List<V3xOrgLevel> allLevels, java.lang.Long accountId, java.util.Map<java.lang.Long,java.util.List<MemberPost>> concurrentPostMap) throws com.seeyon.ctp.common.exceptions.BusinessException
currentMember
- levelScope
- allLevels
- accountId
- concurrentPostMap
- com.seeyon.ctp.common.exceptions.BusinessException
java.lang.Boolean canSeSubDept(java.lang.Long memberId, java.lang.Long departmentId, int levelScope, java.util.Set<java.lang.Long> canSeeLevels, java.util.Set<java.lang.Long> deptIds) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- departmentId
- levelScope
- canSeeLevels
- deptIds
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgRole> getAllCustomerRoles(java.lang.Long accountId, int bond) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- bond
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByAccountRoleOfUp(long accountId, java.lang.String roleNameOrId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- roleNameOrId
- com.seeyon.ctp.common.exceptions.BusinessException
java.lang.String getInitPWD()
java.lang.String getInitPWDForPage()
java.lang.Boolean hasSpecificRole(java.lang.Long memberId, java.lang.Long unitId, java.lang.String roleName) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员的idunitId
- 部门或者单位的idroleName
- 角色名称com.seeyon.ctp.common.exceptions.BusinessException
java.util.Set<java.lang.String> getMemberRolesForSet(java.lang.Long id, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgDepartment> getChildExtDepartments(java.lang.Long accountId, java.lang.Long deptId)
accountId
- 单位编号deptId
- 部门编号java.util.HashMap<java.lang.Long,com.seeyon.ctp.util.UniqueList<V3xOrgMember>> getMemberWorkScopeForExternalForMap(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员idcom.seeyon.ctp.common.exceptions.BusinessException
boolean isSecondMemberForAccount(java.lang.Long memberId, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- accountId
- com.seeyon.ctp.common.exceptions.BusinessException
boolean checkRolePrefabricated(java.lang.Long roleId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgRole> getRoleByCode(java.lang.String code, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> canSeMembersByPostId(java.lang.Long memberId, java.lang.Long postId, int levelScope) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- postId
- levelScope
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.Map<java.lang.String,java.lang.Object> getUpdateEntityAndLastTime(java.lang.String entityClassName, java.util.Date updateTime, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
entityClassName
- updateTime
- 取所有实体,传nullaccountId
- 实体是单位时,可以为nullcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getAllMembersWithDisable(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- com.seeyon.ctp.common.exceptions.BusinessException
@AjaxAccess java.lang.String checkCanLeave(java.lang.Long memberId, boolean checkRole) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- checkRole
- 校验是否一些包含一些不允许删除的业务角色,(如是会议室管理员,同时有待审批的会议。)com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgEntity> getDisableEntity(java.lang.String entityClassName, java.lang.Long accountId, java.lang.String condition, java.lang.Object feildvalue)
entityClassName
- accountId
- java.lang.String getAvatarImageUrl(java.lang.Long memberId)
memberId
- boolean checkLevelForExternal(java.lang.Long currentMemberId, java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
currentMemberId
- memberId
- com.seeyon.ctp.common.exceptions.BusinessException
java.lang.String showDepartmentFullPath(java.lang.Long deptId) throws com.seeyon.ctp.common.exceptions.BusinessException
deptId
- com.seeyon.ctp.common.exceptions.BusinessException
int getMemberExternalType(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgAccount> getAllParentAccount(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- com.seeyon.ctp.common.exceptions.BusinessException
V3xOrgLevel getLevelByGroupLevelId(java.lang.Long GroupLevelId, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
GroupLevelId
- 集团职务级别idaccountId
- 指定单位的IDcom.seeyon.ctp.common.exceptions.BusinessException
boolean hasChildren(java.lang.Long parentDepId, boolean includeExternal) throws com.seeyon.ctp.common.exceptions.BusinessException
parentDepId
- includeExternal
- 包含外部部门com.seeyon.ctp.common.exceptions.BusinessException
java.util.Map<java.lang.String,java.util.List<V3xOrgUnit>> getRoleUnitByMemberId(java.lang.Long memberId, java.lang.String... roleNames) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- roleNames
- com.seeyon.ctp.common.exceptions.BusinessException
java.lang.Integer getAllMembersNum(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- com.seeyon.ctp.common.exceptions.BusinessException
java.lang.Integer getMembersNumByDepartment(java.lang.Long departmentId, boolean firtLayer) throws com.seeyon.ctp.common.exceptions.BusinessException
departmentId
- firtLayer
- 是否包含子部门com.seeyon.ctp.common.exceptions.BusinessException
java.lang.Integer getMembersNumByDepartment(java.lang.Long departmentId, boolean firtLayer, boolean includeOuter) throws com.seeyon.ctp.common.exceptions.BusinessException
departmentId
- firtLayer
- includeOuter,是否包含下级的编外部门
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgMember> getMembersByMemberMetadataEnumItemId(java.lang.Long accountId, java.lang.Long enumItemId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- enumItemId
- com.seeyon.ctp.common.exceptions.BusinessException
void isCreateDeptSpace(java.lang.Long deptId, boolean isCreateDept) throws com.seeyon.ctp.common.exceptions.BusinessException
deptId
- isCreateDept
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByPost(java.lang.Long postId, java.lang.Long accountId, boolean isDealRepeat) throws com.seeyon.ctp.common.exceptions.BusinessException
postId
- 职务IdaccountId
- 单位Id【可选】isDealRepeat
- 是否去重【可选,默认去重】com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByPost(java.lang.Long postId, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
postId
- 职位IdaccountId
- 单位Idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByPost(java.lang.Long postId) throws com.seeyon.ctp.common.exceptions.BusinessException
postId
- 职位Idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByPost4Access(java.lang.Long postId, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByMemberPostOfOnlyUp(long memberId, long postId0, long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByMemberPostOfOnlyUp(long memberId, long postId, long accountId, boolean dealRepeat) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员IdpostId
- 岗位IdaccountId
- 单位IddealRepeat
- 是否去重操作com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByMemberPostOfUp(long memberId, long postId0, long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByDepartmentPostOfDown(long departmentId, long postId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByDepartmentPost(long departmentId, long postId0) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByDepartmentPostOfUp(java.lang.Long departmentId, java.lang.Long postId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByDepartment(java.lang.Long departmentId, boolean firtLayer) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByDepartment(java.lang.Long departmentId, boolean firtLayer, OrgConstants.MemberPostType type) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByRole(java.lang.Long unitId, java.lang.Long roleId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByDepartmentRole(long departmentId, java.lang.String roleNameOrId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByRole(java.lang.Long unitId, java.lang.String roleName) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByType(java.lang.String type, java.lang.String id) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByType(java.lang.String type, java.lang.Long id) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getExtMemberPostByDepartment(java.lang.Long departmentId, boolean firtLayer) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByDepartmentRoleOfUp(long departmentId, java.lang.String roleNameOrId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByAccountRoleOfUp(long accountId, java.lang.String roleNameOrId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
boolean accessedByVisitor(java.lang.String category, java.lang.Long accountId)
category
- 应用标识
如:ApplicationCategoryEnum.meeting.name()accountId
- 单位IDV3xOrgVisitor getVisitorById(java.lang.Long visitorId) throws com.seeyon.ctp.common.exceptions.BusinessException
visitorId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<RelationMemberAttribute> getMemberCustomAttribute() throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.lang.Object getMemberInfoByAttribute(java.lang.Long memberId, java.lang.String attributeCode) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- attributeCode
- 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
java.util.List<OrgUnit> getAllUnitPO(OrgConstants.UnitType type, java.lang.Long accountId, java.lang.Boolean enable, java.lang.Boolean isInternal, java.lang.String condition, java.lang.Object feildvalue, com.seeyon.ctp.util.FlipInfo flipInfo)
java.util.List<OrgPost> getAllPostPO(java.lang.Long accountId, java.lang.Boolean enable, java.lang.String condition, java.lang.Object feildvalue, com.seeyon.ctp.util.FlipInfo flipInfo)
java.util.List<OrgPost> getAllPostPO(java.lang.Long accountId, java.lang.Boolean enable, java.lang.String condition, java.lang.Object feildvalue, com.seeyon.ctp.util.FlipInfo flipInfo, boolean equal)
java.util.List<OrgMember> getAllGroupEnableMemberPO()
java.util.List<OrgVisitor> getAllVisitorPO()
java.util.List<OrgRole> getAllRolePO(java.lang.Long accountId, java.lang.Boolean enable, java.lang.String condition, java.lang.Object feildvalue, com.seeyon.ctp.util.FlipInfo flipInfo)
java.util.List<OrgLevel> getAllLevelPO(java.lang.Long accountId, java.lang.Boolean enable, java.lang.String condition, java.lang.Object feildvalue, com.seeyon.ctp.util.FlipInfo flipInfo)
java.util.List<OrgTeam> getAllTeamPO(java.lang.Long accountId, java.lang.Integer type, java.lang.Boolean enable, java.lang.String condition, java.lang.Object feildvalue, com.seeyon.ctp.util.FlipInfo flipInfo)
java.util.List<OrgRelationship> getOrgRelationshipPO(OrgConstants.RelationshipType type, java.lang.Long sourceId, java.lang.Long accountId, java.util.EnumMap<OrgConstants.RelationshipObjectiveName,java.lang.Object> objectiveIds, com.seeyon.ctp.util.FlipInfo flipInfo)
type
- 可以为null
,表示所有,需谨慎sourceId
- 可以为null
,表示所有,需谨慎accountId
- 可以为null
,表示所有,需谨慎objectiveIds
- 可以为null
,表示所有flipInfo
- 可以为null
,表示不分页<T extends com.seeyon.ctp.common.po.BasePO> T getEntity(java.lang.Class<T> entityClass, java.lang.Long id)
entityClass
- OrgUnit,OrgMember...id
- java.util.List<OrgRole> getAllRolePO(java.lang.Long accountId, java.lang.Boolean enable, java.util.Map<java.lang.String,java.lang.Object> param, com.seeyon.ctp.util.FlipInfo flipInfo)
@AjaxAccess java.lang.String checkNameI18nData(java.lang.String i18nData, java.lang.String action, java.lang.Long accountId, java.util.Map param) throws com.seeyon.ctp.common.exceptions.BusinessException
i18nData
- 国际化的数据action
- 动作,add:新增, updata:更新accountId
- 所属单位param
- 附件参数com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getBusinessMemberPosts(java.lang.Long accountId, java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 多维组织id. null:匹配所有多维组织memberId
- 人员idcom.seeyon.ctp.common.exceptions.BusinessException
java.lang.Long getMemberSort(java.lang.Long memberId, java.lang.String sortType, java.lang.Long entityId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- sortType
- entityId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MetadataColumnBO> getMetadataColumn(java.lang.Integer moduleType) throws com.seeyon.ctp.common.exceptions.BusinessException
moduleType
- MetadataConstants.APPLICATIONCATEGORY_ADDRESSBOOK/...com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgEntity> getEntitiesByOrgMetadata(java.lang.String id) throws com.seeyon.ctp.common.exceptions.BusinessException
id
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgEntity> getEntitiesByOrgMetadataEnumItemId(java.lang.String type, java.lang.Long accountId, java.lang.Long columnId, java.lang.Long enumItemId, java.lang.Long departmentId) throws com.seeyon.ctp.common.exceptions.BusinessException
type
- 元数据类型:Account,Department,Post,MemberaccountId
- 元数据匹配出来的组织模型数据的所属单位columnId
- 哪个元数据(只有枚举类型)enumItemId
- 元数据对应的枚举值departmentId
- 如果匹配的是元数据对应的部门下的人员(默认是单位下的人员),人员所属部门的idcom.seeyon.ctp.common.exceptions.BusinessException
java.lang.Long getDomainIdByMappingData(java.lang.String dataId)
dataId
- java.lang.String getDataByMappingDomainId(java.lang.Long domainId)
domainId
- com.seeyon.ctp.util.FlipInfo showBatchModifyResult(com.seeyon.ctp.util.FlipInfo fi, java.util.Map params) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByAccount(java.lang.Long accountId, OrgConstants.MemberPostType type) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- type
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.Map<java.lang.Long,DepartmentAccess> getDepartmentInfoByDepartmentAccess(java.lang.Long memberId, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- accountId
- com.seeyon.ctp.common.exceptions.BusinessException
boolean isValidMemberPost(V3xOrgRelationship rel)
java.util.List<MemberPost> dealRepeat(java.util.List<MemberPost> memberPosts, java.util.List<java.lang.Long> unitIds, V3xOrgEntity entity) throws com.seeyon.ctp.common.exceptions.BusinessException
memberPosts
- unitIds
- entity
- 基于什么数据匹配com.seeyon.ctp.common.exceptions.BusinessException
java.util.Map<java.lang.Long,java.util.Set<java.lang.String>> getRepeatUnitNameMap(java.util.List<java.lang.Long> accountIds) throws com.seeyon.ctp.common.exceptions.BusinessException
accountIds
- com.seeyon.ctp.common.exceptions.BusinessException
boolean isSetDepartmentAccess(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByTeam(java.lang.Long teamId) throws com.seeyon.ctp.common.exceptions.BusinessException
teamId
- com.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
- 是否去重处理 boolean true:falsecom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByDepartment(java.lang.Long departmentId, boolean firtLayer, OrgConstants.MemberPostType type, boolean isDealRepeat) throws com.seeyon.ctp.common.exceptions.BusinessException
departmentId
- firtLayer
- type
- isDealRepeat
- 是否去重处理 boolean true:falsecom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByLevel(java.lang.Long levelId, boolean isDealRepeat) throws com.seeyon.ctp.common.exceptions.BusinessException
levelId
- isDealRepeat
- 是否去重处理 boolean true:falsecom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByLevel(java.lang.Long levelId, boolean isDealRepeat, boolean memberAllPost) throws com.seeyon.ctp.common.exceptions.BusinessException
levelId
- 职务级别IdisDealRepeat
- 是否去重memberAllPost
- 是否显示人员全部的职务com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByRole(java.lang.Long unitId, java.lang.Long roleId, boolean isDealRepeat) throws com.seeyon.ctp.common.exceptions.BusinessException
unitId
- roleId
- isDealRepeat
- 是否去重处理 boolean true:falsecom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByDepartmentRole(long departmentId, java.lang.String roleNameOrId, boolean isDealRepeat) throws com.seeyon.ctp.common.exceptions.BusinessException
departmentId
- roleNameOrId
- isDealRepeat
- 是否去重处理 boolean true:falsecom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByDepartmentRoleOfUp(long departmentId, java.lang.String roleNameOrId, boolean isDealRepeat) throws com.seeyon.ctp.common.exceptions.BusinessException
departmentId
- roleNameOrId
- isDealRepeat
- 是否去重处理 boolean true:falsecom.seeyon.ctp.common.exceptions.BusinessException
org.apache.commons.lang3.tuple.Pair<V3xOrgDepartment,java.util.List<MemberPost>> getMpostAndDepartmentByDepartmentRoleOfUp(long departmentId, java.lang.String roleNameOrId, boolean isDealRepeat) throws com.seeyon.ctp.common.exceptions.BusinessException
departmentId
- 部门IdroleNameOrId
- 角Id或者名称isDealRepeat
- 是否去重com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByAccountRoleOfUp(long accountId, java.lang.String roleNameOrId, boolean isDealRepeat) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- roleNameOrId
- isDealRepeat
- 是否去重处理 boolean true:falsecom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByAccountRole(long accountId, java.lang.String roleNameOrId, boolean isDealRepeat) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 单位IdroleNameOrId
- 角色Id或者角色名称isDealRepeat
- 是否去重处理 boolean true:falsecom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<MemberPost> getMemberPostByBusinessAccount4Wf(java.lang.Long accountId, boolean isDealRepeat) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 业务单位IdisDealRepeat
- 是否去重处理 boolean true:falsecom.seeyon.ctp.common.exceptions.BusinessException
java.util.List<V3xOrgRelationship> findMemberPostByMemberId(long memberId)
memberId
- 人员Idjava.util.List<V3xOrgRelationship> findMemberPostByMemberId(java.util.List<java.lang.Long> memberIds)
memberIds
- 人员Idsjava.util.List<V3xOrgRelationship> findMemberPostByMemberIdAndType(long memberId, java.util.List<OrgConstants.MemberPostType> memberPostTypes)
memberId
- 人员IdmemberPostTypes
- 岗位类型java.util.List<V3xOrgRelationship> findMemberPostByAccountIdAndMemberIdAndType(long accountId, long memberId, OrgConstants.MemberPostType postType)
accountId
- 单位IdmemberId
- 人员IdpostType
- 岗位类型java.util.List<V3xOrgRelationship> findMemberPostByPostId(long postId)
postId
- 岗位Idjava.util.List<V3xOrgRelationship> findMemberPostByLevelId(long leveId)
leveId
- 职务级别Idjava.util.List<V3xOrgRelationship> findMemberPostByDeptId(long deptId)
deptId
- 部门Idjava.util.List<V3xOrgRelationship> findMemberPostByDeptIdAndPostIdAndType(long deptId, long postId, OrgConstants.MemberPostType type)
deptId
- 部门IdpostId
- 岗位Idtype
- 职务类型java.util.List<V3xOrgRelationship> findMemberPostByAccountId(long accountId)
accountId
- 单位Idjava.util.List<V3xOrgRelationship> findMemberPostByAccountId(java.util.List<java.lang.Long> accountIds)
accountIds
- 单位Idjava.util.List<V3xOrgRelationship> findAllMemberPost()
V3xOrgRelationship getMemberPostRSById(java.lang.Long id)
id
- 关系Idvoid deleteMemberPostByMemberId(long memberId)
memberId
- 人员Idvoid deleteMemberPostByMemberIdAndType(long memberId, OrgConstants.MemberPostType postType)
memberId
- 人员IdpostType
- 岗位类型java.util.List<V3xOrgRelationship> findMemberRoleByEntityIdAndType(long entityId, OrgConstants.ORGENT_TYPE entityType)
entityId
- 实体Id【部门、人员、岗位Id】entityType
- 部门、人员、岗位java.util.List<V3xOrgRelationship> findMemberRoleByEntityId(long entityId)
entityId
- 实体Id【部门、人员、岗位Id】java.util.List<V3xOrgRelationship> findMemberRoleByAccountAndUnitAndEntityAndRole(long accountId, long unitId, long entityId, long roleId)
accountId
- 单位IdunitId
- 单位或者部门角色的组织IdentityId
- 实体Id【部门、人员、岗位Id】roleId
- 角色Idjava.util.List<V3xOrgRelationship> findMemberRoleByAccountIdAndEntityId(long accountId, long entityId)
accountId
- 单位IdentityId
- 实体Id【部门、人员、岗位Id】java.util.List<V3xOrgRelationship> findMemberRoleByAccountIdAndEntityIdAndRole(long accountId, long entityId, long roleId)
accountId
- 单位IdentityId
- 实体Id【部门、人员、岗位Id】roleId
- 角色Idjava.util.List<V3xOrgRelationship> findMemberRoleByAccountId(long accountId)
accountId
- 单位Idvoid deleteMemberRoleByMemberId(long memberId)
memberId
- 人员Idjava.util.List<V3xOrgRelationship> findDeptPostByDeptAndAccountAndPost(long deptId, long accountId, long postId)
deptId
- 部门idaccountId
- 单位IdpostId
- 岗位Idjava.util.List<V3xOrgRelationship> findDeptPostByByDeptIdAndPostIds(long deptId, java.util.List<java.lang.Long> posts)
deptId
- posts
- java.util.List<V3xOrgRelationship> findAllDeptPost()
java.util.List<V3xOrgRelationship> findDeptPostByDeptAndAccount(long deptId, long accountId)
deptId
- 部门idaccountId
- 单位Idjava.util.List<V3xOrgRelationship> findTMByEntryId(long entityId)
entityId
- 成员Idjava.util.List<V3xOrgRelationship> findTMByAccountIdAndTeamIdAndTeamMemberType(long accountId, long teamId, OrgConstants.TeamMemberType teamMemberType)
accountId
- 单位IdteamId
- 组IdteamMemberType
- 组成员类型java.util.List<V3xOrgRelationship> findTMByTeamIdAndEntityIdAndTeamMemberType(long teamId, long entityId, OrgConstants.TeamMemberType teamMemberType)
teamId
- 组IdentityId
- 成员IdteamMemberType
- 组成员类型java.util.List<V3xOrgRelationship> findTMByTeamId(long teamId)
teamId
- 组Idvoid deleteTeamMemberByEntityId(long entityId)
entityId
- 成员Idvoid deleteTPByEntityId(long entityId)
entityId
- 实体Idjava.util.List<V3xOrgRelationship> findBusDeptMemberByEntityId(long entityId)
entityId
- 实体Idjava.lang.String getDeptFullPath(long depId)
depId
- 部门IDboolean isInitAdmin(long memberId)
memberId
- 人员的Idboolean isGroupSystemAdmin(long memberId)
memberId
- 人员Idboolean isGroupSecretAdmin(long memberId)
memberId
- 人员Idboolean isGroupAuditAdmin(long memberId)
memberId
- 人员Idboolean isUnitSystemAdmin(long memberId, long accountId)
memberId
- 人员IdaccountId
- 单位Idboolean isUnitSecretAdmin(long memberId, long accountId)
memberId
- 人员IdaccountId
- 单位Idboolean isUnitAuditAdmin(long memberId, long accountId)
memberId
- 人员IdaccountId
- 单位Idboolean hasBaseRole(java.util.List<java.lang.Long> roleIds, long memberId)
roleIds
- 角色IdmemberId
- 人员Idboolean isAdmin(java.lang.String loginName)
loginName
- 登录名void disableMember(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员Idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.Map<java.lang.String,java.lang.String> getAllUnitAdminLoginName()
java.util.List<java.lang.Long> getAllAccountAdminId()
java.util.List<java.lang.Long> getAccountAdminId(java.lang.Long accountId)
org.apache.commons.lang3.tuple.Pair<java.lang.Boolean,java.lang.String> updatePassword(java.lang.String phone, java.lang.String password) throws java.lang.Exception
phone
- password
- java.lang.Exception
boolean hasAdminRole(java.lang.Long memberId)
memberId
- 人员Idjava.lang.Boolean checkOldPasswordOverTime(java.lang.String password)
password
- boolean isVjoinUnitAdmin(java.lang.Long memberId, java.lang.Long loginAccount)
memberId
- loginAccount
-