public class AgentLogoffAction extends AbstractManagerAction
Available since Asterisk 1.2
| Constructor and Description |
|---|
AgentLogoffAction()
Creates a new empty AgentLogoffAction.
|
AgentLogoffAction(String agent)
Creates a new AgentLogoffAction that logs off the given agent
|
AgentLogoffAction(String agent,
Boolean soft)
Creates a new AgentLogoffAction that logs off the given agent
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAction()
Returns the name of this action, i.e.
|
String |
getAgent()
Returns the name of the agent to log off, for example "1002".
|
Boolean |
getSoft()
Returns whether to hangup existing calls or not.
|
void |
setAgent(String agent)
Sets the name of the agent to log off, for example "1002".
|
void |
setSoft(Boolean soft)
Sets whether existing calls should be hung up or not.
|
getActionId, setActionId, toStringpublic AgentLogoffAction()
public AgentLogoffAction(String agent)
agent - the name of the agent to log off.public String getAction()
getAction in interface ManagerActiongetAction in class AbstractManagerActionpublic String getAgent()
public void setAgent(String agent)
This is property is mandatory.
agent - the name of the agent to log offpublic Boolean getSoft()
Default is to hangup existing calls on logoff.
null if default should be
used.public void setSoft(Boolean soft)
Default is to hangup existing calls on logoff.
soft - Boolean.TRUE if existing calls should not be hung up,
Boolean.FALSE otherwise. null if default should
be used.Copyright © 2004–2024. All rights reserved.