|
Oracle Communications Converged Application Server Java API Reference 5.1 E36938-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Interaction
A communication where more than one Participant interact with each other. Conversation Conference etc are typical Communications that are Interactions.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.oracle.sft.api.Communication |
---|
Communication.State |
Method Summary | ||
---|---|---|
|
addParticipant(Class<P> type, String name) Add a participant to the interaction. |
|
|
addParticipant(Class<P> type, String name, javax.media.mscontrol.join.Joinable j) Add a participant that can be added to the interaction with a specific Joinable. |
|
void |
addParticipant(Participant p) Add a participant to the communication. |
|
void |
addParticipant(String name) Add a UserParticipant to the interaction. |
|
|
getParticipant(Class<P> type, String name) Retrieve a Participant from the interaction. |
|
Participant |
getParticipant(String name) Retrieve a Participant from the interaction. |
|
void |
removeParticipant(Participant p) Remove a participant from the interaction. |
|
void |
removeParticipant(String name) Remove any type of participant from the interaction. |
|
void |
replaceParticipant(Participant replaced, Participant replacing) Replace a participant with another Participant. |
|
void |
replaceParticipant(Participant replaced, Participant replacing, boolean purge) The enhanced function for participants replacement. |
Methods inherited from interface com.oracle.sft.api.Communication |
---|
addAgent, end, getAgent, getAgents, getInitiator, getName, getState, removeAgent |
Method Detail |
---|
void addParticipant(String name)
UserParticipant
to the interaction. Executing this method will initiate a call with that participant. Following is an example code. An IllegalArgumentException will be thrown if a participant of the same name already exists. Communication c = ....; c.addParticipant("alice@example.com");
name
- Name of the UserParticipant
void addParticipant(Participant p)
p
- Add a participant to the communicaton.<P extends Participant> void addParticipant(Class<P> type, String name)
Interaction c = ....; c.addParticipant(Recorder.class, "recorder-1");
P
- Any Participant type which is a child of a Participant
.type
- Any Class
that is a child of Participant
.name
- Name of the participant<P extends Participant> void addParticipant(Class<P> type, String name, javax.media.mscontrol.join.Joinable j)
Interaction c = ....; MediaGroup mg = ....; //Get/create mediagroup. c.createMediaParticipant(Recorder.class, "recorder-1", mg);
The Joinable passed in can be retrieved using getJoinable method. If it is null, then a new JSR 309 Joinable will be created by SFT.P
- Any Participant type which is a child of a Participant
.type
- Any Class
that is a child of Participant
.name
- Name of the participantj
- An instance of Joinable
object.void removeParticipant(String name)
name
- Name of the Participant
void removeParticipant(Participant p)
p
- Participant object.Participant getParticipant(String name)
Participant
from the interaction.name
- Name of the Participant
<P extends Participant> P getParticipant(Class<P> type, String name)
Participant
from the interaction.P
- A sub-type of a Participant.name
- Name of the Participant
type
- Type of the participant.void replaceParticipant(Participant replaced, Participant replacing)
removeParticipant(Participant)
followed by addparticipant(Participant)
. For example, if both the Participants contain the same Joinable
, SFT might consider a very simple object replacement, rather than a more intensive Participant replacement that might involve sending re-INVItes to put the Participants on hold.a MSRPConversation, IMConversation and QueryInteraction will not support this function, and exception will be thrown if the method is invoked in those communicationreplaced
- Participant
to be replaced.replacing
- New Participant
that replaces the replacedvoid replaceParticipant(Participant replaced, Participant replacing, boolean purge)
replaced
- Participant
to be replaced.replacing
- New Participant
which replaces the replacedpurge
- If purge is true, the replaced Participant
will be Byed/Canceled/Rejected, and its life-cycle in communication will be terminated; If purge is false, the replaced Participant
would be lay-asided, it does not take part in communication activity in certain period. but Communication still maintains its call state, and it will take part in communication activity again once its original role is restored.
|
Oracle Communications Converged Application Server Java API Reference 5.1 E36938-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2012 Oracle Corporation. All Rights Reserved.