public class PersistentFieldManagerImpl extends java.lang.Object implements PersistentFieldManager
Constructor and Description |
---|
PersistentFieldManagerImpl(MetaDataLocator locator,
java.util.Map<java.lang.String,PersistentFieldStrategy> strategies) |
Modifier and Type | Method and Description |
---|---|
void |
discardChanges(java.lang.String pageName)
Discards all changes for the indicated page.
|
void |
discardChanges(java.lang.String pageName,
java.lang.String strategyName)
Discards changes on the indicated page for a specific strategy only.
|
PersistentFieldBundle |
gatherChanges(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.
|
void |
postChange(java.lang.String pageName,
ComponentResources resources,
java.lang.String fieldName,
java.lang.Object newValue)
Posts a change of a persistent property.
|
public PersistentFieldManagerImpl(MetaDataLocator locator, java.util.Map<java.lang.String,PersistentFieldStrategy> strategies)
public PersistentFieldBundle gatherChanges(java.lang.String pageName)
PersistentFieldManager
gatherChanges
in interface PersistentFieldManager
pageName
- the logical name of the page to gather changes forpublic void discardChanges(java.lang.String pageName)
PersistentFieldManager
discardChanges
in interface PersistentFieldManager
pageName
- logical name of page whose persistent field data is to be discardedpublic void discardChanges(java.lang.String pageName, java.lang.String strategyName)
PersistentFieldManager
discardChanges
in interface PersistentFieldManager
pageName
- logical name of page whose persistent field data is to be discardedstrategyName
- name of the strategy of which field data is to be discardedpublic void postChange(java.lang.String pageName, ComponentResources resources, java.lang.String fieldName, java.lang.Object newValue)
PersistentFieldManager
postChange
in interface PersistentFieldManager
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${project.version} - Copyright © 2003-2015 The Apache Software Foundation.