public class PageWebResource extends WebResource
PageConfig
,
that may be rendered or linked to. The portal web pages visible by
portal users are page web resources rendered.Modifier and Type | Method and Description |
---|---|
PageWebResource |
clone() |
URL |
getCanonicalUrl()
Returns the canonical URL for this web resource.
|
String |
getName()
Returns the name for this web resource.
|
PageConfig |
getPage()
Returns the page this web resource is based on.
|
PageWebResourceData |
getPageWebResourceData()
Returns the data generated in runtime for this page web resource.
|
Map<String,String[]> |
getParameterMap()
Returns a map containing all parameters for this web resource.
|
WebResource |
getParent()
Returns the web resource of the parent element of this web resource.
|
PortletMode |
getPortletMode()
Returns the portlet mode for the target in this page web resource.
|
Map<String,List<String>> |
getProperties()
Returns the properties for this web resource.
|
protected String |
getRecommendedFileExtension()
Returns the file extension recommended for this web resource, according
to its configurations.
|
String |
getRunTimeServiceInstanceId()
Returns the service instance identifier of the runtime service instance
for this page web resource.
|
String |
getRunTimeServiceInterfaceId()
Returns the service interface identifier of the runtime service interface
for this page web resource.
|
protected String |
getSeoRuleUrlPattern()
Get the Url Path from the SeoRule linked to this WebResource.
|
String |
getTargetId()
Returns the target identifier for this page web resource.
|
int |
getTargetScope()
Returns the target scope for this page web resource.
|
String |
getTitle()
Returns the title for this web resource.
|
String |
getUrlTitle()
Returns the title value meant to be used for friendly URL generation of this web resource.
|
WindowState |
getWindowState()
Returns the window state for the target in this page web resource.
|
protected boolean |
hasSSI()
Returns whether this web resource has Server Side Include
(requires SSI pos-processing).
|
boolean |
isCacheEnabled()
Returns if the cache is enabled for this web resource.
|
protected boolean |
isFriendlyURLEnabled()
Indicates if friendly URL is enabled for this web resource.
|
boolean |
isPreviewModeEnabled()
Returns true if this page web resource is being processed in preview mode.
|
protected void |
setDynamicPath(String dynamicPath)
Sets the dynamic path for this web resource.
|
void |
setPreviewModeEnabled(boolean previewModeEnabled)
Sets the preview mode for processing this page web resource.
|
calculatePath, getCreatedDateTime, getDynamicPath, getFriendlyPath, getFriendlyURLPattern, getId, getLocale, getPageCache, getParameter, getParameterValues, getPath, getWebsite, isAvailableForGetRequest, isCacheEnabled, isDynamicRequestValid, localize, mayBePersisted, setFriendlyPath, setId, setLocale, setPageCache, setWebsite, toString
public String getName()
WebResource
getName
in class WebResource
WebResource.getLocale()
public String getTitle()
WebResource
getTitle
in class WebResource
WebResource.getLocale()
public String getUrlTitle()
WebResource
getUrlTitle
in class WebResource
IURLResolver
public URL getCanonicalUrl()
The canonical URL value is provided by IPageWebResourceDataProvider
in
PageWebResourceData.getCanonicalUrl()
.
null
if this web resource is not available for access in a web site.protected void setDynamicPath(String dynamicPath)
WebResource
setDynamicPath
in class WebResource
dynamicPath
- the dynamic path relative to the portal web
application root. It must start with '/'.public boolean isCacheEnabled()
WebResource
isCacheEnabled
in class WebResource
true
if the cache is enabled, false
otherwise.protected boolean isFriendlyURLEnabled()
WebResource
isFriendlyURLEnabled
in class WebResource
true
if it is enabled, false
otherwise.protected boolean hasSSI()
WebResource
hasSSI
in class WebResource
true
if this web resource has SSI, false
otherwise.protected String getRecommendedFileExtension()
WebResource
getRecommendedFileExtension
in class WebResource
public Map<String,String[]> getParameterMap()
WebResource
getParameterMap
in class WebResource
public WebResource getParent()
WebResource
getParent
in class WebResource
null
if it
has no parent.public Map<String,List<String>> getProperties()
WebResource
getProperties
in class WebResource
public PageWebResourceData getPageWebResourceData()
public PageConfig getPage()
public String getTargetId()
public int getTargetScope()
IServiceInterfaceUrl
.public PortletMode getPortletMode()
public WindowState getWindowState()
public boolean isPreviewModeEnabled()
public void setPreviewModeEnabled(boolean previewModeEnabled)
previewModeEnabled
- true to enable, false to disable.public String getRunTimeServiceInstanceId()
null
if this
page web resource does not have a runtime service instance.ServiceInstanceConfig
public String getRunTimeServiceInterfaceId()
null
if this
page web resource does not have a runtime service interface.ServiceInterfaceConfig
protected String getSeoRuleUrlPattern() throws PortalException
WebResource
getSeoRuleUrlPattern
in class WebResource
null
if not specified.PortalException
public PageWebResource clone() throws CloneNotSupportedException
clone
in interface ICloneableCacheEntry
clone
in class WebResource
CloneNotSupportedException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.