|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This service allows the definition of dialogs. These definitions may be used when creating dialog instances.
Note: DialogDefinitionService is a core service and will
therefore be available always for all dialogs in the dialog hierarchy.
The Service will be provided at the session node (the root dialog of a session).
| Field Summary | |
static java.lang.String |
ROOT_DIALOG
Dialog ID for the root dialog (normaly without visible representation). |
| Method Summary | |
void |
addDialogDefinition(java.lang.String dialogId,
DialogConfiguration dialogConfiguration,
DialogProperties dialogProperties)
Adds a dialog defintion to this manager. |
void |
addDialogDefinitionsWithReader(DialogDefinitionReader dialogDefinitionReader)
Adds dialog definitions using the DialogDefinitionReader to this DialogHierarchyService.
|
DialogConfiguration |
getDialogConfiguration(java.lang.String dialogId)
Returns the dialog configuration for the given dialog id |
DialogProperties |
getDialogProperties(java.lang.String dialogId)
Returns the dialog properties for the given dialog id |
java.lang.String |
getRootDialogId()
Returns the dialog id for the root dialog. |
boolean |
hasDialogDefinition(java.lang.String dialogId)
Returns true if a dialog was defined for the given dialog id. |
void |
setRootDialogId(java.lang.String dialogId)
Sets the dialog id for the root dialog. |
| Field Detail |
public static final java.lang.String ROOT_DIALOG
| Method Detail |
public void addDialogDefinition(java.lang.String dialogId,
DialogConfiguration dialogConfiguration,
DialogProperties dialogProperties)
dialogId - the dialog id for the dialog to define; must be not null
and unique under the dialog definitions already madedialogConfiguration - a DialogConfiguration, that configures a newly
created dialog instance (not null)dialogProperties - a DialogProperties, that delivers static properties
for the dialog defined (not null)
java.lang.IllegalArgumentException - if one of the arguments is null or
a dialog is already defined for the id given
public void addDialogDefinitionsWithReader(DialogDefinitionReader dialogDefinitionReader)
throws java.io.IOException
DialogDefinitionReader to this DialogHierarchyService.
dialogDefinitionReader - the DialogDefinitionReader to be used for reading the dialog
definitions
java.io.IOException - if an exception occurs while reading the definitions.public boolean hasDialogDefinition(java.lang.String dialogId)
true if a dialog was defined for the given dialog id.
dialogId - the dialog id
true iff a dialog definition is availablepublic DialogConfiguration getDialogConfiguration(java.lang.String dialogId)
dialogId - the dialog id
java.lang.IllegalArgumentException - if there is no configuration for the given dialog idpublic DialogProperties getDialogProperties(java.lang.String dialogId)
dialogId - the dialog id
java.lang.IllegalArgumentException - if there is no properties for the given dialog idpublic java.lang.String getRootDialogId()
ROOT_DIALOG.
public void setRootDialogId(java.lang.String dialogId)
dialogId - the dialog id for the root dialog to set
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||