com.sdm.quasar.client.core.dialog.services
Interface DialogPropertyService

All Superinterfaces:
Service
All Known Implementing Classes:
DefaultDialogPropertyService

public interface DialogPropertyService
extends Service

Service that provides access to information that has been defined in a dialog's configuration record.

Note: DialogPropertyService 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).

Author:
Carsten Lucke , Thomas Wolf

Method Summary
 java.lang.Object getProperty(java.lang.String dialogId, java.lang.Class propertyKeyClass)
          Returns the Object implementing a given interface.
 java.lang.Object getProperty(java.lang.String dialogId, java.lang.String propertyKey)
          Returns the information that was put into the configuration for the dialog with the given dialogId identified by the key with the name propertyKey.
 

Method Detail

getProperty

public java.lang.Object getProperty(java.lang.String dialogId,
                                    java.lang.String propertyKey)
Returns the information that was put into the configuration for the dialog with the given dialogId identified by the key with the name propertyKey.

Parameters:
dialogId - the dialog's id
propertyKey - the name of the property entry
Returns:
returns the property value or null if none was found
Throws:
java.lang.IllegalArgumentException - if the dialog id is not valid or null or if the property key is null

getProperty

public java.lang.Object getProperty(java.lang.String dialogId,
                                    java.lang.Class propertyKeyClass)
Returns the Object implementing a given interface. This can be used as a global registry for implementations that are not Services.

Returns:
the registered implementation corresponding to the interface or null if there is no implementation registered for that interface