public class OrgUnitCache extends java.lang.Object implements com.seeyon.ctp.component.cache.EntityCanalMap<V3xOrgUnit>, com.seeyon.ctp.component.cache.CanalMapViewer
构造器和说明 |
---|
OrgUnitCache() |
限定符和类型 | 方法和说明 |
---|---|
java.util.List<com.seeyon.ctp.component.cache.CanalMapViewer.CacheSimpleData> |
findCacheData(java.util.Map<java.lang.String,java.lang.Object> params)
获取缓存分页数据
|
java.util.List<com.seeyon.ctp.component.cache.CanalMapViewer.CacheCategory> |
findCategorys()
获取缓存分类
|
V3xOrgAccount |
getAccountById(long id)
通过单位Id,获取单位数据
|
java.util.List<V3xOrgAccount> |
getAllDisableAccount(java.lang.Integer externalType)
获取不可用的单位
|
java.util.List<V3xOrgUnit> |
getAllDisableUnit()
获取全部无可用的组织
|
java.util.List<V3xOrgAccount> |
getAllEnableAccounts(java.lang.Integer externalType)
获取全部可用的单位
|
java.util.List<V3xOrgUnit> |
getAllEnableUnit()
获取全部可用的组织
|
V3xOrgUnit |
getById(long id)
通过Id获取实体
|
com.seeyon.ctp.component.cache.CanalMap.Define |
getCacheDefine()
缓存分类名称
|
com.seeyon.ctp.component.cache.CanalMapViewer.CacheDetail |
getCacheDetail(java.lang.String cacheName,
java.lang.String categoryKey,
java.lang.String cacheKey)
获取详细的缓存数据
|
java.lang.String |
getDeptFullPath(long depId)
获取部门全路径
|
java.lang.Long |
getIdByPath(java.lang.String path)
通过path 获取组织Id
|
boolean |
isChildDept(java.lang.Long parentId,
java.lang.Long deptid)
是否是部门的子部门
|
boolean |
isExistDept()
判断是否存在部门
|
java.lang.Object |
mergeLocalData(java.lang.Object result,
java.util.List<com.seeyon.ctp.component.cache.EntityCanalMap.ActionHolder<V3xOrgUnit>> updateEntry,
java.lang.String methodName,
java.lang.Object[] args)
合并ThreadLocal,尚未提交的数据,存在当前线程事务还没提交,又要获取数据场景
|
void |
reloadAllData()
从数据库加载全量数据
|
void |
updateChange(java.util.List<com.seeyon.ctp.component.cache.EntityCanalMap.ActionHolder<V3xOrgUnit>> updateEntry)
更新变更数据[缓存组织内部使用,应用不要调用]
|
public com.seeyon.ctp.component.cache.CanalMap.Define getCacheDefine()
com.seeyon.ctp.component.cache.EntityCanalMap
getCacheDefine
在接口中 com.seeyon.ctp.component.cache.EntityCanalMap<V3xOrgUnit>
public void reloadAllData()
com.seeyon.ctp.component.cache.EntityCanalMap
reloadAllData
在接口中 com.seeyon.ctp.component.cache.EntityCanalMap<V3xOrgUnit>
public void updateChange(java.util.List<com.seeyon.ctp.component.cache.EntityCanalMap.ActionHolder<V3xOrgUnit>> updateEntry)
com.seeyon.ctp.component.cache.EntityCanalMap
updateChange
在接口中 com.seeyon.ctp.component.cache.EntityCanalMap<V3xOrgUnit>
updateEntry
- 变更数据public java.lang.Object mergeLocalData(java.lang.Object result, java.util.List<com.seeyon.ctp.component.cache.EntityCanalMap.ActionHolder<V3xOrgUnit>> updateEntry, java.lang.String methodName, java.lang.Object[] args)
com.seeyon.ctp.component.cache.EntityCanalMap
mergeLocalData
在接口中 com.seeyon.ctp.component.cache.EntityCanalMap<V3xOrgUnit>
result
- 返回的数据updateEntry
- 需要合并的数据methodName
- 方法args
- 方法参数public V3xOrgUnit getById(long id)
id
- 实体Idpublic V3xOrgAccount getAccountById(long id)
id
- 单位Idpublic java.util.List<V3xOrgAccount> getAllEnableAccounts(java.lang.Integer externalType)
externalType
- 外部单位类型[可以为空]public java.lang.Long getIdByPath(java.lang.String path)
path
- 单位pathpublic java.util.List<V3xOrgUnit> getAllEnableUnit()
public java.util.List<V3xOrgUnit> getAllDisableUnit()
public java.util.List<V3xOrgAccount> getAllDisableAccount(java.lang.Integer externalType)
externalType
- 单位类型public java.lang.String getDeptFullPath(long depId)
depId
- 部门IDpublic boolean isExistDept()
public boolean isChildDept(java.lang.Long parentId, java.lang.Long deptid)
parentId
- 父部门deptid
- 子部门public java.util.List<com.seeyon.ctp.component.cache.CanalMapViewer.CacheCategory> findCategorys()
com.seeyon.ctp.component.cache.CanalMapViewer
findCategorys
在接口中 com.seeyon.ctp.component.cache.CanalMapViewer
public java.util.List<com.seeyon.ctp.component.cache.CanalMapViewer.CacheSimpleData> findCacheData(java.util.Map<java.lang.String,java.lang.Object> params)
com.seeyon.ctp.component.cache.CanalMapViewer
findCacheData
在接口中 com.seeyon.ctp.component.cache.CanalMapViewer
params
- 参数public com.seeyon.ctp.component.cache.CanalMapViewer.CacheDetail getCacheDetail(java.lang.String cacheName, java.lang.String categoryKey, java.lang.String cacheKey)
com.seeyon.ctp.component.cache.CanalMapViewer
getCacheDetail
在接口中 com.seeyon.ctp.component.cache.CanalMapViewer
cacheName
- 缓存全名称categoryKey
- 分类keycacheKey
- 缓存key