com.genesyslab.omsdk.mil.applicationblocks.mediaserver.ucs
Class HandlingInteractions

java.lang.Object
  extended bycom.genesyslab.omsdk.mil.applicationblocks.mediaserver.ucs.HandlingInteractions

public class HandlingInteractions
extends java.lang.Object

Shows how to handle interactions in Universal Contact Server.


Constructor Summary
HandlingInteractions()
           
 
Method Summary
 void deleteInteraction(java.lang.String ID)
          Deletes an interaction.
 java.util.Collection findPendingInteractions(MILUCSInteractionStatus status, java.lang.String type, java.lang.String mediaType)
          Finds pending interactions using interaction status type and media type.
 MILInteraction getInteractions(java.lang.String ixnId)
           
 void saveInteraction(java.lang.String type, java.lang.String subtype, java.lang.String mediatype, java.lang.String externalID, java.lang.String ID)
          Creates and saves interactions.
 void stopInteraction(java.lang.String ID, java.lang.String reason)
          Stops the interaction specified by the provided interaction ID.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandlingInteractions

public HandlingInteractions()
Method Detail

saveInteraction

public void saveInteraction(java.lang.String type,
                            java.lang.String subtype,
                            java.lang.String mediatype,
                            java.lang.String externalID,
                            java.lang.String ID)
                     throws MILRequestFailedException
Creates and saves interactions.

Parameters:
type -
subtype -
mediatype -
externalID -
ID -
Throws:
MILRequestFailedException

deleteInteraction

public void deleteInteraction(java.lang.String ID)
                       throws MILRequestFailedException
Deletes an interaction. Specify the ID of the interaction you need to delete and call the appropriate method.

Parameters:
ID -
Throws:
MILRequestFailedException

stopInteraction

public void stopInteraction(java.lang.String ID,
                            java.lang.String reason)
                     throws MILRequestFailedException
Stops the interaction specified by the provided interaction ID. A reason for stopping the interaction must also be provided.

Parameters:
ID -
reason -
Throws:
MILRequestFailedException

findPendingInteractions

public java.util.Collection findPendingInteractions(MILUCSInteractionStatus status,
                                                    java.lang.String type,
                                                    java.lang.String mediaType)
                                             throws MILRequestFailedException
Finds pending interactions using interaction status type and media type.

Parameters:
status - status of interaction. Can not be null.
type - type of interaction. Can not be null.
mediaType - media type of interaction. Can not be null.
Throws:
MILRequestFailedException

getInteractions

public MILInteraction getInteractions(java.lang.String ixnId)
                               throws MILRequestFailedException
Throws:
MILRequestFailedException