|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.ail.applicationblocks.openmedia.simplehandling.SimpleOpenMediaHandler
SimpleOpenMediaHandler class handles Open Media interaction. This class handles the common methods of an Open Media interaction.
Nested Class Summary | |
class |
SimpleOpenMediaHandler.InteractionListenerAdapter
Implements InteractionListener. |
Constructor Summary | |
SimpleOpenMediaHandler()
Creates a new instance of SimpleOpenMediaManager |
|
SimpleOpenMediaHandler(com.genesyslab.ail.Agent anAgent)
Creates a new instance of SimpleOpenMediaManager |
|
SimpleOpenMediaHandler(AgentHandler agentHandler)
Creates a new instance of SimpleOpenMediaManager |
Method Summary | |
void |
accept(com.genesyslab.ail.Interaction interaction)
Accepts to process this Interaction . |
com.genesyslab.ail.Interaction |
createOpenMediaInteraction(java.lang.String mediaType,
java.lang.String interactionType,
java.lang.String interactionSubType,
java.lang.String id,
java.lang.String queue,
java.lang.String subject,
com.genesyslab.ail.Interaction parent,
java.util.Map userData)
Creates an Open Media interaction. |
void |
decline(com.genesyslab.ail.Interaction interaction)
Declines this Interaction . |
void |
delete(com.genesyslab.ail.Interaction interaction)
Deletes this interaction. |
java.lang.String |
getOpenInteractionSubType(com.genesyslab.ail.Interaction interaction)
Get the interaction subtype of the interaction. |
java.lang.String |
getOpenInteractionType(com.genesyslab.ail.Interaction interaction)
Get the interaction type of the interaction. |
java.lang.String |
getOpenMediaType(com.genesyslab.ail.Interaction interaction)
Get the Media type of the interaction. |
void |
init(com.genesyslab.ail.Agent anAgent)
Another way to initialize SimpleOpenMediaManager |
void |
markDone(com.genesyslab.ail.Interaction interaction)
Marks this Interaction as done. |
void |
placeInQueue(com.genesyslab.ail.Interaction interaction,
java.lang.String queue)
Places this interaction into this queue. |
void |
placeInWorkbin(com.genesyslab.ail.Interaction interaction,
java.lang.String workbin,
java.lang.String reason,
java.lang.String reason_description)
Places an interaction into the workbin of another agent, another agent group, another place group or another place. |
void |
release(com.genesyslab.ail.Interaction interaction)
Releases this Interaction . |
void |
save(com.genesyslab.ail.Interaction interaction)
Saves this interaction into the Contact Server. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleOpenMediaHandler(AgentHandler agentHandler)
public SimpleOpenMediaHandler(com.genesyslab.ail.Agent anAgent)
public SimpleOpenMediaHandler()
Method Detail |
public void init(com.genesyslab.ail.Agent anAgent) throws com.genesyslab.ail.exception.RequestFailedException
com.genesyslab.ail.exception.RequestFailedException
public com.genesyslab.ail.Interaction createOpenMediaInteraction(java.lang.String mediaType, java.lang.String interactionType, java.lang.String interactionSubType, java.lang.String id, java.lang.String queue, java.lang.String subject, com.genesyslab.ail.Interaction parent, java.util.Map userData) throws com.genesyslab.ail.exception.RequestFailedException
mediaType
- an Open Media type,interactionType
- an interaction Type (Inbound, Outbound, Internal),interactionSubType
- an interaction subtype (New ...),id
- an ID for the interaction, could be null,queue
- the queue name of the interaction,subject
- the subject of the interaction,parent
- the parent's interaction,userData
- the customer data or useful additional data. Can be null.
com.genesyslab.ail.exception.RequestFailedException
public void accept(com.genesyslab.ail.Interaction interaction) throws com.genesyslab.ail.exception.RequestFailedException
Interaction
.
This method must be used to accept a call that is in 'RINGING' status.
com.genesyslab.ail.exception.RequestFailedException
public void decline(com.genesyslab.ail.Interaction interaction) throws com.genesyslab.ail.exception.RequestFailedException
Interaction
.
Rejects an Open Media interaction when its status is 'RINGING'.
com.genesyslab.ail.exception.RequestFailedException
public void release(com.genesyslab.ail.Interaction interaction) throws com.genesyslab.ail.exception.RequestFailedException
Interaction
.
com.genesyslab.ail.exception.RequestFailedException
public void markDone(com.genesyslab.ail.Interaction interaction) throws com.genesyslab.ail.exception.RequestFailedException
Interaction
as done.
com.genesyslab.ail.exception.RequestFailedException
public void delete(com.genesyslab.ail.Interaction interaction) throws com.genesyslab.ail.exception.RequestFailedException
NoPlaceException
- if this interaction is not currently handled on a
Place
.
IsServiceException
- if there is a problem with the Interaction Server.
com.genesyslab.ail.exception.RequestFailedException
public java.lang.String getOpenMediaType(com.genesyslab.ail.Interaction interaction) throws com.genesyslab.ail.exception.RequestFailedException
interaction
- the interaction,
com.genesyslab.ail.exception.RequestFailedException
public java.lang.String getOpenInteractionType(com.genesyslab.ail.Interaction interaction) throws com.genesyslab.ail.exception.RequestFailedException
interaction
- the interaction,
com.genesyslab.ail.exception.RequestFailedException
public java.lang.String getOpenInteractionSubType(com.genesyslab.ail.Interaction interaction) throws com.genesyslab.ail.exception.RequestFailedException
interaction
- the interaction,
com.genesyslab.ail.exception.RequestFailedException
public void save(com.genesyslab.ail.Interaction interaction) throws com.genesyslab.ail.exception.RequestFailedException
DatabaseServiceException
- if there is a problem with the Contact Server.
com.genesyslab.ail.exception.RequestFailedException
public void placeInQueue(com.genesyslab.ail.Interaction interaction, java.lang.String queue) throws com.genesyslab.ail.exception.RequestFailedException
interaction
- the OpenMedia interaction,queue
- the identifier of the queue where to place this interaction.
If null
, this interaction will be placed back into the queue
where it originally was.
NoPlaceException
- if this interaction is not currently handled on a
Place
.
IsServiceException
- if there is a problem with the Interaction Server.
com.genesyslab.ail.exception.RequestFailedException
public void placeInWorkbin(com.genesyslab.ail.Interaction interaction, java.lang.String workbin, java.lang.String reason, java.lang.String reason_description) throws com.genesyslab.ail.exception.RequestFailedException
interaction
- the interaction to be put into the workbin.workbin
- the workbin where to put the interaction.
Can be null
; if this value is null, the default behaviour
is Workbin.put(com.genesyslab.ail.InteractionMultimedia)
.reason
- this action's reason.reason_description
- the reason's description.
IsServiceException
- exception thrown if there is a problem with Interaction Server.
com.genesyslab.ail.exception.RequestFailedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |