* Invalidates any conversation with aspect {@link ConversationFlashLifetimeAspect}
* which has not been accessed during a http request
*/
protected void invalidateFlashConversations(String viewId)
{
FlashScopeManager flashManager = FlashScopeManager.getInstance();
if (flashManager.isIgnoreRequest())
{
return;
}
if (flashManager.getFlashScopeManagerConfiguration() != null)
{
Set ignoredViewIds = flashManager.getFlashScopeManagerConfiguration().getIgnoreViewIds();
if (ignoredViewIds != null && ignoredViewIds.contains(viewId))
{
// The flash configuration has explicitly stated that no conversations should be
// terminated when processing this specific view, so just return.
//