Interface IDirCache
public interface IDirCache
This interface exposes caching services for a specific directory service.
Each specific Directory Service may or may not particpate in caching
Note, the cache will probably use configuration information from the directory service
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clear the cache typedefault void
Clear query cachevoid
enable
(boolean enable) (de)Activate this cacheRetrieves a principal by uriRetrieves a principal by dnRetrieves a principal list by querygetPasswordHash
(IURI uri) Gets password hash from authentication cachevoid
invalidatePrincipal
(IDirPrincipal dirPrincipal) invalidates based upon the dirPrincipalvoid
invalidatePrincipal
(IURI uri) invalidates based upon the urivoid
invalidates based upon the dnboolean
Whether this directory cache is activevoid
put
(IURI uri, IDirPrincipal dirPrincipal) Puts a principal in the cache based on the urivoid
put
(String dn, IDirPrincipal dirPrincipal) Puts a principal in the cache based on the dnvoid
putList
(String query, IDirPrincipalList dirPrincipalList) Puts a principal list in the cache based on the queryvoid
putPasswordHash
(IURI uri, String passwordHash) Puts authentication cache
-
Method Details
-
isEnabled
Whether this directory cache is active- Throws:
PortalException
-
enable
(de)Activate this cache- Throws:
PortalException
-
clearCache
Clear the cache type- Throws:
PortalException
-
putPasswordHash
Puts authentication cache- Throws:
PortalException
-
getPasswordHash
Gets password hash from authentication cache- Throws:
PortalException
-
put
Puts a principal in the cache based on the dn- Throws:
PortalException
-
put
Puts a principal in the cache based on the uri- Throws:
PortalException
-
putList
Puts a principal list in the cache based on the query- Throws:
PortalException
-
get
Retrieves a principal by dn- Throws:
PortalException
-
get
Retrieves a principal by uri- Throws:
PortalException
-
getList
Retrieves a principal list by query- Throws:
PortalException
-
invalidatePrincipal
invalidates based upon the dn- Throws:
PortalException
-
invalidatePrincipal
invalidates based upon the uri- Throws:
PortalException
-
invalidatePrincipal
invalidates based upon the dirPrincipal- Throws:
PortalException
-
clearQueryCache
default void clearQueryCache()Clear query cache
-