|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.internal.services.PersistentFieldManagerImpl
public class PersistentFieldManagerImpl
Constructor Summary | |
---|---|
PersistentFieldManagerImpl(MetaDataLocator locator,
Map<String,PersistentFieldStrategy> strategies)
|
Method Summary | |
---|---|
void |
discardChanges(String pageName)
Discards all changes for the indicated page. |
void |
discardChanges(String pageName,
String strategyName)
Discards changes on the indicated page for a specific strategy only. |
PersistentFieldBundle |
gatherChanges(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(String pageName,
ComponentResources resources,
String fieldName,
Object newValue)
Posts a change of a persistent property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PersistentFieldManagerImpl(MetaDataLocator locator, Map<String,PersistentFieldStrategy> strategies)
Method Detail |
---|
public PersistentFieldBundle gatherChanges(String pageName)
PersistentFieldManager
gatherChanges
in interface PersistentFieldManager
pageName
- the logical name of the page to gather changes for
public void discardChanges(String pageName)
PersistentFieldManager
discardChanges
in interface PersistentFieldManager
pageName
- logical name of page whose persistent field data is to be discardedpublic void discardChanges(String pageName, 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(String pageName, ComponentResources resources, String fieldName, 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |