com.genesyslab.ail
Interface Possible

All Superinterfaces:
IdObject
All Known Subinterfaces:
AbstractDn, AbstractInteraction, CallbackRecord, Dn, DnFunction, DnRoutingPoint, Interaction, InteractionCallbackRequest, InteractionChat, InteractionCoBrowse, InteractionInvitationIn, InteractionInvitationOut, InteractionInvitationParentIn, InteractionMail, InteractionMailIn, InteractionMailOut, InteractionMultimedia, InteractionOpenMedia, InteractionReplyOut, InteractionVoice, InteractionVoiceCallback, InteractionVoiceOutbound, InteractionWebcallback, KwInteractionContext, Media, OutboundCampaignInfo, OutboundRecord, OutboundService, Place, RoutingInteraction

public interface Possible
extends IdObject

This interface defines functions that can determine whether a request is possible or not. Possible means that the current status of the objects make this request possible. Be aware that the status may change at any time, including between the moment you call possible and the moment when you actually do the corresponding request. In a word, the result of an isPossible() method is just for informative purpose.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.genesyslab.ail.IdObject
IdObject.ObjectType
 
Method Summary
 boolean[] arePossible()
          Returns a table of booleans representing the possibility of all the requests on this object.
 boolean isPossible(Enum action)
          Returns true if this request is possible.
 
Methods inherited from interface com.genesyslab.ail.IdObject
getId, getObjectType
 

Method Detail

isPossible

boolean isPossible(Enum action)
Returns true if this request is possible.

Parameters:
action - A constant representing the desired action, found either in Place.Action, in Dn.Action, in Interaction.Action or its subclasses.

arePossible

boolean[] arePossible()
Returns a table of booleans representing the possibility of all the requests on this object. The index of the returned table can be interpreted as an Action (with Action.getAction(int)), and the value represents the result of isPossible(com.genesyslab.ail.Enum) for this action. This method returns in one request all the possibilities of a given object, which may be useful for network transfer reasons.