Interface ITeamManager
- All Superinterfaces:
IDisposable, IEntity
Manages the teams.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignAgent(String teamName, String agentName) Assigns an agent to the team.voidassignCampaign(String teamName, String campaignName) Assigns a campaign to the team.intcreateTeam(TeamCreateRequest request) Creates a team.voiddeAssignAgent(String teamName, String agentName) Deassigns an agent to the team.voiddeAssignCampaign(String teamName, String campaignName) Deassigns a campaign to the team.voiddeleteTeam(String teamName) Deletes a team.voidforcedDeAssignCampaign(String teamName, String campaignName) Deassigns a campaign to the team regardless of the current state of the campaign.getAssignedAgents(String teamName) Gets the data of the agents assigned to the team.getAssignedCampaigns(String teamName) Gets the data of campaigns assigned to the team.The instance.getPermissions(String teamName) Gets the list of role permissions.getTeamCursor(int cursorId) Gets a team cursor open in the instance.Returns the team cursors open in the instance.getTeamDataById(int teamId) Gets the team data.getTeamDataByName(String teamName) Gets the team data.String[]Retrieves the list of team names.Gets the table schema of the team.newTeamCursor(String[] columns, String sql, TeamAssignmentFilter assignmentFilter) Opens a team cursor.voidsendMessage(String teamName, String message) Sends a message to a team.tryGetTeamCursor(int cursorId) Gets a team cursor open in the instance or null if it doesn't exist.voidupdateTeam(String teamName, TeamUpdateRequest request) Updates a team.Methods inherited from interface IDisposable
addDisposedListener, removeDisposedListenerMethods inherited from interface IEntity
getUserContext, setUserContext
-
Method Details
-
assignAgent
-
assignCampaign
void assignCampaign(String teamName, String campaignName) throws Exception, altitude.integrationServer.exceptions.ISException Assigns a campaign to the team.- Parameters:
teamName- Name of the team.campaignName- Name of the campaign.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
createTeam
int createTeam(TeamCreateRequest request) throws Exception, altitude.integrationServer.exceptions.ISException Creates a team.- Parameters:
request- Contains the fields that must be overwritten- Returns:
- Identifier of the created team.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
deAssignAgent
-
deAssignCampaign
void deAssignCampaign(String teamName, String campaignName) throws Exception, altitude.integrationServer.exceptions.ISException Deassigns a campaign to the team.- Parameters:
teamName- Name of the team.campaignName- Name of the campaign.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
deleteTeam
-
forcedDeAssignCampaign
void forcedDeAssignCampaign(String teamName, String campaignName) throws Exception, altitude.integrationServer.exceptions.ISException Deassigns a campaign to the team regardless of the current state of the campaign.- Parameters:
teamName- Name of the team.campaignName- Name of the campaign.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getAssignedAgents
-
getAssignedCampaigns
CampaignData[] getAssignedCampaigns(String teamName) throws Exception, altitude.integrationServer.exceptions.ISException Gets the data of campaigns assigned to the team.- Parameters:
teamName- Name of the team.- Returns:
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getInstance
-
getPermissions
TeamRolePermission[] getPermissions(String teamName) throws Exception, altitude.integrationServer.exceptions.ISException Gets the list of role permissions.- Parameters:
teamName- Name of the team.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getTeamCursor
ITeamCursor getTeamCursor(int cursorId) throws Exception, altitude.integrationServer.exceptions.ISException Gets a team cursor open in the instance.- Parameters:
cursorId- Identifier of the cursor.- Returns:
- The
ITeamCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getTeamCursors
Returns the team cursors open in the instance.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getTeamDataById
-
getTeamDataByName
-
getTeamNames
-
getTeamTableSchema
TableSchema getTeamTableSchema() throws Exception, altitude.integrationServer.exceptions.ISExceptionGets the table schema of the team.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
newTeamCursor
ITeamCursor newTeamCursor(String[] columns, String sql, TeamAssignmentFilter assignmentFilter) throws Exception, altitude.integrationServer.exceptions.ISException, altitude.integrationServer.exceptions.ISSqlException Opens a team cursor.- Parameters:
columns- Columns to fetch.sql- SQL.assignmentFilter- Assignment filter.- Returns:
- The
ITeamCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISExceptionaltitude.integrationServer.exceptions.ISSqlException
-
sendMessage
-
tryGetTeamCursor
ITeamCursor tryGetTeamCursor(int cursorId) throws Exception, altitude.integrationServer.exceptions.ISException Gets a team cursor open in the instance or null if it doesn't exist.- Parameters:
cursorId- Identifier of the cursor.- Returns:
- The
ITeamCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
updateTeam
void updateTeam(String teamName, TeamUpdateRequest request) throws Exception, altitude.integrationServer.exceptions.ISException Updates a team.- Parameters:
teamName- Name of the team.request- Contains the fields to be updated.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-