Examples of ConversationFlashLifetimeAspect


Examples of org.apache.myfaces.orchestra.conversation.ConversationFlashLifetimeAspect

    }

    // conversation lifetime
    if (LIFETIME_FLASH == lifetime)
    {
      ConversationAspect aspect = new ConversationFlashLifetimeAspect(conversation);
      conversation.addAspect(aspect);
    }
  }
View Full Code Here

Examples of org.apache.myfaces.orchestra.conversation.ConversationFlashLifetimeAspect

   */
  protected void notifyAccessConversation(Conversation conversation)
  {
    super.notifyAccessConversation(conversation);

    ConversationFlashLifetimeAspect aspect = (ConversationFlashLifetimeAspect) conversation.getAspect(ConversationFlashLifetimeAspect.class);
    if (aspect != null)
    {
      aspect.markAsAccessed();
    }
  }
View Full Code Here

Examples of org.apache.myfaces.orchestra.conversation.ConversationFlashLifetimeAspect

      Conversation conversation = (Conversation) iterConversations.next();
     
      // This conversation has "flash" scope if it has an attached Aspect
      // of type ConversationFlashLifetimeAspect. All other conversations
      // are not flash-scoped and should be ignored here.
      ConversationFlashLifetimeAspect aspect =
        (ConversationFlashLifetimeAspect)
          conversation.getAspect(ConversationFlashLifetimeAspect.class);

      if (aspect != null && !aspect.isAccessed())
      {
        conversation.invalidate();
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.