|
JSR-043: JTAPI-1.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The AgentTerminal
interface extends the core
Terminal
interface. This interface add methods to support ACD
and Agent features.
Agents
associated with this
AgentTerminal
via the AgentTerminal.addAgent()
method. This method creates and returns a new Agent
which is
associated with this AgentTerminal
and an
ACDAddress
given as an argument. Agents model human individuals
who are able to service telephone calls coming into an Address.
Agents may be removed from this AgentTerminal
via the
AgentTerminal.removeAgent()
method.
Terminal
,
Agent
,
ACDAddress
,
AgentTerminalObserver
Method Summary | |
Agent |
addAgent(Address agentAddress,
ACDAddress acdAddress,
int initialState,
java.lang.String agentID,
java.lang.String password)
Creates a new Agent associated with this Terminal and is
logged into the ACDAddress given as an argument. |
Agent[] |
getAgents()
Returns an array of Agents current associated with this Terminal. |
void |
removeAgent(Agent agent)
Removes a previously added Agent from this
AgentTerminal . |
void |
setAgents(Agent[] agents)
Deprecated. Since JTAPI v1.2. Has been replaced with addAgent() and removeAgent() |
Methods inherited from interface javax.telephony.Terminal |
addCallListener, addCallObserver, addObserver, addTerminalListener, getAddresses, getCallListeners, getCallObservers, getCapabilities, getName, getObservers, getProvider, getTerminalCapabilities, getTerminalConnections, getTerminalListeners, removeCallListener, removeCallObserver, removeObserver, removeTerminalListener |
Method Detail |
public Agent addAgent(Address agentAddress, ACDAddress acdAddress, int initialState, java.lang.String agentID, java.lang.String password) throws InvalidArgumentException, InvalidStateException, ResourceUnavailableException
Agent
associated with this Terminal and is
logged into the ACDAddress
given as an argument. This method
returns the new Agent
when it has been successfully created
and logged into the ACDAddress
.
Applications remove the new Agent via the removeAgent()
method defined by this interface. Applications obtain all Agents
associated with this Terminal via the getAgents()
method
defined on this interface.
Subsequent invocations of this methods with the same agentAddress and acdAddress parameters will simply return the Agent originally created.
Pre-Conditions
agentAddress
- The Address associated with this Terminal. Terminals
may support more than one Address on which an Agent may be associated.acdAddress
- The Address which the Agent logs into.initialState
- The initial state of the Agent.agentID
- The Agent's string identification.password
- The string password which authorizes the application to
log in as an Agent.ResourceUnavailableException
- An internal resource necessary
for adding the Agent to this Terminal and ACDAddress is unavailable.InvalidArgumentException
- An argument provided is not valid
either by not providing enough information for addAgent() or is
inconsistent with another argument.InvalidStateException
- Either the provider is not in service
or the AgentTerminal is not in a state in which it can be logged into
the ACDAddress.public void removeAgent(Agent agent) throws InvalidArgumentException, InvalidStateException
Agent
from this
AgentTerminal
. This method returns when the Agent is logged
out of the ACDAddress
and the state of the Agent moves to
Agent.LOG_OUT
.
Pre-Conditions
agent
- The Agent to be removed and logged out.InvalidArgumentException
- The Agent given is not valid.InvalidStateException
- Either the provider is not in service
or the AgentTerminal is not in a state in which it can be logged out of
the ACDAddress.AgentTermLoggedOffEv
,
AgentTermLoggedOnEv
public Agent[] getAgents()
null
is no Agents exist. Agents are reported
via this method once they are added via the addAgent()
method
until they are removed via the removeAgent()
method defined
on this interface.
public void setAgents(Agent[] agents) throws MethodNotSupportedException
Note: This method has been removed for JTAPI v1.2 and
later. It has been replaced with the AgentTerminal.addAgent()
and AgentTerminal.removeAgent()
methods. This method should
now always throw MethodNotSupportedException
.
agents
- The array of Agents to be either added, removed, or changed.MethodNotSupportedException
- This exception should always be
thrown for JTAPI v1.2 and later.
|
JSR-043: JTAPI-1.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |