|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PropertyPersistenceStrategy
Defines how a persistent property is made persistent. The typical implementation is to store the persistent property into the session as a session attribute.
Method Summary | |
---|---|
void |
addParametersForPersistentProperties(ServiceEncoding encoding,
boolean post)
Invoked by a LinkFactory , the
parameters may be modified (added to) to store information related to
persistent properties. |
void |
discardStoredChanges(String pageName)
Invoked to discard any stored changes for the specified page. |
Collection |
getStoredChanges(String pageName)
Returns a collection of PropertyChange s. |
void |
store(String pageName,
String idPath,
String propertyName,
Object newValue)
Stores the new value. |
Method Detail |
---|
void store(String pageName, String idPath, String propertyName, Object newValue)
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)Collection getStoredChanges(String pageName)
PropertyChange
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).
void discardStoredChanges(String pageName)
void addParametersForPersistentProperties(ServiceEncoding encoding, boolean post)
LinkFactory
, the
parameters may be modified (added to) to store information related to
persistent properties. This method is forwarded to all
PropertyPersistenceStrategy
s.
encoding
- Service encoding, which indentifies the URL and the query
parameters from which the
ILink
will be
created.post
- if true, then the link will be used for a post (not a get,
i.e., for a HTML form); this may affect what information is
encoded into the linkPropertyPersistenceStrategySource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |