public abstract class PortalRequestContext
extends java.lang.Object
PortalRequestContext is an abstract class for accessing runtime context data.
Typically used by consumers of the Portal Persistence API. An instance of
this class can be obtained using the getInstance()
method.
The context object is created and set up at runtime by the PortalRuntimePhaseListener
.
Constructor and Description |
---|
PortalRequestContext() |
Modifier and Type | Method and Description |
---|---|
abstract BasePage<? extends BasePagePropertyBean> |
getCurrentBasePage()
Returns the Current Page object from the PortalRequestContext.
|
static PortalRequestContext |
getInstance()
Returns the PortalRequestContext.
|
abstract java.lang.String |
getPhysicalURI()
Returns the physical URI for the current request.
|
abstract PortalObjectRepository |
getPortalObjectRepository()
Gets the PortalObjectRepository
|
abstract ManagedPortalObject |
getRenderTargetObject()
Returns the portal object that is being rendered in order to
display the current target portal object.
|
abstract ManagedPortalObject |
getTargetObject()
Returns the portal object targeted by the current URL
from the PortalRequestContext.
|
abstract URLGenerator |
getURLGenerator()
Gets the URLGenerator.
|
abstract java.lang.String |
getViewId()
Returns the view ID for the current request.
|
abstract void |
setCurrentBasePage(BasePage<? extends BasePagePropertyBean> page)
Sets the Current Page object in the PortalRequestContext.
|
static void |
setInstance(PortalRequestContext ctx)
Sets the PortalRequestContext.
|
abstract void |
setPhysicalURI(java.lang.String uri)
Sets the physical URI for the current request.
|
abstract void |
setRenderTargetObject(ManagedPortalObject renderTargetObject)
Sets the portal object that is being rendered in order to
display the current target portal object.
|
abstract void |
setTargetObject(ManagedPortalObject targetObject)
Sets the portal object targeted by the current URL
from the PortalRequestContext.
|
abstract void |
setViewId(java.lang.String viewId)
Sets the view ID for the current request.
|
public static PortalRequestContext getInstance()
public static void setInstance(PortalRequestContext ctx)
PortalRuntimePhaseListener
.ctx
- public abstract BasePage<? extends BasePagePropertyBean> getCurrentBasePage()
public abstract void setCurrentBasePage(BasePage<? extends BasePagePropertyBean> page)
page
- the Current Page object.public abstract ManagedPortalObject getTargetObject()
public abstract void setTargetObject(ManagedPortalObject targetObject)
targetObject
- the current target portal object.public abstract ManagedPortalObject getRenderTargetObject()
public abstract void setRenderTargetObject(ManagedPortalObject renderTargetObject)
renderTargetObject
- the current render target portal object.public abstract java.lang.String getPhysicalURI()
public abstract void setPhysicalURI(java.lang.String uri)
uri
- the current physical URI.public abstract java.lang.String getViewId()
public abstract void setViewId(java.lang.String viewId)
viewId
- the current view IDpublic abstract URLGenerator getURLGenerator()
public abstract PortalObjectRepository getPortalObjectRepository()