Package org.apache.tapestry5.alerts
Class AlertStorage
- java.lang.Object
- 
- org.apache.tapestry5.commons.internal.util.LockSupport
- 
- org.apache.tapestry5.alerts.AlertStorage
 
 
- 
- All Implemented Interfaces:
- Serializable,- OptimizedSessionPersistedObject
 
 public class AlertStorage extends LockSupport implements Serializable, OptimizedSessionPersistedObject A stateless session object used to store Alerts between requests.- Since:
- 5.3
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description AlertStorage()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Alert alert)booleancheckAndResetDirtyMarker()voiddismiss(long alertId)Dismisses a single Alert, if present.voiddismissAll()Dismisses all Alerts.voiddismissNonPersistent()Dismisses non-persistent Alerts; this is useful after rendering theAlertscomponent.List<Alert>getAlerts()Returns all stored alerts.- 
Methods inherited from class org.apache.tapestry5.commons.internal.util.LockSupportacquireReadLock, downgradeWriteLockToReadLock, releaseReadLock, releaseWriteLock, takeWriteLock, upgradeReadLockToWriteLock
 
- 
 
- 
- 
- 
Constructor Detail- 
AlertStoragepublic AlertStorage() 
 
- 
 - 
Method Detail- 
checkAndResetDirtyMarkerpublic boolean checkAndResetDirtyMarker() - Specified by:
- checkAndResetDirtyMarkerin interface- OptimizedSessionPersistedObject
- Returns:
- true if the object has in-memory changes since the last time this method was called.
 
 - 
dismissAllpublic void dismissAll() Dismisses all Alerts.
 - 
dismissNonPersistentpublic void dismissNonPersistent() Dismisses non-persistent Alerts; this is useful after rendering theAlertscomponent.
 - 
dismisspublic void dismiss(long alertId) Dismisses a single Alert, if present.
 
- 
 
-