Interface IAgentManager
- All Superinterfaces:
IDisposable, IEntity
Manages the agents.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignCampaign(String agentName, String campaignName) Assigns an agent to the campaign.voidassignTeam(String agentName, String teamName) Assigns an agent to the team.voidcleanupAgent(String agentName) Cleans the agent in the instance if logged as agent.voidcleanupSupervisor(String agentName) Cleans the agent in the instance if logged as supervisor.intcreateAgent(AgentCreateRequest request) Creates an agent.voiddeAssignCampaign(String agentName, String campaignName) Deassigns an agent to the campaign.voiddeAssignTeam(String agentName, String teamName) Deassigns an agent to the team.voiddeleteAgent(String agentName) Deletes an agent.voiddeleteAgentById(int agentId) Deletes an agent.intduplicateAgent(String agentName, AgentCreateRequest request) Duplicates the current agentvoidforcedDeAssignCampaign(String agentName, String campaignName) Deassigns an agent to the campaign regardless of the current state of the campaign.getAgentCursor(int cursorId) Gets an agent cursor open in the instance.Returns the agent cursors open in the instance.getAgentDataById(int agentId) Gets the agent data.getAgentDataByName(String agentName) Gets the agent data.Gets the table schema of the agent.getAssignedCampaigns(String agentName, AssignmentMode assignmentMode) Gets the data of campaigns assigned to the agent.TeamData[]getAssignedTeams(String agentName) Gets the data of the teams assigned to the agent.The instance.getPermissions(String agentName) Gets the list of role permissions.newAgentCursor(String[] columns, String sql, AgentAssignmentFilter assignmentFilter) Opens an agent cursor.voidsendCustomData(String agentName, byte[] customData) Sends custom data (blind data) to applications.voidsendMessage(String agentName, String message) Sends a message to an agent.tryGetAgentCursor(int cursorId) Gets an agent cursor open in the instance or null if it doesn't exist.voidupdateAgent(String agentName, AgentUpdateRequest request) Updates an agent.Methods inherited from interface IDisposable
addDisposedListener, removeDisposedListenerMethods inherited from interface IEntity
getUserContext, setUserContext
-
Method Details
-
assignCampaign
void assignCampaign(String agentName, String campaignName) throws Exception, altitude.integrationServer.exceptions.ISException Assigns an agent to the campaign.- Parameters:
agentName- Name of the agent.campaignName- Name of the campaign.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
assignTeam
-
cleanupAgent
-
cleanupSupervisor
-
createAgent
int createAgent(AgentCreateRequest request) throws Exception, altitude.integrationServer.exceptions.ISException Creates an agent.- Parameters:
request- Contains the fields that must be overwritten- Returns:
- Identifier of the created agent.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
deAssignCampaign
void deAssignCampaign(String agentName, String campaignName) throws Exception, altitude.integrationServer.exceptions.ISException Deassigns an agent to the campaign.- Parameters:
agentName- Name of the agent.campaignName- Name of the campaign.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
deAssignTeam
-
deleteAgent
-
deleteAgentById
-
duplicateAgent
int duplicateAgent(String agentName, AgentCreateRequest request) throws Exception, altitude.integrationServer.exceptions.ISException Duplicates the current agent- Parameters:
agentName- Name of the agent.request- Contains the fields that must be overwritten- Returns:
- Identifier of the duplicated agent.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
forcedDeAssignCampaign
void forcedDeAssignCampaign(String agentName, String campaignName) throws Exception, altitude.integrationServer.exceptions.ISException Deassigns an agent to the campaign regardless of the current state of the campaign.- Parameters:
agentName- Name of the agent.campaignName- Name of the campaign.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getAgentCursor
IAgentCursor getAgentCursor(int cursorId) throws Exception, altitude.integrationServer.exceptions.ISException Gets an agent cursor open in the instance.- Parameters:
cursorId- Identifier of the cursor.- Returns:
- The
IAgentCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getAgentCursors
IAgentCursor[] getAgentCursors() throws Exception, altitude.integrationServer.exceptions.ISExceptionReturns the agent cursors open in the instance.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getAgentDataById
-
getAgentDataByName
-
getAgentTableSchema
TableSchema getAgentTableSchema() throws Exception, altitude.integrationServer.exceptions.ISExceptionGets the table schema of the agent.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getAssignedCampaigns
CampaignData[] getAssignedCampaigns(String agentName, AssignmentMode assignmentMode) throws Exception, altitude.integrationServer.exceptions.ISException Gets the data of campaigns assigned to the agent.- Parameters:
agentName- Name of the agent.assignmentMode- Type of mode. If AssignmentMode.NoValue, AssignmentMode.Direct is assumed.- Returns:
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getAssignedTeams
-
getInstance
-
getPermissions
AgentRolePermission[] getPermissions(String agentName) throws Exception, altitude.integrationServer.exceptions.ISException Gets the list of role permissions.- Parameters:
agentName- Name of the agent.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
newAgentCursor
IAgentCursor newAgentCursor(String[] columns, String sql, AgentAssignmentFilter assignmentFilter) throws Exception, altitude.integrationServer.exceptions.ISException, altitude.integrationServer.exceptions.ISSqlException Opens an agent cursor.- Parameters:
columns- Columns to fetch.sql- SQLassignmentFilter- Assignment filter.- Returns:
- The
IAgentCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISExceptionaltitude.integrationServer.exceptions.ISSqlException
-
sendCustomData
void sendCustomData(String agentName, byte[] customData) throws Exception, altitude.integrationServer.exceptions.ISException Sends custom data (blind data) to applications.- Parameters:
agentName- Name of the agent.customData- Custom data (blind data).- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
sendMessage
-
tryGetAgentCursor
IAgentCursor tryGetAgentCursor(int cursorId) throws Exception, altitude.integrationServer.exceptions.ISException Gets an agent cursor open in the instance or null if it doesn't exist.- Parameters:
cursorId- Identifier of the cursor.- Returns:
- The
IAgentCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
updateAgent
void updateAgent(String agentName, AgentUpdateRequest request) throws Exception, altitude.integrationServer.exceptions.ISException Updates an agent.- Parameters:
agentName- Name of the agent.request- Contains the fields to be updated.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-