|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.faces.bridge.scope.BridgeRequestScopeBaseImpl
com.liferay.faces.bridge.scope.BridgeRequestScopeCompatImpl
com.liferay.faces.bridge.scope.BridgeRequestScopeCompat_2_2_Impl
com.liferay.faces.bridge.scope.BridgeRequestScopeImpl
public class BridgeRequestScopeImpl
| Nested Class Summary | |
|---|---|
protected class |
BridgeRequestScopeImpl.IncongruityAttribute
|
protected class |
BridgeRequestScopeImpl.RequestAttribute
|
| Nested classes/interfaces inherited from class com.liferay.faces.bridge.scope.BridgeRequestScopeCompatImpl |
|---|
BridgeRequestScopeCompatImpl.FacesContextAttribute |
| Nested classes/interfaces inherited from interface com.liferay.faces.bridge.scope.BridgeRequestScope |
|---|
BridgeRequestScope.Transport |
| Field Summary | |
|---|---|
protected static String |
BRIDGE_REQ_SCOPE_NON_EXCLUDED_ATTR_NAMES
|
protected static String |
EXCLUCED_NAMESPACE_JAVAX_SERVLET
|
protected static String |
EXCLUCED_NAMESPACE_JAVAX_SERVLET_INCLUDE
|
protected static String |
EXCLUDED_NAMESPACE_JAVAX_FACES
|
protected static String |
EXCLUDED_NAMESPACE_JAVAX_PORTLET
|
protected static String |
EXCLUDED_NAMESPACE_JAVAX_PORTLET_FACES
|
| Constructor Summary | |
|---|---|
BridgeRequestScopeImpl(javax.portlet.PortletConfig portletConfig,
javax.portlet.PortletContext portletContext,
javax.portlet.PortletRequest portletRequest)
|
|
| 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). |
Map<String,Object> |
getManagedBeanMap()
|
javax.portlet.PortletMode |
getPortletMode()
|
protected Set<String> |
getPreExistingRequestAttributeNames(javax.portlet.PortletRequest portletRequest)
According to section 5.1.2 of the JSR 329 spec, the request attributes that exist before the bridge acquires the FacesContext must not be part of the bridge request scope. |
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. |
int |
hashCode()
The overrides for toString() and hashCode() are necessary because the ConcurrentHashMap
parent class overrides them and causes debug logs to be difficult to interpret. |
protected boolean |
isExcludedRequestAttributeByAnnotation(Object attributeValue)
|
protected boolean |
isExcludedRequestAttributeByConfig(String attributeName,
Object attributeValue)
|
protected boolean |
isExcludedRequestAttributeByInstance(String attributeName,
Object attributeValue)
|
protected boolean |
isExcludedRequestAttributeByNamespace(String attributeName)
|
protected boolean |
isExcludedRequestAttributeByPreExisting(String attributeName)
|
boolean |
isFacesLifecycleExecuted()
Returns the flag indicating whether or not the Faces Lifecycle was executed. |
protected boolean |
isNamespaceMatch(String attributeName,
String namespace)
|
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)
Unlike Pluto, Liferay will preserve/copy request attributes that were originally set on an ActionRequest
into the RenderRequest. |
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)
Saves the state of the FacesContext as required by section 5.1.2 of the JSR 329 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 redirect)
Sets a flag indicating whether or not a |
String |
toString()
The overrides for toString() and hashCode() are necessary because the ConcurrentHashMap
parent class overrides them and causes debug logs to be difficult to interpret. |
| Methods inherited from class com.liferay.faces.bridge.scope.BridgeRequestScopeCompat_2_2_Impl |
|---|
restoreClientWindow, saveClientWindow |
| Methods inherited from class com.liferay.faces.bridge.scope.BridgeRequestScopeCompatImpl |
|---|
restoreFlashState, restoreJSF2FacesContextAttributes, saveFlashState, saveJSF2FacesContextAttributes |
| Methods inherited from class com.liferay.faces.bridge.scope.BridgeRequestScopeBaseImpl |
|---|
getAttribute, setAttribute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final String BRIDGE_REQ_SCOPE_NON_EXCLUDED_ATTR_NAMES
protected static final String EXCLUDED_NAMESPACE_JAVAX_FACES
protected static final String EXCLUDED_NAMESPACE_JAVAX_PORTLET
protected static final String EXCLUDED_NAMESPACE_JAVAX_PORTLET_FACES
protected static final String EXCLUCED_NAMESPACE_JAVAX_SERVLET
protected static final String EXCLUCED_NAMESPACE_JAVAX_SERVLET_INCLUDE
| Constructor Detail |
|---|
public BridgeRequestScopeImpl(javax.portlet.PortletConfig portletConfig,
javax.portlet.PortletContext portletContext,
javax.portlet.PortletRequest portletRequest)
| Method Detail |
|---|
public int hashCode()
toString() and hashCode() are necessary because the ConcurrentHashMap
parent class overrides them and causes debug logs to be difficult to interpret.
hashCode in class Objectpublic void removeExcludedAttributes(javax.portlet.RenderRequest renderRequest)
ActionRequest
into the RenderRequest. However, the Bridge Spec assumes that they will not be preserved. Therefore is
necessary to remove these request attributes when running under Liferay.
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)
saveState in interface BridgeRequestScopefacesContext - The current faces context.public String toString()
toString() and hashCode() are necessary because the ConcurrentHashMap
parent class overrides them and causes debug logs to be difficult to interpret.
toString in class Objectpublic 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 BridgeRequestScope
protected boolean isExcludedRequestAttributeByInstance(String attributeName,
Object attributeValue)
protected boolean isExcludedRequestAttributeByNamespace(String attributeName)
public void setFacesLifecycleExecuted(boolean facesLifecycleExecuted)
BridgeRequestScope
setFacesLifecycleExecuted in interface BridgeRequestScopefacesLifecycleExecuted - true indicates that the Faces lifecycle was executed, otherwise
false.
protected boolean isExcludedRequestAttributeByConfig(String attributeName,
Object attributeValue)
protected boolean isExcludedRequestAttributeByPreExisting(String attributeName)
protected boolean isNamespaceMatch(String attributeName,
String namespace)
public String getId()
BridgeRequestScopeBridgeRequestScope.setIdPrefix(String).
getId in interface BridgeRequestScopepublic void setIdPrefix(String idPrefix)
BridgeRequestScopeBridgeRequestScope.getId().
setIdPrefix in interface BridgeRequestScopepublic Map<String,Object> getManagedBeanMap()
protected boolean isExcludedRequestAttributeByAnnotation(Object attributeValue)
public 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 BridgeRequestScopeprotected Set<String> getPreExistingRequestAttributeNames(javax.portlet.PortletRequest portletRequest)
public Map<String,String> getPreservedActionParameterMap()
getPreservedActionParameterMap in interface BridgeRequestScopepublic String getPreservedViewStateParam()
getPreservedViewStateParam in interface BridgeRequestScopepublic void setRedirectOccurred(boolean redirect)
BridgeRequestScope
setRedirectOccurred in interface BridgeRequestScoperedirect - 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 BridgeRequestScope
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||