org.nuxeo.ecm.directory
Class DirectoryCache
java.lang.Object
org.nuxeo.ecm.directory.DirectoryCache
public class DirectoryCache
- extends Object
Very simple cache system to cache directory entry lookups (not search
queries).
Beware that this cache is not transaction aware (which is not a problem for
LDAP directories anyway).
If we want to implement a smarter caching strategy we might prefer to base it
on jboss-cache instead of reinventing the wheel.
- Author:
- Olivier Grisel
DirectoryCache
public DirectoryCache()
getEntry
public DocumentModel getEntry(String entryId,
EntrySource source)
throws DirectoryException
- Throws:
DirectoryException
getEntry
public DocumentModel getEntry(String entryId,
EntrySource source,
boolean fetchReferences)
throws DirectoryException
- Throws:
DirectoryException
invalidate
public void invalidate(List<String> entryIds)
invalidate
public void invalidate(String... entryIds)
invalidateAll
public void invalidateAll()
setTimeout
public void setTimeout(int timeout)
setMaxSize
public void setMaxSize(int maxSize)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.