|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidad.change.ChangeManager
org.apache.myfaces.trinidad.change.SessionChangeManager
public class SessionChangeManager
A ChangeManager implementation that manages persisting the added Changes at the session. This means the lifetime of Changes added such is within the session scope.
Constructor Summary | |
---|---|
SessionChangeManager()
|
Method Summary | |
---|---|
void |
addComponentChange(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
ComponentChange change)
Add a ComponentChange to this current request for a specified component. |
java.util.Iterator<ComponentChange> |
getComponentChanges(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent)
Retrieve the ComponentChanges available for specified component on this request. |
java.util.Iterator<java.lang.String> |
getComponentIdsWithChanges(javax.faces.context.FacesContext facesContext)
Retrieve the identifiers of all components on this request that have Changes associated with them for the viewId specified in the facesContext. |
protected java.util.Map<java.lang.String,java.util.List<ComponentChange>> |
getComponentToChangesMapForView(javax.faces.context.FacesContext facesContext,
java.lang.String viewId,
boolean createIfNecessary)
The Map used to store the Changes. |
protected org.w3c.dom.Document |
getDocument(javax.faces.context.FacesContext context)
We don't support DocumentAspect persistence |
protected void |
persistDocumentChanges(javax.faces.context.FacesContext facesContext)
|
protected boolean |
supportsDocumentPersistence(javax.faces.context.FacesContext context)
Returns true if we can support Document-based Persistence in this ChangeManager. |
Methods inherited from class org.apache.myfaces.trinidad.change.ChangeManager |
---|
addDocumentChange, createDocumentChange, registerDocumentFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionChangeManager()
Method Detail |
---|
protected java.util.Map<java.lang.String,java.util.List<ComponentChange>> getComponentToChangesMapForView(javax.faces.context.FacesContext facesContext, java.lang.String viewId, boolean createIfNecessary)
facesContext
- FacesContext for requestviewId
- viewID for requestcreateIfNecessary
- true
if Map should be created if not
already present
protected org.w3c.dom.Document getDocument(javax.faces.context.FacesContext context)
public void addComponentChange(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, ComponentChange change)
addComponentChange
in class ChangeManager
public java.util.Iterator<ComponentChange> getComponentChanges(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
getComponentChanges
in class ChangeManager
null if there are no such Changes
public java.util.Iterator<java.lang.String> getComponentIdsWithChanges(javax.faces.context.FacesContext facesContext)
getComponentIdsWithChanges
in class ChangeManager
protected void persistDocumentChanges(javax.faces.context.FacesContext facesContext)
protected boolean supportsDocumentPersistence(javax.faces.context.FacesContext context)
getDocument
in order to enable Document-based Persistence.
context
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |