public class DialogueManagerBean extends Object implements DialogueManager
| Constructor and Description |
|---|
DialogueManagerBean() |
| Modifier and Type | Method and Description |
|---|---|
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(javax.servlet.ServletContext context) |
void |
servletInitialized(javax.servlet.ServletContext context) |
public void servletInitialized(@Observes@Initialized
javax.servlet.ServletContext context)
public void servletDestroyed(@Observes@Destroyed
javax.servlet.ServletContext context)
public void beginDialogue()
DialogueManagerRuntimeException if
DialogueManager.isAttached() is true.beginDialogue in interface DialogueManagerpublic void endDialogue()
DialogueManagerRuntimeException if
DialogueManager.isAttached() is false.endDialogue in interface DialogueManagerpublic void attachDialogue(String requestId)
DialogueManagerRuntimeException if the thread is already attached to a dialogue,
i.e. if DialogueManager.isAttached() is true.attachDialogue in interface DialogueManagerpublic void detachDialogue()
DialogueManagerRuntimeException if DialogueManager.isAttached() is false.detachDialogue in interface DialogueManagerpublic boolean isExistingDialogue(String dialogueId)
DialogueManagerisExistingDialogue in interface DialogueManagerdialogueId - the idpublic boolean isAttached()
DialogueManagerisAttached in interface DialogueManagerCopyright © 2013 Seam Framework. All Rights Reserved.