public interface AppSecretLevelManager
Title: 业务密级管理,提供流程中相关功能过滤以及附件密级过滤
Description: 管理类接口
Copyright: Copyright (c) 2021
Company: seeyon.com
限定符和类型 | 字段和说明 |
---|---|
static com.seeyon.ctp.secret.bo.FileSecretLevel |
OBJECT_NOT_EXIST
查找不到业务id
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
canTransfer(java.lang.Long fileSecretLevelValue)
判断能否转发
|
boolean |
canTransfer(java.lang.Long fileSecretLevelValue,
AppSecretLevelEnum destApp) |
java.util.List<com.seeyon.ctp.organization.bo.V3xOrgMember> |
checkLevel(java.lang.Long fileSecretLevelValue,
java.util.List<com.seeyon.ctp.organization.bo.V3xOrgMember> members)
校验人员是否满足文件密级
|
boolean |
checkSecretLevelById(java.lang.Long objectId)
根据当前登录人,业务id,鉴别密级
|
<T> void |
formatFileSecretLevelByIds(java.util.Collection<T> formatList,
java.util.function.Function<T,java.lang.Long> getId,
java.util.function.BiConsumer<T,com.seeyon.ctp.secret.bo.FileSecretLevel> setFileSecret)
给对象批量设置密级,不鉴定当前登陆人密级
|
java.util.List<com.seeyon.ctp.secret.bo.FileSecretLevel> |
getCurrentUserAndDeviceSecretLevels()
获取当前用户与当前登录设备,可选密级范围(交集)
|
java.lang.Long |
getCurrentUserFileSecretLevelValue()
根据当前登录用户最大密级值
|
java.util.Map<java.lang.Long,com.seeyon.ctp.secret.bo.FileSecretLevel> |
getFileSecretLevelByIds(java.util.Collection<java.lang.Long> objectIds)
根据当前登录人,鉴别密级
|
java.util.Map<java.lang.Long,com.seeyon.ctp.secret.bo.FileSecretLevel> |
getFileSecretLevelByIdsWithoutCompareUserLevel(java.util.Collection<java.lang.Long> objectIds)
鉴别密级
|
com.seeyon.ctp.secret.bo.FileSecretLevel |
getFileSecretLevelByValue(java.lang.Long fileSecretlevelValue)
根据文件密级枚举值查询文件密级信息
|
java.util.List<com.seeyon.ctp.secret.bo.FileSecretLevel> |
getFileSecretLevels()
根据当前登录人,获取可选的文件密级列表
|
java.lang.Long |
getFileSecretLevelValueByMemberId(java.lang.Long memberId)
根据人员id查询对应文件密集枚举值
|
com.seeyon.ctp.secret.bo.FileSecretLevel |
getSecretLevelById(java.lang.Long objectId)
根据业务id查询对应业务的文件密级
|
void |
upsertSecretLevel(java.lang.Long objectId,
java.lang.Long secretLevelValue,
AppSecretLevelEnum appSecretLevelEnum)
新增或更新业务密级(已存在则更新)
|
static final com.seeyon.ctp.secret.bo.FileSecretLevel OBJECT_NOT_EXIST
void upsertSecretLevel(java.lang.Long objectId, java.lang.Long secretLevelValue, AppSecretLevelEnum appSecretLevelEnum)
objectId
- 业务单idsecretLevelValue
- 密级枚举值appSecretLevelEnum
- 业务单所属类型.boolean checkSecretLevelById(java.lang.Long objectId) throws com.seeyon.ctp.common.exceptions.BusinessException
objectId
- 业务单idcom.seeyon.ctp.common.exceptions.BusinessException
java.lang.Long getCurrentUserFileSecretLevelValue() throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<com.seeyon.ctp.secret.bo.FileSecretLevel> getFileSecretLevels() throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.secret.bo.FileSecretLevel getFileSecretLevelByValue(java.lang.Long fileSecretlevelValue) throws com.seeyon.ctp.common.exceptions.BusinessException
fileSecretlevelValue
- 文件密级枚举值com.seeyon.ctp.common.exceptions.BusinessException
@AjaxAccess com.seeyon.ctp.secret.bo.FileSecretLevel getSecretLevelById(java.lang.Long objectId) throws com.seeyon.ctp.common.exceptions.BusinessException
objectId
- 业务单idcom.seeyon.ctp.common.exceptions.BusinessException
java.lang.Long getFileSecretLevelValueByMemberId(java.lang.Long memberId) throws com.seeyon.ctp.common.exceptions.BusinessException
memberId
- 人员idcom.seeyon.ctp.common.exceptions.BusinessException
java.util.Map<java.lang.Long,com.seeyon.ctp.secret.bo.FileSecretLevel> getFileSecretLevelByIds(java.util.Collection<java.lang.Long> objectIds) throws com.seeyon.ctp.common.exceptions.BusinessException
objectIds
- 业务单id列表com.seeyon.ctp.common.exceptions.BusinessException
<T> void formatFileSecretLevelByIds(java.util.Collection<T> formatList, java.util.function.Function<T,java.lang.Long> getId, java.util.function.BiConsumer<T,com.seeyon.ctp.secret.bo.FileSecretLevel> setFileSecret) throws com.seeyon.ctp.common.exceptions.BusinessException
T
- formatList
- getId
- setFileSecret
- com.seeyon.ctp.common.exceptions.BusinessException
java.util.Map<java.lang.Long,com.seeyon.ctp.secret.bo.FileSecretLevel> getFileSecretLevelByIdsWithoutCompareUserLevel(java.util.Collection<java.lang.Long> objectIds) throws com.seeyon.ctp.common.exceptions.BusinessException
objectIds
- 业务单id列表com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<com.seeyon.ctp.organization.bo.V3xOrgMember> checkLevel(java.lang.Long fileSecretLevelValue, java.util.List<com.seeyon.ctp.organization.bo.V3xOrgMember> members) throws com.seeyon.ctp.common.exceptions.BusinessException
fileSecretLevelValue
- 文件密级枚举值members
- com.seeyon.ctp.common.exceptions.BusinessException
boolean canTransfer(java.lang.Long fileSecretLevelValue, AppSecretLevelEnum destApp) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
boolean canTransfer(java.lang.Long fileSecretLevelValue) throws com.seeyon.ctp.common.exceptions.BusinessException
fileSecretLevelValue
- 当前文件的密级枚举值com.seeyon.ctp.common.exceptions.BusinessException
java.util.List<com.seeyon.ctp.secret.bo.FileSecretLevel> getCurrentUserAndDeviceSecretLevels() throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException