Cisco Cisco Unified Customer Voice Portal 10.5(1) Release Note

Page of 113
C
HAPTER 
12:
 
S
AY 
I
S
MART 
P
LUGINS
 
 
P
ROGRAMMING 
G
UIDE FOR 
C
ISCO 
U
NIFIED 
CVP
 
VXML
 
S
ERVER 
 
 
 
AND 
C
ISCO 
U
NIFIED 
C
ALL 
S
TUDIO 
R
ELEASE 
7.0(1) 
 
 
 
 
72 
This method throws a 
SayItSmartException
 if the 
SayItSmartDisplay
 object is not 
configured correctly. 
getDisplayInformation()
 is abstract, meaning every Say It Smart plugin must implement this 
method. 
SayItSmartDependency getFormatDependencies() 
As described in the design section, a plugin’s output formats are dependent on the input formats. 
This method defines those relationships. The 
SayItSmartDependency
 object is used to specify 
which output formats listed in the 
getDisplayInformation()
 method apply to which input 
formats. 
The 
SayItSmartDependency
 class is defined generically with the concepts of “parents” and 
“children”. For this method, the parents are input formats and the children are output formats. 
The developer simply uses the 
addParent()
 methods to add a new input format and the output 
formats that depend on it. The 
addChild()
 and 
addChildren()
 methods are used to add 
additional output formats that are dependent on the specified parent. This is done until all input 
formats are listed and all the output formats that depend on it are listed. Remember that the 
names to use here are the real names, the display names are used only by the Builder. All the 
input formats and output formats defined in the 
getDisplayInformation()
 method must be 
mapped here. 
This method throws a 
SayItSmartException
 if the 
SayItSmartDependency
 object is not 
configured correctly. 
getFormatDependencies()
 is abstract, meaning every Say It Smart plugin must implement this 
method. 
SayItSmartDependency getFilesetDependencies() 
This method is identical to the 
getFormatDependencies()
 method except it defines which 
filesets are dependent on which output formats. This method also returns a 
SayItSmartDependency
 object, except this time the “parent” is an output format, and the 
“child” is a fileset. Again, the real names of the output formats and filesets must be used here. 
All the output formats and filesets defined in the 
getDisplayInformation()
 method must be 
mapped here.
  
This method throws a 
SayItSmartException
 if the 
SayItSmartDependency
 object is not 
configured correctly. 
getFilesetDependencies()
 is abstract, meaning every Say It Smart plugin must implement 
this method.