|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tapestry.record.SessionPropertyPersistenceStrategy
The most basic PropertyPersistenceStrategy
, which stores
properties in the HttpSession as attributes.
Constructor Summary | |
SessionPropertyPersistenceStrategy()
|
Method Summary | |
void |
discardStoredChanges(java.lang.String pageName,
IRequestCycle cycle)
Invoked to discard any stored changes for the specified page. |
java.util.Collection |
getStoredChanges(java.lang.String pageName,
IRequestCycle cycle)
Returns a collection of IPageChange s. |
void |
setApplicationId(java.lang.String applicationName)
|
void |
setRequest(javax.servlet.http.HttpServletRequest request)
|
void |
store(java.lang.String pageName,
java.lang.String idPath,
java.lang.String propertyName,
java.lang.Object newValue)
Stores the new value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SessionPropertyPersistenceStrategy()
Method Detail |
public void store(java.lang.String pageName, java.lang.String idPath, java.lang.String propertyName, java.lang.Object newValue)
PropertyPersistenceStrategy
store
in interface PropertyPersistenceStrategy
pageName
- the name of the page containing the propertyidPath
- the path to the component with the property (may be null)propertyName
- the name of the property to be persistednewValue
- the new value (which may be null)public java.util.Collection getStoredChanges(java.lang.String pageName, IRequestCycle cycle)
PropertyPersistenceStrategy
IPageChange
s. These represent
prior changes previously stored. The order is not significant. Must not return null. Does not
have to reflect changes made during the current request (this method is typically invoked as
part of rolling back a page to a prior state, before any further changes are possible).
getStoredChanges
in interface PropertyPersistenceStrategy
public void discardStoredChanges(java.lang.String pageName, IRequestCycle cycle)
PropertyPersistenceStrategy
discardStoredChanges
in interface PropertyPersistenceStrategy
public void setApplicationId(java.lang.String applicationName)
public void setRequest(javax.servlet.http.HttpServletRequest request)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |