public class IdCacheBlock extends CacheBlockBase
Also, this cache block can be used to serve as dummy block representing a non-existent directory entry (negative caching). This prevents making un-necessary directory calls for non-existent directory entries.
Since the attributes that can be retrieved depends on the principal performing the operation (ACI's set), the result set would vary. The attributes that are returned are the ones that are readable by the principal. Each cache block keeps account of these differences in result sets by storing all the attributes readable (and writable) on a per principal basis. This information is stored in a PrincipalAccess object. In order to avoid duplicate copy of the values, the all attribute values are not cached per principal. A single copy of the attributes is stored in the IdCacheBlock object. Also this copy of attributes stored in the cache block keeps track of non-existent directory attributes (invalid attributes). This would also prevent un-necessary directory calls for non-existent entry attributes. The attribute copy is dirtied by removing the entries which get modified.
Modifier and Type | Field and Description |
---|---|
protected static long |
ENTRY_DEFAULT_EXPIRE_TIME |
protected static String |
ENTRY_DEFAULT_EXPIRE_TIME_KEY |
protected static boolean |
ENTRY_EXPIRATION_ENABLED_FLAG |
protected static String |
ENTRY_EXPIRATION_ENABLED_KEY |
protected static long |
ENTRY_USER_EXPIRE_TIME |
protected static String |
ENTRY_USER_EXPIRE_TIME_KEY |
Constructor and Description |
---|
IdCacheBlock(String entryDN,
boolean validEntry) |
IdCacheBlock(String entryDN,
String orgDN,
boolean validEntry) |
Modifier and Type | Method and Description |
---|---|
Debug |
getDebug() |
long |
getDefaultEntryExpirationTime() |
Set |
getFullyQualifiedNames() |
long |
getUserEntryExpirationTime() |
boolean |
isEntryExpirationEnabled() |
void |
setFullyQualifiedNames(Set fqn) |
clear, getAttributes, getAttributes, getEntryDN, getObjectType, getOrganizationDN, hasCache, hasCompleteSet, hasExpiredAndUpdated, isExists, putAttributes, removeAttributes, removeAttributes, replaceAttributes, setExists, setObjectType, setOrganizationDN, toString
protected static final String ENTRY_EXPIRATION_ENABLED_KEY
protected static final String ENTRY_USER_EXPIRE_TIME_KEY
protected static final String ENTRY_DEFAULT_EXPIRE_TIME_KEY
protected static boolean ENTRY_EXPIRATION_ENABLED_FLAG
protected static long ENTRY_USER_EXPIRE_TIME
protected static long ENTRY_DEFAULT_EXPIRE_TIME
public IdCacheBlock(String entryDN, boolean validEntry)
public Set getFullyQualifiedNames()
public void setFullyQualifiedNames(Set fqn)
public boolean isEntryExpirationEnabled()
isEntryExpirationEnabled
in class CacheBlockBase
public long getUserEntryExpirationTime()
getUserEntryExpirationTime
in class CacheBlockBase
public long getDefaultEntryExpirationTime()
getDefaultEntryExpirationTime
in class CacheBlockBase
public Debug getDebug()
getDebug
in class CacheBlockBase
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.