|
||||||||||
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(FacesContext facesContext,
UIComponent uiComponent,
ComponentChange change)
Add a ComponentChange to this current request for a specified component. |
protected void |
addComponentChangeImpl(FacesContext facesContext,
UIComponent targetComponent,
ComponentChange componentChange)
Adds a ComponentChange and registers against the supplied component. |
void |
applyComponentChangesForCurrentView(FacesContext facesContext)
Applies all the ComponentChanges added so far for the current view. |
void |
applyComponentChangesForSubtree(FacesContext facesContext,
NamingContainer root)
Applies the ComponentChanges added so far for components underneath the specified NamingContainer. |
protected Document |
getDocument(FacesContext context)
We don't support DocumentChange persistence |
protected void |
persistDocumentChanges(FacesContext facesContext)
|
protected boolean |
supportsDocumentPersistence(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(FacesContext facesContext)
applyComponentChangesForCurrentView
in class ChangeManager
facesContext
- The FacesContext instance for the current request.public void applyComponentChangesForSubtree(FacesContext facesContext, NamingContainer root)
applyComponentChangesForSubtree
in class ChangeManager
facesContext
- The FacesContext instance for the current request.root
- The NamingContainer that contains the component subtree
to which ComponentChanges should be applied. If null, all changes are
applied.protected void addComponentChangeImpl(FacesContext facesContext, 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 Document getDocument(FacesContext context)
public void addComponentChange(FacesContext facesContext, UIComponent uiComponent, ComponentChange change)
addComponentChange
in class ChangeManager
protected void persistDocumentChanges(FacesContext facesContext)
protected boolean supportsDocumentPersistence(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 |