Class IndexCache
- java.lang.Object
-
- com.sun.identity.entitlement.opensso.IndexCache
-
public class IndexCache extends Object
Caches the indexes which are stored in Directory Server.
-
-
Field Summary
Fields Modifier and Type Field Description static StringHOST_IDstatic StringPARENTPATH_IDstatic StringPATH_IDstatic StringSUBJECT_ID
-
Constructor Summary
Constructors Constructor Description IndexCache(int size)Constructs
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcache(ResourceSaveIndexes indexes, Set<String> subjectIndexes, String dn)Caches indexes.voidclear(ResourceSaveIndexes indexes, String dn)Clear index cache.Set<String>getMatchingEntries(ResourceSearchIndexes indexes, Set<String> subjectIndexes, boolean bSubTree)Returns a set of DN that matches the resource and subject indexes.
-
-
-
Field Detail
-
HOST_ID
public static final String HOST_ID
- See Also:
- Constant Field Values
-
SUBJECT_ID
public static final String SUBJECT_ID
- See Also:
- Constant Field Values
-
PATH_ID
public static final String PATH_ID
- See Also:
- Constant Field Values
-
PARENTPATH_ID
public static final String PARENTPATH_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
cache
public void cache(ResourceSaveIndexes indexes, Set<String> subjectIndexes, String dn)
Caches indexes.- Parameters:
indexes- Resource cache indexes.subjectIndexes- Subject search indexes.dn- Distinguished name of the privilege.
-
clear
public void clear(ResourceSaveIndexes indexes, String dn)
Clear index cache.- Parameters:
indexes- Resource cache indexes.dn- Distinguished name of the privilege.
-
getMatchingEntries
public Set<String> getMatchingEntries(ResourceSearchIndexes indexes, Set<String> subjectIndexes, boolean bSubTree)
Returns a set of DN that matches the resource and subject indexes.- Parameters:
indexes- Resource search indexes.subjectIndexes- Subject search indexesbSubTree-truefor sub tree search mode.- Returns:
- A set of DN that matches the resource and subject indexes.
-
-