public class DocumentLoaderCachingProxy
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DocumentLoaderCachingProxy.MenuCacheKey |
| Constructor and Description |
|---|
DocumentLoaderCachingProxy(DocumentVersionMapper versionMapper,
DocumentLoader loader,
DocumentLanguages documentLanguages,
PropertyService propertyService,
Config config) |
| Modifier and Type | Method and Description |
|---|---|
<T extends DocumentDomainObject> |
getCustomDoc(DocRef docRef) |
<T extends DocumentDomainObject> |
getDefaultDoc(int docId,
java.lang.String docLanguageCode) |
java.lang.Integer |
getDocIdByAlias(java.lang.String docAlias) |
DocumentVersionInfo |
getDocVersionInfo(int docId) |
java.util.List<MenuItemDTO> |
getMenuItems(DocumentLoaderCachingProxy.MenuCacheKey menuCacheKey,
java.util.function.Supplier<java.util.List<MenuItemDTO>> menuDtoSupplier) |
DocumentMeta |
getMeta(int docId) |
java.util.List<MenuItemDTO> |
getPublicMenuItems(DocumentLoaderCachingProxy.MenuCacheKey menuCacheKey,
java.util.function.Supplier<java.util.List<MenuItemDTO>> menuDtoSupplier) |
java.util.List<MenuItemDTO> |
getVisibleMenuItems(DocumentLoaderCachingProxy.MenuCacheKey menuCacheKey,
java.util.function.Supplier<java.util.List<MenuItemDTO>> menuDtoSupplier) |
<T extends DocumentDomainObject> |
getWorkingDoc(int docId,
java.lang.String docLanguageCode) |
void |
invalidateMenuItemsCacheBy(java.lang.Integer docId) |
void |
invalidateMenuItemsCacheBy(Menu menu) |
void |
invalidateMenuItemsCacheBy(MenuDTO menuDTO) |
void |
invalidateMenuItemsCacheBy(Version version) |
void |
removeDocFromCache(int docId) |
public DocumentLoaderCachingProxy(DocumentVersionMapper versionMapper, DocumentLoader loader, DocumentLanguages documentLanguages, PropertyService propertyService, Config config)
public DocumentMeta getMeta(int docId)
public DocumentVersionInfo getDocVersionInfo(int docId)
public java.lang.Integer getDocIdByAlias(java.lang.String docAlias)
public <T extends DocumentDomainObject> T getWorkingDoc(int docId, java.lang.String docLanguageCode)
public <T extends DocumentDomainObject> T getDefaultDoc(int docId, java.lang.String docLanguageCode)
public <T extends DocumentDomainObject> T getCustomDoc(DocRef docRef)
public void removeDocFromCache(int docId)
public java.util.List<MenuItemDTO> getMenuItems(DocumentLoaderCachingProxy.MenuCacheKey menuCacheKey, java.util.function.Supplier<java.util.List<MenuItemDTO>> menuDtoSupplier)
public java.util.List<MenuItemDTO> getVisibleMenuItems(DocumentLoaderCachingProxy.MenuCacheKey menuCacheKey, java.util.function.Supplier<java.util.List<MenuItemDTO>> menuDtoSupplier)
public java.util.List<MenuItemDTO> getPublicMenuItems(DocumentLoaderCachingProxy.MenuCacheKey menuCacheKey, java.util.function.Supplier<java.util.List<MenuItemDTO>> menuDtoSupplier)
public void invalidateMenuItemsCacheBy(Menu menu)
public void invalidateMenuItemsCacheBy(java.lang.Integer docId)
public void invalidateMenuItemsCacheBy(Version version)
public void invalidateMenuItemsCacheBy(MenuDTO menuDTO)