|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.faces.bridge.scope.BridgeRequestScopeWrapper
public abstract class BridgeRequestScopeWrapper
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.liferay.faces.bridge.scope.BridgeRequestScope |
|---|
BridgeRequestScope.Transport |
| Constructor Summary | |
|---|---|
BridgeRequestScopeWrapper()
|
|
| Method Summary | |
|---|---|
Bridge.PortletPhase |
getBeganInPhase()
Determines the Bridge.PortletPhase in which the bridge request scope instance was
created. |
long |
getDateCreated()
Returns the date in which the scope was created, measured in UTC milliseconds from the epoch. |
String |
getId()
Returns the unique identifier, which is prefixed with the value passed to BridgeRequestScope.setIdPrefix(String). |
javax.portlet.PortletMode |
getPortletMode()
|
Map<String,String> |
getPreservedActionParameterMap()
|
String |
getPreservedViewStateParam()
|
Set<String> |
getRemovedAttributeNames()
This method returns a mutable set of attribute names that correspond to those that were removed by the BridgeRequestScope.removeExcludedAttributes(RenderRequest) method. |
abstract BridgeRequestScope |
getWrapped()
|
boolean |
isFacesLifecycleExecuted()
Returns the flag indicating whether or not the Faces Lifecycle was executed. |
boolean |
isNavigationOccurred()
Returns the flag indicating whether or not a navigation-rule fired. |
boolean |
isPortletModeChanged()
Returns a flag indicating whether or not the PortletMode has changed. |
boolean |
isRedirectOccurred()
Returns a flag indicating whether or not a |
void |
removeExcludedAttributes(javax.portlet.RenderRequest renderRequest)
This method removes the excluded request attributes. |
void |
restoreState(javax.faces.context.FacesContext facesContext)
This method restores the scoped data that was preserved by the call to BridgeRequestScope.saveState(FacesContext) method as
required by section 5.1.2 of the Bridge Spec. |
void |
saveState(javax.faces.context.FacesContext facesContext)
This method preserves the scoped data (as defined in Section 5.1.2 of the Bridge Spec). |
void |
setFacesLifecycleExecuted(boolean facesLifecycleExecuted)
Sets the flag indicating whether or not the Faces lifecycle was executed. |
void |
setIdPrefix(String idPrefix)
Sets the prefix of the unique identifier returned by BridgeRequestScope.getId(). |
void |
setNavigationOccurred(boolean navigationOccurred)
Sets the flag indicating whether or not a navigation-rule fired. |
void |
setPortletMode(javax.portlet.PortletMode portletMode)
|
void |
setPortletModeChanged(boolean portletModeChanged)
Sets a flag indicating whether or not the PortletMode has changed. |
void |
setRedirectOccurred(boolean redirectOccurred)
Sets a flag indicating whether or not a |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BridgeRequestScopeWrapper()
| Method Detail |
|---|
public void removeExcludedAttributes(javax.portlet.RenderRequest renderRequest)
BridgeRequestScopeBridgePortalContext.POST_REDIRECT_GET_SUPPORT evaluates to false.
This is because portlet containers that do indeed implement the POST-REDIRECT-GET design pattern would not have
any excluded request attributes carry-over from the ActionRequest to the RenderRequest.
removeExcludedAttributes in interface BridgeRequestScopepublic void restoreState(javax.faces.context.FacesContext facesContext)
BridgeRequestScopeBridgeRequestScope.saveState(FacesContext) method as
required by section 5.1.2 of the Bridge Spec. This method is designed to be called during the EVENT_PHASE and
RENDER_PHASE of the portlet lifecycle.
restoreState in interface BridgeRequestScopefacesContext - The current FacesContext.public void saveState(javax.faces.context.FacesContext facesContext)
BridgeRequestScopePortletRequest.ACTION_PHASE and PortletRequest.EVENT_PHASE
of the portlet lifecycle.
saveState in interface BridgeRequestScopefacesContext - The current FacesContext.public Bridge.PortletPhase getBeganInPhase()
BridgeRequestScopeBridge.PortletPhase in which the bridge request scope instance was
created.
getBeganInPhase in interface BridgeRequestScopeBridge.PortletPhase in which the bridge request scope instance was
created.public boolean isFacesLifecycleExecuted()
BridgeRequestScope
isFacesLifecycleExecuted in interface BridgeRequestScopetrue if the Faces Lifecycle was executed, otherwise false.public boolean isNavigationOccurred()
BridgeRequestScope
isNavigationOccurred in interface BridgeRequestScopetrue indicates that a navigation-rule fired, otherwise false.public boolean isPortletModeChanged()
BridgeRequestScope
isPortletModeChanged in interface BridgeRequestScopetrue if the portlet mode has changed, otherwise falsepublic boolean isRedirectOccurred()
BridgeRequestScope
isRedirectOccurred in interface BridgeRequestScopetrue indicates that
false.public long getDateCreated()
BridgeRequestScope
getDateCreated in interface BridgeRequestScopepublic void setFacesLifecycleExecuted(boolean facesLifecycleExecuted)
BridgeRequestScope
setFacesLifecycleExecuted in interface BridgeRequestScopefacesLifecycleExecuted - true indicates that the Faces lifecycle was executed, otherwise
false.public String getId()
BridgeRequestScopeBridgeRequestScope.setIdPrefix(String).
getId in interface BridgeRequestScopepublic void setIdPrefix(String idPrefix)
BridgeRequestScopeBridgeRequestScope.getId().
setIdPrefix in interface BridgeRequestScopepublic void setNavigationOccurred(boolean navigationOccurred)
BridgeRequestScope
setNavigationOccurred in interface BridgeRequestScopenavigationOccurred - true indicates that a navigation-rule fired, otherwise
false.public javax.portlet.PortletMode getPortletMode()
getPortletMode in interface BridgeRequestScopepublic void setPortletMode(javax.portlet.PortletMode portletMode)
setPortletMode in interface BridgeRequestScopepublic void setPortletModeChanged(boolean portletModeChanged)
BridgeRequestScopetrue then request attributes
will not be preserved when the BridgeRequestScope.saveState(FacesContext) method is called.
setPortletModeChanged in interface BridgeRequestScopepublic Map<String,String> getPreservedActionParameterMap()
getPreservedActionParameterMap in interface BridgeRequestScopepublic String getPreservedViewStateParam()
getPreservedViewStateParam in interface BridgeRequestScopepublic void setRedirectOccurred(boolean redirectOccurred)
BridgeRequestScope
setRedirectOccurred in interface BridgeRequestScoperedirectOccurred - true indicates that a false.public Set<String> getRemovedAttributeNames()
BridgeRequestScopeBridgeRequestScope.removeExcludedAttributes(RenderRequest) method. Since the return value is mutable, callers of this method have
an opportunity to add names to the set when necessary.
getRemovedAttributeNames in interface BridgeRequestScopepublic abstract BridgeRequestScope getWrapped()
getWrapped in interface javax.faces.FacesWrapper<BridgeRequestScope>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||