org.jboss.seam.security.external.dialogues
Class DialogueManagerBean

java.lang.Object
  extended by org.jboss.seam.security.external.dialogues.DialogueManagerBean
All Implemented Interfaces:
DialogueManager

public class DialogueManagerBean
extends Object
implements DialogueManager

Author:
Marcel Kolsteren

Constructor Summary
DialogueManagerBean()
           
 
Method Summary
 void attachDialogue(String requestId)
          Attaches the current thread to the given dialogue.
 void beginDialogue()
          Starts a new dialogue.
 void detachDialogue()
          Detaches the current thread from the dialogue.
 void endDialogue()
          Ends the current dialogue.
 boolean isAttached()
          Checks whether the current thread is attached to a dialogue (i.e.
 boolean isExistingDialogue(String dialogueId)
          Checks whether a dialogue exists with the given id.
 void servletDestroyed(ServletContext context)
           
 void servletInitialized(ServletContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialogueManagerBean

public DialogueManagerBean()
Method Detail

servletInitialized

public void servletInitialized(@Observes@Initialized
                               ServletContext context)

servletDestroyed

public void servletDestroyed(@Observes@Destroyed
                             ServletContext context)

beginDialogue

public void beginDialogue()
Description copied from interface: DialogueManager
Starts a new dialogue. Results in a RuntimeException if DialogueManager.isAttached() is true.

Specified by:
beginDialogue in interface DialogueManager

endDialogue

public void endDialogue()
Description copied from interface: DialogueManager
Ends the current dialogue. Results in a RuntimeException if DialogueManager.isAttached() is false.

Specified by:
endDialogue in interface DialogueManager

attachDialogue

public void attachDialogue(String requestId)
Description copied from interface: DialogueManager
Attaches the current thread to the given dialogue. Results in a RuntimeException if the thread is already attached to a dialogue, i.e. if DialogueManager.isAttached() is true.

Specified by:
attachDialogue in interface DialogueManager

detachDialogue

public void detachDialogue()
Description copied from interface: DialogueManager
Detaches the current thread from the dialogue. Results in a RuntimeException if DialogueManager.isAttached() is false.

Specified by:
detachDialogue in interface DialogueManager

isExistingDialogue

public boolean isExistingDialogue(String dialogueId)
Description copied from interface: DialogueManager
Checks whether a dialogue exists with the given id.

Specified by:
isExistingDialogue in interface DialogueManager
Parameters:
dialogueId - the id
Returns:
true if a dialogue with that id exists

isAttached

public boolean isAttached()
Description copied from interface: DialogueManager
Checks whether the current thread is attached to a dialogue (i.e. whether a dialogue is currently active)

Specified by:
isAttached in interface DialogueManager
Returns:
true if the current thread is attached to a dialogue


Copyright © 2011 Seam Framework. All Rights Reserved.