public class OrgHelper
extends java.lang.Object
构造器和说明 |
---|
OrgHelper() |
限定符和类型 | 方法和说明 |
---|---|
static <T extends V3xOrgEntity> |
assignEntitySortID(java.util.HashMap<java.lang.Long,T> list)
从一个列表中得到一个排序号。
|
static java.lang.Class<? extends com.seeyon.ctp.common.po.BasePO> |
boClassTopoClass(java.lang.Class<? extends V3xOrgEntity> bo)
BO类转换成PO类
|
static com.seeyon.ctp.common.po.BasePO |
boTopo(V3xOrgEntity bo)
BO类转换成PO类
|
static java.lang.String |
boTostr(V3xOrgEntity bo)
BO类转换成字符串
|
static boolean |
canReadOuter(java.lang.Long memberId,
java.lang.Long outerId)
内部人员访问外部人员,同时检查这个外部人员的工作范围
|
static java.lang.Boolean |
checkAccountAccess(java.lang.Long sAccountId,
java.lang.Long tAccountId)
比较两个单位是否可见
|
static boolean |
checkDepAccess(java.lang.Long deptId)
根据部门可见性设置,当前登录人员能否看到指定部门
|
static boolean |
checkDepAccess(java.lang.Long accountId,
java.lang.Long deptId)
根据部门可见性设置,当前登录人员在指定单位能否看到指定部门
|
static java.util.List<V3xOrgMember> |
checkLevelScope(java.lang.Long currentMemberId,
java.util.List<V3xOrgMember> members) |
static boolean |
checkLevelScope(java.lang.Long currentMemberId,
java.lang.Long memberId)
检测工作范围
|
static java.util.List<V3xOrgMember> |
checkLevelScope(java.lang.Long currentMemberId,
java.lang.Long currentAccountId,
java.util.List<V3xOrgMember> members)
过滤掉没有权限的人员
|
static boolean |
checkLevelScope(java.lang.Long currentMemberId,
java.lang.Long curAtAccountId,
java.lang.Long memberId,
java.lang.Long memberAtAccountId) |
static boolean |
checkLevelScope(java.lang.Long currentMemberId,
java.lang.Long curAtAccountId,
java.lang.Long memberId,
java.lang.Long memberAtAccountId,
java.util.List<MemberPost> currentMemberPosts,
java.util.List<MemberPost> memberPosts)
检测工作范围
|
static boolean |
checkLevelScopes(java.lang.Long currentMemberId,
java.util.List<V3xOrgMember> members)
判断人员是否可见集合下所有人员
|
static <T extends V3xOrgEntity> |
cloneEntity(T ent) |
static <T extends V3xOrgEntity> |
cloneEntityImmutableDecorator(T ent) |
static java.lang.String |
deptPName(java.lang.Long departmentId)
根据member查其单位上级部门--查三代
|
static boolean |
disabledAddressBookSecretLevel()
是否开启通讯录人员密级
|
static java.util.List<java.lang.Long> |
entityListToIdList(java.util.List<V3xOrgEntity> entityList)
将组织模型实体列表变成ID列表,主要用于组的组员信息处理
|
static java.util.List<OrgTypeIdBO> |
entityListToIdTypeList(java.util.List<V3xOrgEntity> entityList)
将组织模型实体列表变成ID和类型列表,主要用于组的组员信息处理
|
static java.util.List<OrgTypeIdBO> |
entityListToIdTypeList(java.util.List<V3xOrgEntity> entityList,
java.util.Map<java.lang.Long,java.lang.String> map)
将组织模型实体列表变成ID和类型列表,主要用于组的组员信息处理
|
static void |
exportToExcel(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
com.seeyon.ctp.common.excel.FileToExcelManager fileToExcelManager,
java.lang.String title,
com.seeyon.ctp.common.excel.DataRecord dataRecord) |
static java.util.List<java.lang.Long> |
filterDepAccess(java.util.List<java.lang.Long> memberIds)
根据部门可见性设置,获取当前登录人员能看到人
|
static java.util.List<java.lang.Long> |
filterDepAccess(java.lang.Long unitId,
java.util.List<java.lang.Long> memberIds)
根据部门可见性设置,获取当前登录人员在指定单位能看到人
|
static void |
filterInvalidEntities(java.util.Collection<? extends V3xOrgEntity> entities)
过滤掉组织模型集合中无效的实体,如:过滤掉离职人员
传入的实体集合,在方法执行完后发生了变化,适合用于过滤完即返回结果值的情况 |
static java.util.List<java.lang.Long> |
getAccessIdsByUnitId(java.lang.Long unitId)
获取某单位的可以访问的单位id列表
!! |
static V3xOrgAccount |
getAccount(java.lang.Long accountId) |
static AddressBookManager |
getAddressBookManager() |
static java.lang.String |
getAddressBookSecretLevel()
通讯录人员密级开关
|
static com.seeyon.ctp.common.file.model.CtpFile |
getAvatarFile(java.lang.Long memberId,
java.lang.String showType,
int maxWidth)
获取人员头像文件
由OrgHelper统一提供,避免外层重复写
|
static java.lang.String |
getAvatarImageUrl(java.lang.Long memberId)
取得指定人员头像图片地址。
|
static java.lang.String |
getAvatarImageUrl(java.lang.Long memberId,
int width)
获取人员头像
|
static java.lang.String |
getAvatarImageUrl(java.lang.Long memberId,
int width,
boolean isIgnoreGif)
获取人员头像
|
static java.lang.String |
getAvatarImageUrl(java.lang.Long memberId,
java.lang.String contextPath)
取得指定人员头像图片地址。
|
static java.util.Map |
getBusinessExceptionMessage(OrganizationMessage m)
处理组织模型接口抛出的业务异常编码,保证不在核心Manager抛出业务异常,http正常返回200,不通过500异常处理,保证前端异常能够正常提示。
|
static java.util.Set<java.lang.Long> |
getChildD(java.lang.Long deptId) |
static com.seeyon.ctp.common.config.manager.ConfigManager |
getConfigManager() |
static com.seeyon.ctp.common.customize.manager.CustomizeManager |
getCustomizeManager() |
static com.seeyon.ctp.common.datai18n.manager.DataI18nManager |
getDataI18nManager() |
static java.lang.String |
getDefaultAvatarImageUrl(java.lang.Long memberId)
不管是否自定义过头像,取得默认头像。
|
static V3xOrgMember |
getDefaultSystemAdmin()
多个业务用到默认系统管理员,适配客户环境存在org_member表没有系统管理员的情况
|
static V3xOrgDepartment |
getDepartment(java.lang.Long departmentId) |
static java.util.List<java.lang.Long> |
getEntityIdList(java.util.Collection<? extends V3xOrgEntity> entities) |
static java.util.Collection<java.lang.Long> |
getEntityIds(java.util.Collection<? extends V3xOrgEntity> entities)
将实体集合,过滤掉无效人员返回实体的ID集合
|
static java.util.List<java.lang.Long> |
getEntityIds2(java.util.Collection<? extends V3xOrgEntity> entities)
获取组织模型ID集合,过滤掉其中无效实体,如:过滤掉离职人员
|
static java.lang.String |
getEntityName(java.lang.String type,
java.lang.String id) |
static java.lang.Class<? extends V3xOrgEntity> |
getEntityType(V3xOrgEntity orgEntity)
从列表中获取实体类型
|
static java.lang.String |
getEntityTypeByClassSimpleName(java.lang.String simpleName) |
static java.lang.Class<? extends V3xOrgEntity> |
getEntityTypeByOrgConstantsType(java.lang.String typeName) |
static java.lang.Class<? extends V3xOrgEntity> |
getEntityTypeBySimpleName(java.lang.String simpleName)
从列表中获取实体类型
|
static com.seeyon.ctp.common.ctpenumnew.manager.EnumManager |
getEnumManagerNew() |
static java.lang.String |
getExtMemberLevel(V3xOrgMember member)
获取外部人员的职务名称
|
static java.lang.String |
getExtMemberPriPost(V3xOrgMember member)
获取外部人员的岗位名称
|
static com.seeyon.ctp.common.filemanager.manager.FileManager |
getFileManager() |
static com.seeyon.ctp.common.fontimage.FontImageManger |
getFontImageManger() |
static com.seeyon.ctp.common.fontimage.FontImageManger |
getFontImageMnager() |
static OrgConstants.Role_NAME |
getLoginAdminRole()
获取当前登录人员角色名
|
static V3xOrgMember |
getMember(java.lang.Long memberId) |
static java.lang.Object |
getMemberExtAttr(V3xOrgMember member,
java.lang.String name)
得到扩展属性的值
|
static java.util.Map<java.lang.String,java.lang.String> |
getMemberExtAttrKeyMaps()
得到人员的所有的扩展属性Key: 别名,如EmailAddress;Value - PO Field Name
|
static java.util.Map<java.lang.String,java.lang.Object> |
getMemberExtAttrs(V3xOrgMember member) |
static java.util.List<java.lang.Long> |
getMemberIdsByTypeAndId(java.lang.String typeAndIds,
OrgManager orgManager)
获取选人界面字符串解析后所得人员的ID集合
|
static java.lang.String |
getMemberName(java.lang.Long memberId) |
static java.util.List<V3xOrgMember> |
getMembersByElements(java.lang.String typeAndIds)
将选人界面返回的字符串解析为具体的人 Member|1234567,Departmet|2345678... -> List
|
static MetadataColumnManager |
getMetadataColumnManager() |
static OrgDao |
getOrgDao() |
static OrgManager |
getOrgManager() |
static java.lang.Long |
getParentIdByEntityId(java.lang.String unitType,
java.lang.Long entityId)
根据组织的实体id获取父关系的实体id
只针对unit组织表
|
static V3xOrgUnit |
getParentUnit(V3xOrgUnit orgunit)
获取组织的父组织, 如果没有找到,就返回空指针
|
static java.lang.Long |
getParentUnitId(V3xOrgUnit orgunit) |
static <T extends V3xOrgUnit> |
getPathByPid4Add(java.lang.Class<T> classType,
java.lang.Long parentId)
已过时。
废弃classType 没有意义
|
static <T extends V3xOrgUnit> |
getPathByPid4Add(java.lang.Long parentId)
根据parent id 计算出笑一个child path
|
static <T extends V3xOrgUnit> |
getPathByPid4Add(java.lang.String parentPath)
根据parent path 计算出笑一个child path
|
static V3xOrgPost |
getPost(java.lang.Long postId) |
static java.lang.Object |
getProperty(V3xOrgEntity ent,
java.lang.String property)
按名称取得指定实体的属性值。
|
static java.lang.String |
getRoleShowNameById(OrgManager orgManager,
java.lang.Long roleId) |
static java.lang.String |
getRoleShowNameByName(java.lang.String roleName) |
static java.lang.String[][] |
getSelectPeopleElements(java.lang.String selectPeopleStr)
解析选人组件的字符串为数组
|
static SelectPeopleManager |
getSelectPeopleManager() |
static java.lang.String |
getSelectPeopleStr(java.util.List<? extends V3xOrgEntity> list)
获取实体list的对应选人界面的回填格式
|
static java.lang.String |
getSelectPeopleStr(V3xOrgEntity ent)
获取实体list的对应选人界面的回填格式
|
static java.lang.String |
getSelectPeopleStrExt(java.util.List<EntityIdTypeDsBO> list)
获取实体list的对应选人界面的回填格式
|
static java.lang.String |
getSelectPeopleStrSimple(java.util.List<V3xOrgEntity> list)
获取实体list的对应选人界面的字符串
|
static java.util.List<java.lang.Long> |
getSharerAndCreatorIds(java.lang.String shareScopeTypeAndIds,
java.lang.Long creatorId,
OrgManager orgManager)
获取表单业务配置共享范围内的所有人员ID集合,并加上创建者自身,用于删除个性化菜单设置等场合
|
static java.util.List<java.lang.Long> |
getSharerIds(java.lang.String shareScopeTypeAndIds,
java.lang.Long creatorId,
OrgManager orgManager)
获取表单业务配置共享范围内的所有人员ID集合,过滤创建者自身,用于发送消息等场合
|
static java.lang.Object |
getSysFlag(java.lang.String flagName)
读取系统标志
|
static java.lang.Object |
getSysFlag(com.seeyon.ctp.common.flag.SysFlag sysFlag)
读取系统标志
|
static java.lang.String |
getSystemSwitch(java.lang.String name)
获取系统开关配置值
|
static OrgTree |
getTree(java.util.List<V3xOrgDepartment> list,
java.lang.Long accountId)
根据部门和单位id构造成一棵部门树
|
static java.lang.Object |
getUnitExtAttr(V3xOrgUnit unit,
java.lang.String name)
得到机构扩展属性的值
|
static java.util.Map<java.lang.String,java.lang.String> |
getUnitExtAttrKeyMaps()
得到机构的所有的扩展属性Key - PO Field Name
|
static java.util.Map<java.lang.String,java.lang.Object> |
getUnitExtAttrs(V3xOrgUnit unit) |
static <T extends V3xOrgEntity> |
getV3xClass(java.lang.String entityType)
根据entityType 获取对应 entity类
|
static V3xOrgPrincipal |
getV3xOrgPrincipal(java.lang.Long memberId) |
static java.lang.Long |
getVJoinAllowAccount()
获取V-Join准出单位
|
static boolean |
hasAdminResouceCode(java.lang.String adminResourceCode)
判断人员是否有管理员code
|
static boolean |
hasAdminResouceCode(com.seeyon.ctp.common.authenticate.domain.User user,
java.lang.String adminResourceCode)
判断人员是否有管理员code
|
static boolean |
hasAdminRole() |
static java.util.Set<java.lang.String> |
initRoleSetIfNecessary() |
static void |
invalidateGenerator(java.lang.String path)
将path 生成器失效
|
static boolean |
isAdmin()
判断当前登录人员,是否切换登录为:任意管理员:
A8标准:单位管理、系统管理员、集团管理员、审计管理员、超级管理员、平台管理员
三员:(系统级|单位级)系统管理员、(系统级|单位级)安全管理员、(系统级|单位级)审计管理
|
static boolean |
isAdministrator()
判断当前登录人员,是否切换登录为:[标准角色管理]的单位管理员
|
static boolean |
isAuditAdmin()
判断当前登录人员,是否切换登录为:[标准角色管理]的审计管理员
|
static boolean |
isBackAdminRole(OrgConstants.Role_NAME roleName)
判断是否为后端角色,后端登录管理员处理逻辑不相同
|
static boolean |
isBackAdminRole(java.lang.String roleName)
判断是否为后端角色,后端登录管理员处理逻辑不相同
|
static boolean |
isBenchmarkPost(OrgPost orgPost)
是否为基础岗
|
static boolean |
isBenchmarkPost(V3xOrgPost v3xOrgPost)
是否为基础岗
|
static boolean |
isEntRoleStd()
当前系统角色管理模式是否为企业角色管理模式【V5 8.1之前的标准】
|
static boolean |
isGovRoleStd()
当前系统角色管理模式是否为三员模式【政府、事业单位】
|
static boolean |
isGroupAdmin()
判断当前登录人员,是否切换登录为:[标准角色管理]的集团管理员
|
static boolean |
isGroupAuditAdmin()
判断当前登录人员,是否切换登录为:系统级-审计管理员
|
static boolean |
isGroupSecretAdmin()
判断当前登录人员,是否切换登录为:系统级-安全管理员
|
static boolean |
isGroupSystemAdmin()
判断当前登录人员,是否切换登录为:系统级-系统管理员
|
static boolean |
isGroupVersion()
判断是否为多组织版本
|
static java.lang.Boolean |
isHasChildAccountsById(java.lang.Long accountId)
根据单位id判断某单位下是否还有子单位
|
static java.lang.Boolean |
isHasChildDeptsByDeptId(java.lang.Long deptId,
boolean isInteranl)
根据部门id判断某部门下是否还有子部门
|
static boolean |
isHaveGuestPermission()
是否拥有启用Guest许可
默认情况下guest的控制开关处于被屏蔽状态,guest处于停用状态,在ctp_config中插入指定数据后可以接触guest的屏蔽状态
|
static boolean |
isInitAdmin()
判断当前登录人员,是否切换登录为:初始化管理员
|
static boolean |
isLoginAsSystemRole(OrgConstants.Role_NAME systemName)
判断是否为系统的角色
|
static boolean |
isLoginGroupAdminRole()
判断当前登录人员,是否切换登录为:集团类型管理员
|
static boolean |
isLoginUnitAdminRole()
判断当前登录人员,是否切换登录为:为单位类型管理员
|
static boolean |
isLong(java.lang.String id) |
static boolean |
isPlatformAdmin()
判断当前登录人员,是否切换登录为:平台管理员
|
static boolean |
isSecretLevelEnable()
密级标定是否启用
|
static boolean |
isSuperAdmin()
判断当前登录人员,是否切换登录为:超级管理员
|
static boolean |
isSystemAdmin()
判断当前登录人员,是否切换登录为:[标准角色管理]的系统管理员
|
static boolean |
isUnitAuditAdmin()
判断当前登录人员,是否切换登录为:单位级-审计管理员
|
static boolean |
isUnitSecretAdmin()
判断当前登录人员,是否切换登录为:单位级-系统管理员
|
static boolean |
isUnitSystemAdmin()
判断当前登录人员,是否切换登录为:单位级-系统管理员
|
static boolean |
isUpdateModifyTimestampOfCurrentThread()
判断当前线程的操作是否要更新组织模型时间戳
|
static java.lang.String |
join(java.util.Collection<? extends java.lang.Object> list,
java.lang.String separator)
将集合连接起来
|
static java.util.List<? extends com.seeyon.ctp.common.po.BasePO> |
listBoTolistPo(java.util.List<? extends V3xOrgEntity> bo)
PO转BO类(List中的)
List
|
static java.util.List<? extends V3xOrgEntity> |
listPoTolistBo(java.util.List<? extends com.seeyon.ctp.common.po.BasePO> po)
PO转BO类(List中的)
List
|
static int |
mappingLevelSortId(V3xOrgMember member,
java.lang.Long memberAtAccountId,
V3xOrgMember currentMember,
java.lang.Long curAtAccountId) |
static java.util.List<OrgTypeIdBO> |
mapToIdTypeList(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> map)
将组织模型实体列表变成ID和类型列表,主要用于组的组员信息处理
|
static void |
notUpdateModifyTimestampOfCurrentThread()
设置当前线程的操作不更新组织模型时间戳
|
static java.lang.Object[] |
parseElement(java.lang.String typeStr,
java.lang.String idStr) |
static java.lang.String |
parseElements(java.util.Collection<? extends java.lang.Object> list,
java.lang.String idProperty,
java.lang.String typeProperty)
将授权、发布范围等信息连接成elements 格式EntityType|EntityId|EntityName|AccountId
注意:id或者type为null,以及id=-1的将被过滤掉 public class TempleteAuth extends BaseModel implements Serializable { private Long authId; private String authType; private Integer sort; private long templeteId; //setter / getter } 转换 parseElements(List |
static java.lang.String |
parseElements(java.lang.String typeAndIds) |
static java.lang.String |
parseElements(java.lang.String ids,
java.lang.String type)
将格式为EntityId,EntityId的数据转换成Element[]
|
static java.lang.String |
parseElementsExt(java.util.Collection<? extends java.lang.Object> list,
java.lang.String idProperty,
java.lang.String typeProperty,
java.lang.String dscTypeProperty) |
static java.lang.Class<? extends V3xOrgEntity> |
poClassToboClass(java.lang.Class<? extends com.seeyon.ctp.common.po.BasePO> po)
PO类转换成BO类
|
static V3xOrgEntity |
poTobo(com.seeyon.ctp.common.po.BasePO po)
PO类转换成BO类
|
static java.lang.String |
poTostr(com.seeyon.ctp.common.po.BasePO po)
PO类转换成字符串
|
static PrivlegeSecurityManagerImpl |
privlegeSecurityManager() |
static void |
setSecretLevelEnableStatus(boolean status) |
static java.lang.String |
showDepartmentFullPath(java.lang.Long departmentId) |
static java.lang.String |
showDepartmentFullPath(java.lang.Long memberId,
java.lang.Long accountId) |
static java.lang.String |
showDepartmentFullPathByMemberId(java.lang.Long memberId,
java.lang.Long departmentId) |
static java.lang.String |
showDepartmentName(java.lang.Long deptId)
显示部门名称,如果不是一个单位的,则显示单位简称
|
static java.lang.String |
showMemberName(java.lang.Long memberId)
显示人员名字,如果不是一个单位的,则显示单位简称
|
static java.lang.String |
showMemberName(V3xOrgMember member)
显示人员名字,如果不是一个单位的,则显示单位简称
|
static java.lang.String |
showMemberNameOnly(java.lang.Long memberId)
显示人员名字,不带单位简称
|
static java.lang.String |
showMemberNameOnly(V3xOrgMember member)
显示人员名字,永远不显示单位简称
|
static java.lang.String |
showOrgAccountName(java.lang.Long accountId) |
static java.lang.String |
showOrgAccountNameByMemberid(java.lang.Long memberId)
人员所在单位的名称
|
static java.lang.String |
showOrgAccountShortNameByMemberid(java.lang.Long memberId) |
static java.lang.String |
showOrgEntities(java.util.Collection<? extends java.lang.Object> list,
java.lang.String idProperty,
java.lang.String typeProperty,
javax.servlet.jsp.PageContext pageContext)
将对象人员/部门/单位等数据链接起来,显示方式为: (致远)开发中心、(股份)U8事业本部、(金融)赵大伟
自动根据
public class TempleteAuth extends BaseModel implements Serializable {
private Long authId;
private String authType;
private Integer sort;
private long templeteId;
//setter / getter
}
${v3x:showOrgEntities(List
|
static java.lang.String |
showOrgEntities(java.util.List<java.lang.Object[]> entities,
java.lang.String separator) |
static java.lang.String |
showOrgEntities(java.lang.String typeAndIds,
javax.servlet.jsp.PageContext pageContext)
将EntityType|EntityId,EntityType|EntityId转换成名称字符串
|
static java.lang.String |
showOrgEntities(java.lang.String typeAndIds,
java.lang.String separator)
将EntityType|EntityId,EntityType|EntityId转换成名称字符串
* @param separator 分隔符
|
static java.lang.String |
showOrgEntities(java.lang.String ids,
java.lang.String type,
javax.servlet.jsp.PageContext pageContext)
将格式为EntityId,EntityId的数据转换成Element[]
|
static java.lang.String |
showOrgEntities(java.lang.String ids,
java.lang.String type,
java.lang.String separator)
将格式为EntityId,EntityId的数据转换成Element[]
|
static java.lang.String |
showOrgEntitiesExt(java.util.Collection<? extends java.lang.Object> list,
java.lang.String idProperty,
java.lang.String typeProperty,
java.lang.String dscTypeProperty,
javax.servlet.jsp.PageContext pageContext) |
static java.lang.String |
showOrgLevelName(java.lang.Long levelId) |
static java.lang.String |
showOrgMetadataName(java.lang.String metadataId) |
static java.lang.String |
showOrgPostName(java.lang.Long postId) |
static java.lang.String |
showOrgPostNameByMemberid(java.lang.Long memberId)
人员的岗位名称
|
static boolean |
showSecretLevel()
选人界面是否显示人员密级
|
static java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
splitElements(java.lang.String typeAndIds)
将组织数据封装成map
原数据Member|379439479,Member|54540048,Account|545845084058
结果数据
{"Member":"[{379439479},{54540048}]","Account":"[{545845084058}]"}
|
static java.lang.Class<? extends V3xOrgEntity> |
strTobo(java.lang.String type)
字符串转换成BO类
|
static java.lang.Object |
StrtoBoolean(java.lang.Object field) |
static java.lang.Class<? extends com.seeyon.ctp.common.po.BasePO> |
strTopo(java.lang.String type)
字符串转换成PO类
|
static java.lang.String |
suffix()
国际化Label的后缀, 用于支持政务版的key.
|
static void |
throwBusinessExceptionTools(OrganizationMessage m)
处理组织模型接口抛出的业务异常编码,保证不在核心Manager抛出业务异常
|
static void |
updateOrgModifiedTimeStamp() |
public static OrgManager getOrgManager()
public static OrgDao getOrgDao()
public static AddressBookManager getAddressBookManager()
public static com.seeyon.ctp.common.customize.manager.CustomizeManager getCustomizeManager()
public static com.seeyon.ctp.common.fontimage.FontImageManger getFontImageMnager()
public static SelectPeopleManager getSelectPeopleManager()
public static com.seeyon.ctp.common.config.manager.ConfigManager getConfigManager()
public static com.seeyon.ctp.common.ctpenumnew.manager.EnumManager getEnumManagerNew()
public static com.seeyon.ctp.common.datai18n.manager.DataI18nManager getDataI18nManager()
public static MetadataColumnManager getMetadataColumnManager()
public static com.seeyon.ctp.common.filemanager.manager.FileManager getFileManager()
public static com.seeyon.ctp.common.fontimage.FontImageManger getFontImageManger()
public static <T extends V3xOrgEntity> int assignEntitySortID(java.util.HashMap<java.lang.Long,T> list)
list
- public static java.util.List<java.lang.Long> entityListToIdList(java.util.List<V3xOrgEntity> entityList)
entityList
- 实体列表public static java.lang.Class<? extends V3xOrgEntity> getEntityType(V3xOrgEntity orgEntity)
orgEntity
- public static java.lang.Class<? extends V3xOrgEntity> getEntityTypeBySimpleName(java.lang.String simpleName)
simpleName
- public static java.lang.String getEntityTypeByClassSimpleName(java.lang.String simpleName)
public static java.lang.Class<? extends V3xOrgEntity> getEntityTypeByOrgConstantsType(java.lang.String typeName)
public static java.lang.String parseElements(java.lang.String typeAndIds)
public static java.util.Map<java.lang.String,java.util.List<java.lang.String>> splitElements(java.lang.String typeAndIds)
typeAndIds
- public static java.lang.String getSelectPeopleStr(java.util.List<? extends V3xOrgEntity> list) throws com.seeyon.ctp.common.exceptions.BusinessException
list
- com.seeyon.ctp.common.exceptions.BusinessException
public static java.lang.String getSelectPeopleStrExt(java.util.List<EntityIdTypeDsBO> list) throws com.seeyon.ctp.common.exceptions.BusinessException
list
- com.seeyon.ctp.common.exceptions.BusinessException
public static java.lang.String showOrgEntities(java.lang.String typeAndIds, javax.servlet.jsp.PageContext pageContext)
typeAndIds
- Member|13241234,Department|23452345234public static java.lang.String showOrgEntities(java.lang.String typeAndIds, java.lang.String separator)
typeAndIds
- Member|13241234,Department|23452345234public static java.lang.String showOrgEntities(java.lang.String ids, java.lang.String type, java.lang.String separator)
ids
- 1234123,234534563type
- 指定类型separator
- 显示内容的间隔符号public static java.lang.String showOrgEntities(java.lang.String ids, java.lang.String type, javax.servlet.jsp.PageContext pageContext)
ids
- 1234123,234534563type
- 指定类型pageContext
- public static java.lang.String showOrgEntities(java.util.List<java.lang.Object[]> entities, java.lang.String separator)
public static java.lang.String showOrgEntities(java.util.Collection<? extends java.lang.Object> list, java.lang.String idProperty, java.lang.String typeProperty, javax.servlet.jsp.PageContext pageContext)
public class TempleteAuth extends BaseModel implements Serializable { private Long authId; private String authType; private Integer sort; private long templeteId; //setter / getter }${v3x:showOrgEntities(List
list
- 数据集合idProperty
- V3xOrgEntity的idtypeProperty
- V3xOrgEntity的typepageContext
- public static java.lang.String showOrgEntitiesExt(java.util.Collection<? extends java.lang.Object> list, java.lang.String idProperty, java.lang.String typeProperty, java.lang.String dscTypeProperty, javax.servlet.jsp.PageContext pageContext)
public static java.lang.String join(java.util.Collection<? extends java.lang.Object> list, java.lang.String separator)
list
- separator
- 分隔符public static java.lang.String parseElements(java.util.Collection<? extends java.lang.Object> list, java.lang.String idProperty, java.lang.String typeProperty)
public class TempleteAuth extends BaseModel implements Serializable { private Long authId; private String authType; private Integer sort; private long templeteId; //setter / getter } 转换 parseElements(List, "authId", "authType") 结果 Member|1234123|谭敏锋|34561234,Department|234534563|开发中心|34561234
list
- 发布范围、授权集合idProperty
- 组织模型实体的Id字段的属性typeProperty
- 组织模型实体的类型字段的属性public static java.lang.String parseElementsExt(java.util.Collection<? extends java.lang.Object> list, java.lang.String idProperty, java.lang.String typeProperty, java.lang.String dscTypeProperty)
public static java.lang.String parseElements(java.lang.String ids, java.lang.String type)
ids
- 1234123,234534563type
- 指定类型public static java.lang.Object[] parseElement(java.lang.String typeStr, java.lang.String idStr)
public static java.lang.String getEntityName(java.lang.String type, java.lang.String id)
public static java.lang.String getSelectPeopleStrSimple(java.util.List<V3xOrgEntity> list) throws com.seeyon.ctp.common.exceptions.BusinessException
list
- com.seeyon.ctp.common.exceptions.BusinessException
public static java.lang.String[][] getSelectPeopleElements(java.lang.String selectPeopleStr)
selectPeopleStr
- public static java.lang.String getSelectPeopleStr(V3xOrgEntity ent) throws com.seeyon.ctp.common.exceptions.BusinessException
ent
- com.seeyon.ctp.common.exceptions.BusinessException
public static <T extends V3xOrgUnit> java.lang.String getPathByPid4Add(java.lang.Class<T> classType, java.lang.Long parentId)
classType
- 父组织的类型可以是Account或者DepartmentparentId
- 父节点IDgetPathByPid4Add(Long)
public static <T extends V3xOrgUnit> java.lang.String getPathByPid4Add(java.lang.Long parentId)
T
- parentId
- 父pathpublic static <T extends V3xOrgUnit> java.lang.String getPathByPid4Add(java.lang.String parentPath)
T
- parentPath
- 父pathpublic static void invalidateGenerator(java.lang.String path)
path
- public static java.lang.Long getParentIdByEntityId(java.lang.String unitType, java.lang.Long entityId) throws com.seeyon.ctp.common.exceptions.BusinessException
entityId
- unitType
- 组织类型,单位或部门,参数取值范围OrgConstants.UnitType
com.seeyon.ctp.common.exceptions.BusinessException
public static java.lang.String getRoleShowNameById(OrgManager orgManager, java.lang.Long roleId)
public static java.lang.String getRoleShowNameByName(java.lang.String roleName)
public static java.lang.Object StrtoBoolean(java.lang.Object field)
public static java.util.Collection<java.lang.Long> getEntityIds(java.util.Collection<? extends V3xOrgEntity> entities)
entities
- 组织模型集合public static java.util.List<java.lang.Long> getEntityIdList(java.util.Collection<? extends V3xOrgEntity> entities)
public static java.lang.Object getProperty(V3xOrgEntity ent, java.lang.String property) throws com.seeyon.ctp.common.exceptions.BusinessException
ent
- property
- 属性名称com.seeyon.ctp.common.exceptions.BusinessException
public static <T extends V3xOrgEntity> T cloneEntityImmutableDecorator(T ent)
public static <T extends V3xOrgEntity> T cloneEntity(T ent)
public static void exportToExcel(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, com.seeyon.ctp.common.excel.FileToExcelManager fileToExcelManager, java.lang.String title, com.seeyon.ctp.common.excel.DataRecord dataRecord) throws java.lang.Exception
java.lang.Exception
public static java.util.List<? extends V3xOrgEntity> listPoTolistBo(java.util.List<? extends com.seeyon.ctp.common.po.BasePO> po)
public static java.util.List<? extends com.seeyon.ctp.common.po.BasePO> listBoTolistPo(java.util.List<? extends V3xOrgEntity> bo) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
public static java.lang.Class<? extends V3xOrgEntity> poClassToboClass(java.lang.Class<? extends com.seeyon.ctp.common.po.BasePO> po) throws com.seeyon.ctp.common.exceptions.BusinessException
po
- com.seeyon.ctp.common.exceptions.BusinessException
public static java.lang.Class<? extends com.seeyon.ctp.common.po.BasePO> boClassTopoClass(java.lang.Class<? extends V3xOrgEntity> bo)
bo
- com.seeyon.ctp.common.exceptions.BusinessException
public static V3xOrgEntity poTobo(com.seeyon.ctp.common.po.BasePO po)
po
- com.seeyon.ctp.common.exceptions.BusinessException
public static java.lang.String showMemberNameOnly(java.lang.Long memberId)
memberId
- public static java.lang.String showMemberNameOnly(V3xOrgMember member)
member
- public static V3xOrgMember getMember(java.lang.Long memberId)
public static java.lang.String getMemberName(java.lang.Long memberId)
public static com.seeyon.ctp.common.po.BasePO boTopo(V3xOrgEntity bo) throws com.seeyon.ctp.common.exceptions.BusinessException
bo
- com.seeyon.ctp.common.exceptions.BusinessException
public static java.lang.Class<? extends V3xOrgEntity> strTobo(java.lang.String type)
type
- com.seeyon.ctp.common.exceptions.BusinessException
public static java.lang.Class<? extends com.seeyon.ctp.common.po.BasePO> strTopo(java.lang.String type)
type
- com.seeyon.ctp.common.exceptions.BusinessException
public static java.lang.String boTostr(V3xOrgEntity bo) throws com.seeyon.ctp.common.exceptions.BusinessException
bo
- com.seeyon.ctp.common.exceptions.BusinessException
public static java.lang.String poTostr(com.seeyon.ctp.common.po.BasePO po) throws com.seeyon.ctp.common.exceptions.BusinessException
po
- com.seeyon.ctp.common.exceptions.BusinessException
public static V3xOrgUnit getParentUnit(V3xOrgUnit orgunit)
orgunit
- com.seeyon.ctp.common.exceptions.BusinessException
public static java.lang.Long getParentUnitId(V3xOrgUnit orgunit)
public static java.util.List<java.lang.Long> getAccessIdsByUnitId(java.lang.Long unitId) throws com.seeyon.ctp.common.exceptions.BusinessException
V3xOrgAccount
类中的get方法获取可以访问的单位id列表,一定要使用此方法!!unitId
- com.seeyon.ctp.common.exceptions.BusinessException
public static V3xOrgPrincipal getV3xOrgPrincipal(java.lang.Long memberId)
public static java.lang.Object getMemberExtAttr(V3xOrgMember member, java.lang.String name)
member
- name
- 扩展属性的别用,比如EmailAddresspublic static java.util.Map<java.lang.String,java.lang.String> getMemberExtAttrKeyMaps()
public static java.util.Map<java.lang.String,java.lang.Object> getMemberExtAttrs(V3xOrgMember member)
public static java.lang.String getExtMemberPriPost(V3xOrgMember member)
member
- public static java.lang.String getExtMemberLevel(V3xOrgMember member)
member
- public static java.lang.Object getUnitExtAttr(V3xOrgUnit unit, java.lang.String name)
unit
- name
- 扩展属性的别用,比如EmailAddresspublic static java.util.Map<java.lang.String,java.lang.String> getUnitExtAttrKeyMaps()
public static java.util.Map<java.lang.String,java.lang.Object> getUnitExtAttrs(V3xOrgUnit unit)
public static java.lang.Object getSysFlag(java.lang.String flagName)
flagName
- 标志名称public static java.lang.String showMemberName(java.lang.Long memberId)
memberId
- public static java.lang.String showDepartmentName(java.lang.Long deptId)
deptId
- public static java.lang.String showOrgPostName(java.lang.Long postId)
public static java.lang.String showOrgMetadataName(java.lang.String metadataId)
public static V3xOrgPost getPost(java.lang.Long postId)
public static java.lang.String getAvatarImageUrl(java.lang.Long memberId)
memberId
- 人员Id。public static java.lang.String getAvatarImageUrl(java.lang.Long memberId, int width)
memberId
- 人员Idwidth
- 人员头像的高宽public static java.lang.String getAvatarImageUrl(java.lang.Long memberId, int width, boolean isIgnoreGif)
memberId
- 人员Idwidth
- 人员头像的高宽isIgnoreGif
- 是否忽略gif,即传入为true标示gif图片不裁剪public static com.seeyon.ctp.common.file.model.CtpFile getAvatarFile(java.lang.Long memberId, java.lang.String showType, int maxWidth)
memberId
- showType
- maxWidth
- public static java.lang.String getDefaultAvatarImageUrl(java.lang.Long memberId)
memberId
- 人员Id。public static void updateOrgModifiedTimeStamp()
public static java.lang.String getAvatarImageUrl(java.lang.Long memberId, java.lang.String contextPath)
memberId
- 人员Id。public static java.lang.String showOrgAccountNameByMemberid(java.lang.Long memberId)
memberId
- public static java.lang.String showOrgAccountShortNameByMemberid(java.lang.Long memberId)
public static java.lang.String showDepartmentFullPath(java.lang.Long departmentId)
public static java.lang.String showDepartmentFullPath(java.lang.Long memberId, java.lang.Long accountId)
public static java.lang.String showDepartmentFullPathByMemberId(java.lang.Long memberId, java.lang.Long departmentId)
public static V3xOrgDepartment getDepartment(java.lang.Long departmentId)
public static java.lang.String showOrgPostNameByMemberid(java.lang.Long memberId)
memberId
- public static java.lang.String getSystemSwitch(java.lang.String name)
name
- public static java.lang.Object getSysFlag(com.seeyon.ctp.common.flag.SysFlag sysFlag)
sysFlag
- public static void throwBusinessExceptionTools(OrganizationMessage m) throws com.seeyon.ctp.common.exceptions.BusinessException
m
- com.seeyon.ctp.common.exceptions.BusinessException
public static java.util.Map getBusinessExceptionMessage(OrganizationMessage m) throws com.seeyon.ctp.common.exceptions.BusinessException
m
- com.seeyon.ctp.common.exceptions.BusinessException
public static java.lang.Boolean checkAccountAccess(java.lang.Long sAccountId, java.lang.Long tAccountId) throws com.seeyon.ctp.common.exceptions.BusinessException
sAccountId
- 当前单位IDtAccountId
- 被比较的单位IDcom.seeyon.ctp.common.exceptions.BusinessException
public static boolean checkDepAccess(java.lang.Long deptId) throws com.seeyon.ctp.common.exceptions.BusinessException
deptId
- 部门IDcom.seeyon.ctp.common.exceptions.BusinessException
public static boolean checkDepAccess(java.lang.Long accountId, java.lang.Long deptId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- 单位IDdeptId
- 部门IDcom.seeyon.ctp.common.exceptions.BusinessException
public static java.util.List<java.lang.Long> filterDepAccess(java.util.List<java.lang.Long> memberIds) throws com.seeyon.ctp.common.exceptions.BusinessException
memberIds
- 需要过滤的人com.seeyon.ctp.common.exceptions.BusinessException
public static java.util.List<java.lang.Long> filterDepAccess(java.lang.Long unitId, java.util.List<java.lang.Long> memberIds) throws com.seeyon.ctp.common.exceptions.BusinessException
unitId
- 指定单位memberIds
- 需要过滤的人com.seeyon.ctp.common.exceptions.BusinessException
public static java.lang.Boolean isHasChildAccountsById(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- com.seeyon.ctp.common.exceptions.BusinessException
public static java.lang.Boolean isHasChildDeptsByDeptId(java.lang.Long deptId, boolean isInteranl) throws com.seeyon.ctp.common.exceptions.BusinessException
deptId
- isInteranl
- true为内部部门false外部部门com.seeyon.ctp.common.exceptions.BusinessException
public static boolean checkLevelScope(java.lang.Long currentMemberId, java.lang.Long memberId)
currentMemberId
- 当前登录者memberId
- 被访问人public static boolean checkLevelScope(java.lang.Long currentMemberId, java.lang.Long curAtAccountId, java.lang.Long memberId, java.lang.Long memberAtAccountId)
public static boolean checkLevelScope(java.lang.Long currentMemberId, java.lang.Long curAtAccountId, java.lang.Long memberId, java.lang.Long memberAtAccountId, java.util.List<MemberPost> currentMemberPosts, java.util.List<MemberPost> memberPosts)
currentMemberId
- 当前登录者memberId
- 被访问人public static java.util.List<V3xOrgMember> checkLevelScope(java.lang.Long currentMemberId, java.util.List<V3xOrgMember> members) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
public static java.util.List<V3xOrgMember> checkLevelScope(java.lang.Long currentMemberId, java.lang.Long currentAccountId, java.util.List<V3xOrgMember> members)
currentMemberId
- 当前人currentAccountId
- 当前人登录单位members
- 需要检查的人public static boolean checkLevelScopes(java.lang.Long currentMemberId, java.util.List<V3xOrgMember> members)
currentMemberId
- members
- public static java.util.Set<java.lang.Long> getChildD(java.lang.Long deptId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
public static int mappingLevelSortId(V3xOrgMember member, java.lang.Long memberAtAccountId, V3xOrgMember currentMember, java.lang.Long curAtAccountId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
public static boolean canReadOuter(java.lang.Long memberId, java.lang.Long outerId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- outerId
- com.seeyon.ctp.common.exceptions.BusinessException
public static java.lang.String showMemberName(V3xOrgMember member)
member
- public static java.lang.String suffix()
public static java.lang.String showOrgAccountName(java.lang.Long accountId)
public static V3xOrgAccount getAccount(java.lang.Long accountId)
public static java.util.List<OrgTypeIdBO> entityListToIdTypeList(java.util.List<V3xOrgEntity> entityList)
entityList
- 实体列表public static java.util.List<OrgTypeIdBO> mapToIdTypeList(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> map)
map
- 实体列表public static java.util.List<OrgTypeIdBO> entityListToIdTypeList(java.util.List<V3xOrgEntity> entityList, java.util.Map<java.lang.Long,java.lang.String> map)
entityList
- 实体列表public static <T extends V3xOrgEntity> java.lang.Class<T> getV3xClass(java.lang.String entityType)
entityType
- public static OrgTree getTree(java.util.List<V3xOrgDepartment> list, java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
list
- accountId
- com.seeyon.ctp.common.exceptions.BusinessException
public static java.lang.String deptPName(java.lang.Long departmentId) throws com.seeyon.ctp.common.exceptions.BusinessException
departmentId
- com.seeyon.ctp.common.exceptions.BusinessException
public static void notUpdateModifyTimestampOfCurrentThread()
public static boolean isUpdateModifyTimestampOfCurrentThread()
public static java.lang.Long getVJoinAllowAccount() throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
public static java.util.List<V3xOrgMember> getMembersByElements(java.lang.String typeAndIds) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
public static java.util.List<java.lang.Long> getEntityIds2(java.util.Collection<? extends V3xOrgEntity> entities)
entities
- 组织模型集合public static java.util.List<java.lang.Long> getMemberIdsByTypeAndId(java.lang.String typeAndIds, OrgManager orgManager)
public static void filterInvalidEntities(java.util.Collection<? extends V3xOrgEntity> entities)
entities
- 组织模型实体集合public static java.util.List<java.lang.Long> getSharerIds(java.lang.String shareScopeTypeAndIds, java.lang.Long creatorId, OrgManager orgManager)
shareScopeTypeAndIds
- 共享范围Type|Ids...creatorId
- 创建者public static java.util.List<java.lang.Long> getSharerAndCreatorIds(java.lang.String shareScopeTypeAndIds, java.lang.Long creatorId, OrgManager orgManager)
shareScopeTypeAndIds
- 共享范围Type|Ids...creatorId
- 创建者public static boolean isLong(java.lang.String id)
public static java.lang.String showOrgLevelName(java.lang.Long levelId)
public static boolean isGovRoleStd()
public static boolean isEntRoleStd()
public static void setSecretLevelEnableStatus(boolean status)
public static boolean isSecretLevelEnable() throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
public static boolean disabledAddressBookSecretLevel() throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
public static java.lang.String getAddressBookSecretLevel()
public static boolean isHaveGuestPermission()
public static boolean isBackAdminRole(java.lang.String roleName)
roleName
- public static boolean isBackAdminRole(OrgConstants.Role_NAME roleName)
roleName
- public static boolean isSystemAdmin()
public static boolean isAuditAdmin()
public static boolean isAdministrator()
public static boolean isGroupAdmin()
public static boolean isLoginGroupAdminRole()
public static boolean isLoginUnitAdminRole()
public static boolean isInitAdmin()
public static boolean isGroupSystemAdmin()
public static boolean isGroupSecretAdmin()
public static boolean isGroupAuditAdmin()
public static boolean isUnitAuditAdmin()
public static boolean isUnitSystemAdmin()
public static boolean isUnitSecretAdmin()
public static boolean isSuperAdmin()
public static boolean isPlatformAdmin()
public static boolean isAdmin()
public static boolean isLoginAsSystemRole(OrgConstants.Role_NAME systemName)
systemName
- 系统角色名称public static OrgConstants.Role_NAME getLoginAdminRole()
public static boolean isGroupVersion()
public static boolean isBenchmarkPost(V3xOrgPost v3xOrgPost)
v3xOrgPost
- 岗位public static boolean isBenchmarkPost(OrgPost orgPost)
orgPost
- 岗位public static PrivlegeSecurityManagerImpl privlegeSecurityManager()
public static boolean hasAdminResouceCode(com.seeyon.ctp.common.authenticate.domain.User user, java.lang.String adminResourceCode)
user
- 当前用户adminResourceCode
- 资源codepublic static boolean hasAdminRole()
public static boolean hasAdminResouceCode(java.lang.String adminResourceCode)
adminResourceCode
- 资源codepublic static java.util.Set<java.lang.String> initRoleSetIfNecessary()
public static boolean showSecretLevel() throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
public static V3xOrgMember getDefaultSystemAdmin()