Package org.spincast.core.flash
Interface FlashMessagesHolder
- All Known Implementing Classes:
FlashMessagesHolderDefault
public interface FlashMessagesHolder
Currently used to save the Flash Messages between the time
a page sets one, and the time the next page displays it.
-
Method Summary
Modifier and TypeMethodDescriptiongetFlashMessage
(String id, boolean removeIt) Gets a Flash Message from its id.saveFlashMessage
(FlashMessage flashMessage) Saves a Flash Message.
-
Method Details
-
saveFlashMessage
Saves a Flash Message.- Returns:
- a generated and unique ID for the Flash Message.
-
getFlashMessage
Gets a Flash Message from its id.- Parameters:
removeIt
- iftrue
, the Flash Message is removed from the holder.
-