lumis.portal.page
Class PageWebResource

Package class diagram package PageWebResource
java.lang.Object
  extended by lumis.portal.url.WebResource
      extended by lumis.portal.page.PageWebResource
All Implemented Interfaces:
Cloneable

public class PageWebResource
extends WebResource

A page web resource is a concrete derivation of a PageConfig, that may be rendered or linked to. The portal web pages visible by portal users are page web resources rendered.

Since:
5.0.0

Method Summary
 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.
 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.
 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.
 WindowState getWindowState()
          Returns the window state for the target in this page web resource.
 boolean isCacheEnabled(boolean considerGuestOnlyCache)
          Returns if the cache is enabled for this web resource for the current user.
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.
 
Methods inherited from class lumis.portal.url.WebResource
clone, getCreatedDateTime, getDynamicPath, getFriendlyPath, getFriendlyURLPattern, getId, getLocale, getPageCache, getParameter, getParameterValues, getPath, getPath, localize, setFriendlyPath, setId, setLocale, setPageCache, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getName

public String getName()
Description copied from class: WebResource
Returns the name for this web resource. The name is usually used for management display purposes.

Specified by:
getName in class WebResource
Returns:
this web resource's name, localized according to its locale.
See Also:
WebResource.getLocale()

getTitle

public String getTitle()
Description copied from class: WebResource
Returns the title for this web resource. The title is usually used as an end-user title.

Specified by:
getTitle in class WebResource
Returns:
this web resource's title, localized according to its locale.
See Also:
WebResource.getLocale()

setDynamicPath

protected void setDynamicPath(String dynamicPath)
Description copied from class: WebResource
Sets the dynamic path for this web resource.

Overrides:
setDynamicPath in class WebResource
Parameters:
dynamicPath - the dynamic path relative to the portal web application root. It must start with '/'.

isCacheEnabled

public boolean isCacheEnabled(boolean considerGuestOnlyCache)
Description copied from class: WebResource
Returns if the cache is enabled for this web resource for the current user.

Overrides:
isCacheEnabled in class WebResource
Parameters:
considerGuestOnlyCache - indicates if the result should be true even if the cache is only for guest.
Returns:
true if the cache is enabled, false otherwise.

isFriendlyURLEnabled

protected boolean isFriendlyURLEnabled()
Description copied from class: WebResource
Indicates if friendly URL is enabled for this web resource.

Overrides:
isFriendlyURLEnabled in class WebResource
Returns:
true if it is enabled, false otherwise.

getParameterMap

public Map<String,String[]> getParameterMap()
Description copied from class: WebResource
Returns a map containing all parameters for this web resource.

Specified by:
getParameterMap in class WebResource
Returns:
an immutable map containing all parameters for this web resource.

getParent

public WebResource getParent()
Description copied from class: WebResource
Returns the web resource of the parent element of this web resource.

Specified by:
getParent in class WebResource
Returns:
the parent of this web resource, or null if it has no parent.

getProperties

public Map<String,List<String>> getProperties()
Description copied from class: WebResource
Returns the properties for this web resource.

Specified by:
getProperties in class WebResource
Returns:
a immutable map where the key is the property name and the value is a list of the property's values.

getPageWebResourceData

public PageWebResourceData getPageWebResourceData()
Returns the data generated in runtime for this page web resource.

Since:
5.0.0

getPage

public PageConfig getPage()
Returns the page this web resource is based on.

Returns:
the page.
Since:
5.0.0

getTargetId

public String getTargetId()
Returns the target identifier for this page web resource.

Returns:
the target identifier.
Since:
5.0.0

getTargetScope

public int getTargetScope()
Returns the target scope for this page web resource.

Returns:
the target scope. One of the TARGET_SCOPE_* constants in IServiceInterfaceUrl.
Since:
5.0.0

getPortletMode

public PortletMode getPortletMode()
Returns the portlet mode for the target in this page web resource.

Returns:
the portlet mode.
Since:
5.0.0

getWindowState

public WindowState getWindowState()
Returns the window state for the target in this page web resource.

Returns:
the window state.
Since:
5.0.0

isPreviewModeEnabled

public boolean isPreviewModeEnabled()
Returns true if this page web resource is being processed in preview mode.

Returns:
true if preview mode is enabled, false otherwise.
Since:
5.0.0

setPreviewModeEnabled

public void setPreviewModeEnabled(boolean previewModeEnabled)
Sets the preview mode for processing this page web resource.

Parameters:
previewModeEnabled - true to enable, false to disable.
Since:
5.0.0

getRunTimeServiceInstanceId

public String getRunTimeServiceInstanceId()
Returns the service instance identifier of the runtime service instance for this page web resource.

Returns:
the service instance identifier, or null if this page web resource does not have a runtime service instance.
Since:
5.0.0
See Also:
ServiceInstanceConfig

getRunTimeServiceInterfaceId

public String getRunTimeServiceInterfaceId()
Returns the service interface identifier of the runtime service interface for this page web resource.

Returns:
the service interface identifier, or null if this page web resource does not have a runtime service interface.
Since:
5.0.0
See Also:
ServiceInterfaceConfig


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.