com.genesyslab.ail.applicationblocks.openmedia.complexhandling
Class ComplexOpenMediaHandler

java.lang.Object
  extended bycom.genesyslab.ail.applicationblocks.openmedia.simplehandling.SimpleOpenMediaHandler
      extended bycom.genesyslab.ail.applicationblocks.openmedia.complexhandling.ComplexOpenMediaHandler

public class ComplexOpenMediaHandler
extends SimpleOpenMediaHandler

ComplexOpenMediaHandler class handles Open Media interaction. This class extends the SimpleOpenMediaHandler with some new methods that allow more complex behaviours on this Open Media.


Nested Class Summary
 
Nested classes inherited from class com.genesyslab.ail.applicationblocks.openmedia.simplehandling.SimpleOpenMediaHandler
SimpleOpenMediaHandler.InteractionListenerAdapter
 
Constructor Summary
ComplexOpenMediaHandler()
          Creates a new instance of SimpleOpenMediaManager
ComplexOpenMediaHandler(com.genesyslab.ail.Agent anAgent)
          Creates a new instance of ComplexOpenMediaHandler
ComplexOpenMediaHandler(AgentHandler agentHandler)
          Creates a new instance of ComplexOpenMediaHandler
 
Method Summary
 boolean getCanBeParent(com.genesyslab.ail.InteractionOpenMedia interaction)
          get canBeParent flag.
 java.lang.String getParentID(com.genesyslab.ail.InteractionOpenMedia interaction)
          get parentID.
 java.lang.String getThreadID(com.genesyslab.ail.InteractionOpenMedia interaction)
          get threadID.
 void setCanBeParent(com.genesyslab.ail.InteractionOpenMedia interaction, boolean canBeParent)
          set canBeParent flag.
 void setThreadID(com.genesyslab.ail.InteractionOpenMedia interaction, java.lang.String threadID)
          set threadID.
 void stopProcessingIS(com.genesyslab.ail.InteractionOpenMedia interaction, com.genesyslab.ail.InteractionMultimedia.StopProcessingReason reason)
          Stop processing an Open Media interaction in Interaction Server.
 void stopProcessingUCS(com.genesyslab.ail.InteractionOpenMedia interaction, boolean deleteInteraction)
          Stop processing an Open Media interaction in Contact Server.
 
Methods inherited from class com.genesyslab.ail.applicationblocks.openmedia.simplehandling.SimpleOpenMediaHandler
accept, createOpenMediaInteraction, decline, delete, getOpenInteractionSubType, getOpenInteractionType, getOpenMediaType, init, markDone, placeInQueue, placeInWorkbin, release, save
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComplexOpenMediaHandler

public ComplexOpenMediaHandler(AgentHandler agentHandler)
Creates a new instance of ComplexOpenMediaHandler


ComplexOpenMediaHandler

public ComplexOpenMediaHandler(com.genesyslab.ail.Agent anAgent)
Creates a new instance of ComplexOpenMediaHandler


ComplexOpenMediaHandler

public ComplexOpenMediaHandler()
Creates a new instance of SimpleOpenMediaManager

Method Detail

stopProcessingUCS

public void stopProcessingUCS(com.genesyslab.ail.InteractionOpenMedia interaction,
                              boolean deleteInteraction)
                       throws com.genesyslab.ail.exception.RequestFailedException
Stop processing an Open Media interaction in Contact Server.

Throws:
com.genesyslab.ail.exception.RequestFailedException

stopProcessingIS

public void stopProcessingIS(com.genesyslab.ail.InteractionOpenMedia interaction,
                             com.genesyslab.ail.InteractionMultimedia.StopProcessingReason reason)
                      throws com.genesyslab.ail.exception.RequestFailedException
Stop processing an Open Media interaction in Interaction Server.

Throws:
com.genesyslab.ail.exception.RequestFailedException

getParentID

public java.lang.String getParentID(com.genesyslab.ail.InteractionOpenMedia interaction)
                             throws com.genesyslab.ail.exception.RequestFailedException
get parentID.

Throws:
com.genesyslab.ail.exception.RequestFailedException

getThreadID

public java.lang.String getThreadID(com.genesyslab.ail.InteractionOpenMedia interaction)
                             throws com.genesyslab.ail.exception.RequestFailedException
get threadID.

Throws:
com.genesyslab.ail.exception.RequestFailedException

setThreadID

public void setThreadID(com.genesyslab.ail.InteractionOpenMedia interaction,
                        java.lang.String threadID)
                 throws com.genesyslab.ail.exception.RequestFailedException
set threadID. Call SimpleOpenMediaHandler.save(com.genesyslab.ail.Interaction) to apply this modification.

Throws:
com.genesyslab.ail.exception.RequestFailedException

getCanBeParent

public boolean getCanBeParent(com.genesyslab.ail.InteractionOpenMedia interaction)
                       throws com.genesyslab.ail.exception.RequestFailedException
get canBeParent flag.

Throws:
com.genesyslab.ail.exception.RequestFailedException

setCanBeParent

public void setCanBeParent(com.genesyslab.ail.InteractionOpenMedia interaction,
                           boolean canBeParent)
                    throws com.genesyslab.ail.exception.RequestFailedException
set canBeParent flag. Call SimpleOpenMediaHandler.save(com.genesyslab.ail.Interaction) to apply this modification.

Throws:
com.genesyslab.ail.exception.RequestFailedException