Constructor and Description |
---|
ConversationManagerPlugin(com.speechstorm.fish.runtime.VuiContext vuiContext_p,
com.speechstorm.fish.runtime.clidata.conversationmanager.ConversationManagerCLIData cliData_p) |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
com.speechstorm.fish.runtime.clidata.conversationmanager.Service |
findActiveService(java.lang.Integer iServiceTypeID_p)
Attempts to find an active service with the given service type ID.
|
com.speechstorm.fish.runtime.clidata.conversationmanager.Service |
findActiveService(java.lang.String sServiceTypeID_p)
Attempts to find an active service with the given service type ID.
|
com.speechstorm.fish.runtime.clidata.conversationmanager.State |
findActiveState(java.lang.Integer iServiceTypeID_p,
java.lang.Integer iStateTypeID_p)
Attempts to find an active state with the given state type ID.
|
com.speechstorm.fish.runtime.clidata.conversationmanager.State |
findActiveState(java.lang.String sServiceTypeID_p,
java.lang.String sStateTypeID_p)
Attempts to find an active state with the given state type ID.
|
com.speechstorm.fish.runtime.clidata.conversationmanager.Task |
findActiveTask(java.lang.Integer iServiceTypeID_p,
java.lang.Integer iStateTypeID_p,
java.lang.Integer iTaskTypeID_p)
Attempts to find an active task with the given task type ID.
|
com.speechstorm.fish.runtime.clidata.conversationmanager.Task |
findActiveTask(java.lang.String sServiceTypeID_p,
java.lang.String sStateTypeID_p,
java.lang.String sTaskTypeID_p)
Attempts to find an active task with the given task type ID.
|
java.lang.String |
getField(java.lang.String sFieldName_p)
Returns the value of the given field name, either from the 'core' set of
fields or, if the field name is in the form "xxx.yyy" then it retrieves
the "yyy" field from the "xxx" extension.
|
java.util.Collection<java.lang.String> |
getFieldNames()
Returns a list of all field names both in the 'core' extension and any
other extensions
|
java.lang.String |
getName() |
boolean |
lookupAndMergeProfiles(java.util.Map<java.lang.String,java.lang.String> searchParameters_p)
Looks for a customer profile based on the given search criteria.
|
boolean |
lookupAndMergeProfiles(java.util.Map<java.lang.String,java.lang.String> searchParameters_p,
boolean bMigratePhoneNumber_p,
boolean bMergeFields_p,
boolean bMergeServices_p)
Looks for a customer profile based on the given search criteria.
|
void |
save()
Persists this object to the database, but only if it actually contains
changes.
|
void |
setField(java.lang.String sFieldName_p,
java.lang.String sValue_p)
Sets the value of the given field, either in the 'core' set of fields or,
if the field name is in the form "xxx.yyy" then it sets the "yyy" field
in the "xxx" extension.
|
com.speechstorm.fish.runtime.clidata.conversationmanager.Service |
startService(java.lang.Integer iServiceTypeID_p)
Creates a new service with the given service type, using the default
media type, and associates it with this customer profile.
|
com.speechstorm.fish.runtime.clidata.conversationmanager.Service |
startService(java.lang.Integer iServiceTypeID_p,
java.lang.Integer iMediaTypeID_p)
Creates a new service with the given service type and media type, and
associates it with this customer profile.
|
com.speechstorm.fish.runtime.clidata.conversationmanager.Service |
startService(java.lang.String sServiceTypeID_p)
Creates a new service with the given service type, using the default
media type, and associates it with this customer profile.
|
com.speechstorm.fish.runtime.clidata.conversationmanager.Service |
startService(java.lang.String sServiceTypeID_p,
java.lang.String sMediaTypeID_p)
Creates a new service with the given service type and media type, and
associates it with this customer profile.
|
com.speechstorm.fish.runtime.clidata.conversationmanager.Task |
startTask(java.lang.Integer iServiceTypeID_p,
java.lang.Integer iStateTypeID_p,
java.lang.Integer iTaskTypeID_p) |
com.speechstorm.fish.runtime.clidata.conversationmanager.Task |
startTask(java.lang.Integer iServiceTypeID_p,
java.lang.Integer iStateTypeID_p,
java.lang.Integer iTaskTypeID_p,
java.lang.Integer iMediaTypeID_p) |
com.speechstorm.fish.runtime.clidata.conversationmanager.Task |
startTask(java.lang.String sServiceTypeID_p,
java.lang.String sStateTypeID_p,
java.lang.String sTaskTypeID_p) |
com.speechstorm.fish.runtime.clidata.conversationmanager.Task |
startTask(java.lang.String sServiceTypeID_p,
java.lang.String sStateTypeID_p,
java.lang.String sTaskTypeID_p,
java.lang.String sMediaTypeID_p) |
public ConversationManagerPlugin(com.speechstorm.fish.runtime.VuiContext vuiContext_p, com.speechstorm.fish.runtime.clidata.conversationmanager.ConversationManagerCLIData cliData_p)
public java.lang.String getName()
public void save() throws java.lang.Exception
java.lang.Exception
public void delete() throws java.lang.Exception
java.lang.Exception
public java.util.Collection<java.lang.String> getFieldNames()
public java.lang.String getField(java.lang.String sFieldName_p)
public void setField(java.lang.String sFieldName_p, java.lang.String sValue_p)
public com.speechstorm.fish.runtime.clidata.conversationmanager.Service startService(java.lang.String sServiceTypeID_p) throws java.lang.Exception
java.lang.Exception
public com.speechstorm.fish.runtime.clidata.conversationmanager.Service startService(java.lang.String sServiceTypeID_p, java.lang.String sMediaTypeID_p) throws java.lang.Exception
java.lang.Exception
public com.speechstorm.fish.runtime.clidata.conversationmanager.Service findActiveService(java.lang.String sServiceTypeID_p)
public com.speechstorm.fish.runtime.clidata.conversationmanager.State findActiveState(java.lang.String sServiceTypeID_p, java.lang.String sStateTypeID_p)
public com.speechstorm.fish.runtime.clidata.conversationmanager.Task findActiveTask(java.lang.String sServiceTypeID_p, java.lang.String sStateTypeID_p, java.lang.String sTaskTypeID_p)
public com.speechstorm.fish.runtime.clidata.conversationmanager.Task startTask(java.lang.String sServiceTypeID_p, java.lang.String sStateTypeID_p, java.lang.String sTaskTypeID_p) throws java.lang.Exception
java.lang.Exception
public com.speechstorm.fish.runtime.clidata.conversationmanager.Task startTask(java.lang.String sServiceTypeID_p, java.lang.String sStateTypeID_p, java.lang.String sTaskTypeID_p, java.lang.String sMediaTypeID_p) throws java.lang.Exception
java.lang.Exception
public com.speechstorm.fish.runtime.clidata.conversationmanager.Service startService(java.lang.Integer iServiceTypeID_p) throws java.lang.Exception
java.lang.Exception
public com.speechstorm.fish.runtime.clidata.conversationmanager.Service startService(java.lang.Integer iServiceTypeID_p, java.lang.Integer iMediaTypeID_p) throws java.lang.Exception
java.lang.Exception
public com.speechstorm.fish.runtime.clidata.conversationmanager.Service findActiveService(java.lang.Integer iServiceTypeID_p)
public com.speechstorm.fish.runtime.clidata.conversationmanager.State findActiveState(java.lang.Integer iServiceTypeID_p, java.lang.Integer iStateTypeID_p)
public com.speechstorm.fish.runtime.clidata.conversationmanager.Task findActiveTask(java.lang.Integer iServiceTypeID_p, java.lang.Integer iStateTypeID_p, java.lang.Integer iTaskTypeID_p)
public com.speechstorm.fish.runtime.clidata.conversationmanager.Task startTask(java.lang.Integer iServiceTypeID_p, java.lang.Integer iStateTypeID_p, java.lang.Integer iTaskTypeID_p) throws java.lang.Exception
java.lang.Exception
public com.speechstorm.fish.runtime.clidata.conversationmanager.Task startTask(java.lang.Integer iServiceTypeID_p, java.lang.Integer iStateTypeID_p, java.lang.Integer iTaskTypeID_p, java.lang.Integer iMediaTypeID_p) throws java.lang.Exception
java.lang.Exception
public boolean lookupAndMergeProfiles(java.util.Map<java.lang.String,java.lang.String> searchParameters_p) throws java.lang.Exception
lookupAndMergeProfiles(searchParameters_p, true, true, true)
java.lang.Exception
lookupAndMergeProfiles(Map
public boolean lookupAndMergeProfiles(java.util.Map<java.lang.String,java.lang.String> searchParameters_p, boolean bMigratePhoneNumber_p, boolean bMergeFields_p, boolean bMergeServices_p) throws java.lang.Exception
searchParameters_p
- One or more key value pairs to search on.bMigratePhoneNumber_p
- If true and a match is found, it will remove
the CLI from the current profile's PhoneNumber field, and add
it to the new profile's PhoneNumber field.bMergeFields_p
- If true and a match is found, then any CLIData
fields that were set while we didn't have a customer ID (i.e.
while we were using a contact ID instead) will be
automatically set on the new profile.bMergeServices_p
- If true and a match is found, then any Services
that were created while we didn't have a customer ID (i.e.
while we were using a contact ID instead) will be
automatically associated with the new profile.true
if a match was found (and merged)java.lang.Exception