public interface IUserSecurityCache
| Modifier and Type | Interface and Description |
|---|---|
static class |
IUserSecurityCache.AdminType |
| Modifier and Type | Method and Description |
|---|---|
void |
addAccessResolver(IAccessResolver accessResolver)
Adds an access resolver to the chain of resolvers that will work together to calculate the access levels for a given document
|
void |
clearCache()
Clear the cache completely
|
int |
getAccessLevelForDocument(CacheId id, DataObject docInfo)
Deprecated.
this method swallows IdcClientExceptions
|
int |
getAccessLevelForDocument(CacheId id, DataObject docInfo, ITrace trace)
Get the user's access level for a document.
|
CacheId |
getCacheIdForUser(IdcContext userContext)
Deprecated.
this method swallows IdcClientExceptions
|
CacheId |
getCacheIdForUser(IdcContext userContext, ITrace trace)
Get the CacheId.
|
IUserSecurityFlags |
getUserSecurityFlags(CacheId id, ITrace trace)
Returns the UserSecurityFlags object.
|
void |
initializeCache(int maxSize, long timeToLive)
Initialize the cache with maximum size and length to live
|
boolean |
isAdmin(CacheId id, DataObject docInfo, IUserSecurityCache.AdminType adminType)
Deprecated.
this method swallows IdcClientExceptions
|
boolean |
isAdmin(CacheId id, DataObject docInfo, IUserSecurityCache.AdminType adminType, ITrace trace)
Returns the Admin flag for the specific admin type.
|
DataBinder |
removeCacheId(CacheId id)
Remove cache
|
void initializeCache(int maxSize,
long timeToLive)
maxSize - Assuming an LRU cache, the maximum number of entriestimeToLive - Number of milliseconds for each entry to be validvoid clearCache()
void addAccessResolver(IAccessResolver accessResolver)
accessResolver - the IAccessResolver to add@Deprecated CacheId getCacheIdForUser(IdcContext userContext)
userContext - the IdcContentCacheId getCacheIdForUser(IdcContext userContext, ITrace trace) throws IdcClientException
userContext - the IdcContenttrace -IdcClientExceptionDataBinder removeCacheId(CacheId id)
id - CacheID@Deprecated int getAccessLevelForDocument(CacheId id, DataObject docInfo)
id - CacheIddocInfo - document info either from LocalData or from DOC_INFO resultsetint getAccessLevelForDocument(CacheId id, DataObject docInfo, ITrace trace) throws IdcClientException
id - CacheIddocInfo - document info either from LocalData or from DOC_INFO resultsettrace -IdcClientException@Deprecated boolean isAdmin(CacheId id, DataObject docInfo, IUserSecurityCache.AdminType adminType)
id - CacheIddocInfo - document info either from LocalData or from DOC_INFO resultsetadminType -boolean isAdmin(CacheId id, DataObject docInfo, IUserSecurityCache.AdminType adminType, ITrace trace) throws IdcClientException
id - CacheIddocInfo - document info either from LocalData or from DOC_INFO resultsetadminType -trace -IdcClientExceptionIUserSecurityFlags getUserSecurityFlags(CacheId id, ITrace trace) throws IdcClientException
id - CacheId for the usertrace - (can be null to disable tracing)IdcClientException