public class OrgMemberRoleCache extends java.lang.Object implements com.seeyon.ctp.component.cache.CanalMap<V3xOrgRelationship>, com.seeyon.ctp.component.cache.CanalMapViewer
构造器和说明 |
---|
OrgMemberRoleCache() |
限定符和类型 | 方法和说明 |
---|---|
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()
获取缓存分类
|
java.util.List<V3xOrgRelationship> |
findRSByAccountId(long accountId)
已过时。
|
java.util.List<V3xOrgRelationship> |
findRSByEntityId(java.lang.Long entityId)
根据实体Id获取关系
|
java.util.List<V3xOrgRelationship> |
findRSByRoleId(long roleId)
根据角色Id获取关系
|
java.util.List<V3xOrgRelationship> |
findRSByUnitId(long unitId)
根据组织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.Object |
mergeLocalData(java.lang.Object result,
com.seeyon.ctp.component.cache.CanalMap.UpdateEntry<V3xOrgRelationship> updateEntry,
java.lang.String methodName,
java.lang.Object[] args)
合并ThreadLocal,尚未提交的数据,存在当前线程事务还没提交,又要获取数据场景
|
void |
reloadAllData()
从数据库加载全量数据
|
void |
updateChange(com.seeyon.ctp.component.cache.CanalMap.UpdateEntry<V3xOrgRelationship> updateEntry)
更新变更数据[缓存组织内部使用,应用不要调用]
|
public com.seeyon.ctp.component.cache.CanalMap.Define getCacheDefine()
com.seeyon.ctp.component.cache.CanalMap
getCacheDefine
在接口中 com.seeyon.ctp.component.cache.CanalMap<V3xOrgRelationship>
public void reloadAllData()
com.seeyon.ctp.component.cache.CanalMap
reloadAllData
在接口中 com.seeyon.ctp.component.cache.CanalMap<V3xOrgRelationship>
public void updateChange(com.seeyon.ctp.component.cache.CanalMap.UpdateEntry<V3xOrgRelationship> updateEntry)
com.seeyon.ctp.component.cache.CanalMap
updateChange
在接口中 com.seeyon.ctp.component.cache.CanalMap<V3xOrgRelationship>
updateEntry
- 变更数据public java.lang.Object mergeLocalData(java.lang.Object result, com.seeyon.ctp.component.cache.CanalMap.UpdateEntry<V3xOrgRelationship> updateEntry, java.lang.String methodName, java.lang.Object[] args)
com.seeyon.ctp.component.cache.CanalMap
mergeLocalData
在接口中 com.seeyon.ctp.component.cache.CanalMap<V3xOrgRelationship>
result
- 返回的数据updateEntry
- 需要合并的数据methodName
- 方法args
- 方法参数public java.util.List<V3xOrgRelationship> findRSByEntityId(java.lang.Long entityId)
entityId
- public java.util.List<V3xOrgRelationship> findRSByUnitId(long unitId)
unitId
- 组织Id {单位角色:单位Id, 部门角色: 角色Id}public java.util.List<V3xOrgRelationship> findRSByRoleId(long roleId)
roleId
- 角色Id@Deprecated public java.util.List<V3xOrgRelationship> findRSByAccountId(long accountId)
accountId
- 单位Idpublic 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