public interface IWebResourceFactory
WebResource
. These
factories are responsible for generating transient WebResource
instances as demanded, but have no direct responsibility over their
life-cycle.Modifier and Type | Method and Description |
---|---|
String |
adjustFriendlyPathForClash(String originalFriendlyPath,
String clashedFriendlyPath,
String suffix)
Adjusts a friendly path due to clash.
|
String |
adjustResolvedFriendlyPath(WebResource webResource,
String friendlyPath)
Adjusts a friendly path that has been resolved for a web resource.
|
WebResource |
createWebResourceByDynamicPath(String dynamicPath)
Creates a
WebResource instance based on a dynamic path. |
boolean |
isCacheEnabled(WebResource webResource)
Returns if the cache is enabled for a web resource.
|
boolean |
requiresFriendlyPathUpdate(WebResource webResource)
Returns whether the friendly path for the given web resource
requires updating.
|
void |
setPageCacheFilePath(PageCacheConfig pageCache)
Sets the file path for a
PageCacheConfig . |
void |
setWebResourcesMissingData(String resourceId,
boolean processChildren)
Sets missing data in the web resources of the specified resource.
|
WebResource createWebResourceByDynamicPath(String dynamicPath) throws PortalException
WebResource
instance based on a dynamic path.dynamicPath
- the dynamic path.IllegalArgumentException
- if dynamicPath
is not a
valid web resource dynamic path for this factory.PortalException
void setPageCacheFilePath(PageCacheConfig pageCache) throws PortalException
PageCacheConfig
.pageCache
- the page cache.PortalException
boolean isCacheEnabled(WebResource webResource) throws PortalException
webResource
- the web resource.true
if the cache is enabled, false
otherwise.PortalException
void setWebResourcesMissingData(String resourceId, boolean processChildren) throws PortalException
resourceId
- the resource owner of the web resources.processChildren
- indicates if web resources of children resources
should also be processed.PortalException
String adjustResolvedFriendlyPath(WebResource webResource, String friendlyPath)
webResource
- the web resource.friendlyPath
- the resolved friendly path.String adjustFriendlyPathForClash(String originalFriendlyPath, String clashedFriendlyPath, String suffix)
originalFriendlyPath
- the original friendly path resolved.clashedFriendlyPath
- the last clashed friendly path value.numRetry
- the number of retry for adjust clashing for this friendly
path. In each call to this method for resolving a single friendly path this
value is incremented.boolean requiresFriendlyPathUpdate(WebResource webResource)
webResource
- the web resource.true
if update is required, false
otherwise.LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.