|
||||||||||
| 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. |
protected void |
addComponentChangeImpl(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent targetComponent,
ComponentChange componentChange)
Adds a ComponentChange and registers against the supplied component. |
void |
applyComponentChangesForCurrentView(javax.faces.context.FacesContext facesContext)
Applies all the ComponentChanges added so far for the current view. |
protected org.w3c.dom.Document |
getDocument(javax.faces.context.FacesContext context)
We don't support DocumentChange 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 |
|---|
public void applyComponentChangesForCurrentView(javax.faces.context.FacesContext facesContext)
applyComponentChangesForCurrentView in class ChangeManagerfacesContext - The FacesContext instance for the current request.
protected void addComponentChangeImpl(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent targetComponent,
ComponentChange componentChange)
facesContext - The FacesContext instance for the current request.targetComponent - The target component against which this change needs
to be registered and applied later on.componentChange - The ComponentChange to add.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 ChangeManagerprotected 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 | |||||||||