public class PageCacheUtil extends Object
Constructor and Description |
---|
PageCacheUtil() |
Modifier and Type | Method and Description |
---|---|
static PageConfig |
getPageByPageCache(SessionConfig sessionConfig,
PageCacheConfig pageCacheConfig,
ITransaction transaction)
Returns the page that will be rendered when accessing a web resource.
|
static String |
getPageCacheGeneratorUserAgent()
Returns the user agent string to be used when requesting a page for cache generation.
|
static boolean |
isIncludedInAutomaticBulkExpiration(PageCacheConfig pageCacheConfig)
Returns whether the given page cache is included in automatic bulk operation.
|
public static PageConfig getPageByPageCache(SessionConfig sessionConfig, PageCacheConfig pageCacheConfig, ITransaction transaction) throws PortalException
sessionConfig
- the user session information.pageCacheConfig
- the page cache config.transaction
- the transaction for persistence access.PortalObjectNotFoundException
- if no page was found for the
specified web resource.IllegalArgumentException
- if webResource
is of an
unsupported class.PortalException
public static boolean isIncludedInAutomaticBulkExpiration(PageCacheConfig pageCacheConfig)
pageCacheConfig
- the page cache.public static String getPageCacheGeneratorUserAgent() throws PortalException
PortalException
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.