com.imcode.imcms.mapping
Class CachingDocumentGetter
java.lang.Object
com.imcode.imcms.mapping.DocumentGetterWrapper
com.imcode.imcms.mapping.CachingDocumentGetter
- All Implemented Interfaces:
- DocumentGetter
public class CachingDocumentGetter
- extends DocumentGetterWrapper
TODO: ??? add cache for custom versions ???
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachingDocumentGetter
public CachingDocumentGetter(DocumentGetter documentGetter,
int cacheSize)
getDocument
public DocumentDomainObject getDocument(java.lang.Integer documentId)
- Description copied from interface:
DocumentGetter
- Returns published version of a document.
- Specified by:
getDocument in interface DocumentGetter- Overrides:
getDocument in class DocumentGetterWrapper
getWorkingDocument
public DocumentDomainObject getWorkingDocument(java.lang.Integer documentId)
- Description copied from interface:
DocumentGetter
- Returns working version of a document.
- Specified by:
getWorkingDocument in interface DocumentGetter- Overrides:
getWorkingDocument in class DocumentGetterWrapper
- Parameters:
documentId - document's id.
clearCache
public void clearCache()
removeDocumentFromCache
public void removeDocumentFromCache(java.lang.Integer documentId)
removePublishedDocumentFromCache
public DocumentDomainObject removePublishedDocumentFromCache(java.lang.Integer documentId)
removeWorkingDocumentFromCache
public DocumentDomainObject removeWorkingDocumentFromCache(java.lang.Integer documentId)