Class PersistentFieldManagerImpl
- java.lang.Object
-
- org.apache.tapestry5.internal.services.PersistentFieldManagerImpl
-
- All Implemented Interfaces:
PersistentFieldManager
public class PersistentFieldManagerImpl extends java.lang.Object implements PersistentFieldManager
-
-
Constructor Summary
Constructors Constructor Description PersistentFieldManagerImpl(MetaDataLocator locator, java.util.Map<java.lang.String,PersistentFieldStrategy> strategies)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddiscardChanges(java.lang.String pageName)Discards all changes for the indicated page.voiddiscardChanges(java.lang.String pageName, java.lang.String strategyName)Discards changes on the indicated page for a specific strategy only.PersistentFieldBundlegatherChanges(java.lang.String pageName)Locates all persistently stored changes to all properties within the page (for the current session and request) and gathers them together into a bundle.voidpostChange(java.lang.String pageName, ComponentResources resources, java.lang.String fieldName, java.lang.Object newValue)Posts a change of a persistent property.
-
-
-
Constructor Detail
-
PersistentFieldManagerImpl
public PersistentFieldManagerImpl(MetaDataLocator locator, java.util.Map<java.lang.String,PersistentFieldStrategy> strategies)
-
-
Method Detail
-
gatherChanges
public PersistentFieldBundle gatherChanges(java.lang.String pageName)
Description copied from interface:PersistentFieldManagerLocates all persistently stored changes to all properties within the page (for the current session and request) and gathers them together into a bundle.- Specified by:
gatherChangesin interfacePersistentFieldManager- Parameters:
pageName- the logical name of the page to gather changes for- Returns:
- a bundle identifying all such changes
-
discardChanges
public void discardChanges(java.lang.String pageName)
Description copied from interface:PersistentFieldManagerDiscards all changes for the indicated page. This will not affect pages that have already been attached to this request, but will affect subsequent page attachments in this and later requests.- Specified by:
discardChangesin interfacePersistentFieldManager- Parameters:
pageName- logical name of page whose persistent field data is to be discarded
-
discardChanges
public void discardChanges(java.lang.String pageName, java.lang.String strategyName)
Description copied from interface:PersistentFieldManagerDiscards changes on the indicated page for a specific strategy only. This will not affect pages that have already been attached to this request, but will affect subsequent page attachments in this and later requests.- Specified by:
discardChangesin interfacePersistentFieldManager- Parameters:
pageName- logical name of page whose persistent field data is to be discardedstrategyName- name of the strategy of which field data is to be discarded
-
postChange
public void postChange(java.lang.String pageName, ComponentResources resources, java.lang.String fieldName, java.lang.Object newValue)
Description copied from interface:PersistentFieldManagerPosts a change of a persistent property.- Specified by:
postChangein interfacePersistentFieldManager- Parameters:
pageName- the logical name of the page containing the componentresources- the resources for the component or mixin (used to determine the persistence strategy)fieldName- the name of the field whose persistent value has changednewValue- the new value for the field, possibly null
-
-