Interface IServiceManager
- All Superinterfaces:
IDisposable, IEntity
Manages the services.
-
Method Summary
Modifier and TypeMethodDescriptionintcreateFavoriteFilter(String serviceName, FavoriteFilterCreateRequest request) Creates a favorite filter.intcreateService(ServiceCreateRequest request) Creates a service.intcreateSsmContactDistributionTask(String serviceName, String sql) Creates a SSM contact distribution taskvoiddeleteFavoriteFilter(String serviceName, int filterId) Deletes a favorite filter.voiddeleteService(String serviceName) Deletes a service.getContactUploaderById(int contactUploaderId) Returns aIServiceContactUploaderobject that previously has started an upload task in the Altitude uCI Server.getContactUploaderByTaskId(int contactUploaderTaskId) Returns aIServiceContactUploaderobject that previously has started an upload task in the Altitude uCI Server.Gets theIServiceContactUploaderobjects.Attribute[][]getCubeDataAsAttributes(String serviceName, CubeDimensionRequestBase[] dimensionRequests, TimeSplitDimension timeSplitDimension, GregorianCalendar startMoment, GregorianCalendar endMoment, Duration startDayTime, Duration endDayTime, String[] columns) Fetches data from cubes.Attribute[][]getCubeDataAsAttributes(String serviceName, CubeDimensionRequestBase[] dimensionRequests, TimeSplitDimension timeSplitDimension, GregorianCalendar startMoment, GregorianCalendar endMoment, Duration startDayTime, Duration endDayTime, String[] columns, PurposeFilter purposeFilter) Fetches data from cubes.String[][]getCubeDataAsValues(String serviceName, CubeDimensionRequestBase[] dimensionRequests, TimeSplitDimension timeSplitDimension, GregorianCalendar startMoment, GregorianCalendar endMoment, Duration startDayTime, Duration endDayTime, String[] columns) Fetches data from cubes.String[][]getCubeDataAsValues(String serviceName, CubeDimensionRequestBase[] dimensionRequests, TimeSplitDimension timeSplitDimension, GregorianCalendar startMoment, GregorianCalendar endMoment, Duration startDayTime, Duration endDayTime, String[] columns, PurposeFilter purposeFilter) Fetches data from cubes.getCubeTableSchema(String serviceName) Gets the cube schema.String[]getEmailGatewayNamesForOutbound(String serviceName) Gets the names of the email gateways for outbound.getFavoriteFilter(String serviceName, int filterId) Gets a favorite filter.getFavoriteFilters(String serviceName) Gets all favorite filters configured for the service.getFavoriteFilterTableSchema(String serviceName) Gets the table schema with the columns that can be used in the service favorite filters.The instance.intgetInteractionHistoryCount(String serviceName, String sql) Gets the count of the interaction history.getInteractionHistoryTableSchema(String serviceName) Gets the table schema of anInteractionThreadScriptSessionused in the Fetch of the InteractionHistory cursor.getPermissions(String serviceName) Gets the list of role permissions.getServiceCursor(int cursorId) Gets a service cursor open in the instance.Returns the service cursors open in the instance.getServiceDataById(int serviceId) Gets the service data.getServiceDataByName(String serviceName) Gets the service data.Gets the table schema of the service.Gets the state of the service.newContactUploader(String serviceName) Creates anIServiceContactUploaderused to upload contacts.newCubeCursor(String serviceName, CubeDimensionRequest[] dimensionRequests, TimeSplitDimension timeSplitDimension, GregorianCalendar startMoment, GregorianCalendar endMoment, Duration startDayTime, Duration endDayTime, String[] columns) Opens a cube cursor.newCubeCursor(String serviceName, CubeDimensionRequest[] dimensionRequests, TimeSplitDimension timeSplitDimension, GregorianCalendar startMoment, GregorianCalendar endMoment, Duration startDayTime, Duration endDayTime, String[] columns, PurposeFilter purposeFilter) Opens a cube cursor.newInteractionHistoryCursor(String serviceName, String[] columns, String sql, boolean fetchOutcomes) Opens an interaction history cursor.newInteractionHistoryCursor(String serviceName, String[] columns, String sql, boolean fetchOutcomes, PurposeFilter purposeFilter) Opens an interaction history cursor.newServiceCursor(String[] columns, String sql) Opens a service cursor.voidStarts the service.voidStops the service.voidSuspends the service.tryGetServiceCursor(int cursorId) Gets a service cursor open in the instance or null if it doesn't exist.voidupdateFavoriteFilter(String serviceName, int filterId, FavoriteFilterUpdateRequest request) Updates a favorite filter.voidupdateService(String serviceName, ServiceUpdateRequest request) Updates a service.Methods inherited from interface IDisposable
addDisposedListener, removeDisposedListenerMethods inherited from interface IEntity
getUserContext, setUserContext
-
Method Details
-
createFavoriteFilter
int createFavoriteFilter(String serviceName, FavoriteFilterCreateRequest request) throws Exception, altitude.integrationServer.exceptions.ISException Creates a favorite filter.- Parameters:
serviceName- Name of the service.request- Contains the filter data.- Returns:
- Identifier of the created filter.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
createService
int createService(ServiceCreateRequest request) throws Exception, altitude.integrationServer.exceptions.ISException Creates a service.- Parameters:
request- Contains the fields that must be overwritten- Returns:
- Identifier of the created service.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
createSsmContactDistributionTask
int createSsmContactDistributionTask(String serviceName, String sql) throws Exception, altitude.integrationServer.exceptions.ISException Creates a SSM contact distribution task- Parameters:
serviceName- Name of the service.sql- SQL.- Returns:
- Identifier of the created background task.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
deleteFavoriteFilter
void deleteFavoriteFilter(String serviceName, int filterId) throws Exception, altitude.integrationServer.exceptions.ISException Deletes a favorite filter.- Parameters:
serviceName- Name of the service.filterId- Identifier of the filter- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
deleteService
-
getContactUploaderById
IServiceContactUploader getContactUploaderById(int contactUploaderId) throws Exception, altitude.integrationServer.exceptions.ISException Returns aIServiceContactUploaderobject that previously has started an upload task in the Altitude uCI Server.- Parameters:
contactUploaderId- Identifier of theIServiceContactUploaderobject.- Returns:
- The
IServiceContactUploaderobject. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContactUploaderByTaskId
IServiceContactUploader getContactUploaderByTaskId(int contactUploaderTaskId) throws Exception, altitude.integrationServer.exceptions.ISException Returns aIServiceContactUploaderobject that previously has started an upload task in the Altitude uCI Server.- Parameters:
contactUploaderTaskId- Identifier of the entity upload task returned by the IServiceContactUploader.Start- Returns:
- The
IServiceContactUploaderobject. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContactUploaders
IServiceContactUploader[] getContactUploaders() throws Exception, altitude.integrationServer.exceptions.ISExceptionGets theIServiceContactUploaderobjects.- Returns:
- The
IServiceContactUploaderobjects. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getCubeDataAsAttributes
Attribute[][] getCubeDataAsAttributes(String serviceName, CubeDimensionRequestBase[] dimensionRequests, TimeSplitDimension timeSplitDimension, GregorianCalendar startMoment, GregorianCalendar endMoment, Duration startDayTime, Duration endDayTime, String[] columns) throws Exception, altitude.integrationServer.exceptions.ISException Fetches data from cubes.- Parameters:
serviceName- Name of the service.dimensionRequests- The requests for each dimension.timeSplitDimension- The time split dimension.startMoment- The initial moment specified in localtime.endMoment- The final moment specified in localtime.startDayTime- The start of the period of the day.endDayTime- The end of the period of the day.columns- The columns to fetch. SeeTypes.BuiltInCounterfor the columns available.- Returns:
- The data fetched.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getCubeDataAsAttributes
Attribute[][] getCubeDataAsAttributes(String serviceName, CubeDimensionRequestBase[] dimensionRequests, TimeSplitDimension timeSplitDimension, GregorianCalendar startMoment, GregorianCalendar endMoment, Duration startDayTime, Duration endDayTime, String[] columns, PurposeFilter purposeFilter) throws Exception, altitude.integrationServer.exceptions.ISException Fetches data from cubes.- Parameters:
serviceName- Name of the service.dimensionRequests- The requests for each dimension.timeSplitDimension- The time split dimension.startMoment- The initial moment specified in localtime.endMoment- The final moment specified in localtime.startDayTime- The start of the period of the day.endDayTime- The end of the period of the day.columns- The columns to fetch. SeeTypes.BuiltInCounterfor the columns available.purposeFilter- Purpose filter.- Returns:
- The data fetched.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getCubeDataAsValues
String[][] getCubeDataAsValues(String serviceName, CubeDimensionRequestBase[] dimensionRequests, TimeSplitDimension timeSplitDimension, GregorianCalendar startMoment, GregorianCalendar endMoment, Duration startDayTime, Duration endDayTime, String[] columns) throws Exception, altitude.integrationServer.exceptions.ISException Fetches data from cubes.- Parameters:
serviceName- Name of the service.dimensionRequests- The requests for each dimension.timeSplitDimension- The time split dimension.startMoment- The initial moment specified in localtime.endMoment- The final moment specified in localtime.startDayTime- The start of the period of the day.endDayTime- The end of the period of the day.columns- The columns to fetch. SeeTypes.BuiltInCounterfor the columns available.- Returns:
- The data fetched.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getCubeDataAsValues
String[][] getCubeDataAsValues(String serviceName, CubeDimensionRequestBase[] dimensionRequests, TimeSplitDimension timeSplitDimension, GregorianCalendar startMoment, GregorianCalendar endMoment, Duration startDayTime, Duration endDayTime, String[] columns, PurposeFilter purposeFilter) throws Exception, altitude.integrationServer.exceptions.ISException Fetches data from cubes.- Parameters:
serviceName- Name of the service.dimensionRequests- The requests for each dimension.timeSplitDimension- The time split dimension.startMoment- The initial moment specified in localtime.endMoment- The final moment specified in localtime.startDayTime- The start of the period of the day.endDayTime- The end of the period of the day.columns- The columns to fetch. SeeTypes.BuiltInCounterfor the columns available.purposeFilter- Purpose filter.- Returns:
- The data fetched.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getCubeTableSchema
CubeTableSchema getCubeTableSchema(String serviceName) throws Exception, altitude.integrationServer.exceptions.ISException Gets the cube schema.- Parameters:
serviceName- Name of the service.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getEmailGatewayNamesForOutbound
-
getFavoriteFilter
FavoriteFilterData getFavoriteFilter(String serviceName, int filterId) throws Exception, altitude.integrationServer.exceptions.ISException Gets a favorite filter.- Parameters:
serviceName- Name of the service.filterId- Identifier of the filter- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getFavoriteFilters
FavoriteFilterData[] getFavoriteFilters(String serviceName) throws Exception, altitude.integrationServer.exceptions.ISException Gets all favorite filters configured for the service.- Parameters:
serviceName- Name of the service.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getFavoriteFilterTableSchema
TableSchema getFavoriteFilterTableSchema(String serviceName) throws Exception, altitude.integrationServer.exceptions.ISException Gets the table schema with the columns that can be used in the service favorite filters.- Parameters:
serviceName- Name of the service.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getInstance
-
getInteractionHistoryCount
int getInteractionHistoryCount(String serviceName, String sql) throws Exception, altitude.integrationServer.exceptions.ISException Gets the count of the interaction history.- Parameters:
serviceName- Name of the service.sql- Sql-like statement. The columns admitted are the ones returned by theGetInteractionHistoryTableSchemamethod. Ifnullthen all rows are counted.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getInteractionHistoryTableSchema
TableSchema getInteractionHistoryTableSchema(String serviceName) throws Exception, altitude.integrationServer.exceptions.ISException Gets the table schema of anInteractionThreadScriptSessionused in the Fetch of the InteractionHistory cursor.- Parameters:
serviceName- Name of the service.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getPermissions
ServiceRolePermission[] getPermissions(String serviceName) throws Exception, altitude.integrationServer.exceptions.ISException Gets the list of role permissions.- Parameters:
serviceName- Name of the service.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getServiceCursor
IServiceCursor getServiceCursor(int cursorId) throws Exception, altitude.integrationServer.exceptions.ISException Gets a service cursor open in the instance.- Parameters:
cursorId- Identifier of the cursor.- Returns:
- The
IServiceCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getServiceCursors
IServiceCursor[] getServiceCursors() throws Exception, altitude.integrationServer.exceptions.ISExceptionReturns the service cursors open in the instance.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getServiceDataById
ServiceData getServiceDataById(int serviceId) throws Exception, altitude.integrationServer.exceptions.ISException Gets the service data.- Parameters:
serviceId- Identifier of the service.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getServiceDataByName
ServiceData getServiceDataByName(String serviceName) throws Exception, altitude.integrationServer.exceptions.ISException Gets the service data.- Parameters:
serviceName- Name of the service.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getServiceTableSchema
TableSchema getServiceTableSchema() throws Exception, altitude.integrationServer.exceptions.ISExceptionGets the table schema of the service.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getState
ServiceState getState(String serviceName) throws Exception, altitude.integrationServer.exceptions.ISException Gets the state of the service.- Parameters:
serviceName- Name of the service.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
newContactUploader
IServiceContactUploader newContactUploader(String serviceName) throws Exception, altitude.integrationServer.exceptions.ISException Creates anIServiceContactUploaderused to upload contacts.- Parameters:
serviceName- Name of the service.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
newCubeCursor
ICubeCursor newCubeCursor(String serviceName, CubeDimensionRequest[] dimensionRequests, TimeSplitDimension timeSplitDimension, GregorianCalendar startMoment, GregorianCalendar endMoment, Duration startDayTime, Duration endDayTime, String[] columns) throws Exception, altitude.integrationServer.exceptions.ISException Opens a cube cursor.- Parameters:
serviceName- Name of the service.dimensionRequests- The requests for each dimension.timeSplitDimension- The time split dimension.startMoment- The initial moment specified in localtime.endMoment- The final moment specified in localtime.startDayTime- The start of the period of the day.endDayTime- The end of the period of the day.columns- The columns to fetch. SeeTypes.BuiltInCounterfor the columns available.- Returns:
- The
ICubeCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
newCubeCursor
ICubeCursor newCubeCursor(String serviceName, CubeDimensionRequest[] dimensionRequests, TimeSplitDimension timeSplitDimension, GregorianCalendar startMoment, GregorianCalendar endMoment, Duration startDayTime, Duration endDayTime, String[] columns, PurposeFilter purposeFilter) throws Exception, altitude.integrationServer.exceptions.ISException Opens a cube cursor.- Parameters:
serviceName- Name of the service.dimensionRequests- The requests for each dimension.timeSplitDimension- The time split dimension.startMoment- The initial moment specified in localtime.endMoment- The final moment specified in localtime.startDayTime- The start of the period of the day.endDayTime- The end of the period of the day.columns- The columns to fetch. SeeTypes.BuiltInCounterfor the columns available.purposeFilter- Purpose filter.- Returns:
- The
ICubeCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
newInteractionHistoryCursor
IInteractionHistoryCursor newInteractionHistoryCursor(String serviceName, String[] columns, String sql, boolean fetchOutcomes) throws Exception, altitude.integrationServer.exceptions.ISException, altitude.integrationServer.exceptions.ISSqlException Opens an interaction history cursor.- Parameters:
serviceName- Name of the service.columns- Columns to fetch.sql- SQL.fetchOutcomes- If true, the outcomes of each interaction are also fetched from the database. If false, the fetchedOutcomeis null.- Returns:
- The
IInteractionHistoryCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISExceptionaltitude.integrationServer.exceptions.ISSqlException
-
newInteractionHistoryCursor
IInteractionHistoryCursor newInteractionHistoryCursor(String serviceName, String[] columns, String sql, boolean fetchOutcomes, PurposeFilter purposeFilter) throws Exception, altitude.integrationServer.exceptions.ISException, altitude.integrationServer.exceptions.ISSqlException Opens an interaction history cursor.- Parameters:
serviceName- Name of the service.columns- Columns to fetch.sql- Sql-like statement. The columns admitted are the ones returned by theGetInteractionHistoryTableSchemamethod. Ifnullthen all rows are selected.fetchOutcomes- If true, the outcomes of each interaction are also fetched from the database. If false, the fetchedOutcomeis null.purposeFilter- Purpose filter.- Returns:
- The
IInteractionHistoryCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISExceptionaltitude.integrationServer.exceptions.ISSqlException
-
newServiceCursor
IServiceCursor newServiceCursor(String[] columns, String sql) throws Exception, altitude.integrationServer.exceptions.ISException, altitude.integrationServer.exceptions.ISSqlException Opens a service cursor.- Parameters:
columns- Columns to fetch.sql- SQL.- Returns:
- The
IServiceCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISExceptionaltitude.integrationServer.exceptions.ISSqlException
-
start
-
stop
-
suspend
-
tryGetServiceCursor
IServiceCursor tryGetServiceCursor(int cursorId) throws Exception, altitude.integrationServer.exceptions.ISException Gets a service cursor open in the instance or null if it doesn't exist.- Parameters:
cursorId- Identifier of the cursor.- Returns:
- The
IServiceCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
updateFavoriteFilter
void updateFavoriteFilter(String serviceName, int filterId, FavoriteFilterUpdateRequest request) throws Exception, altitude.integrationServer.exceptions.ISException Updates a favorite filter.- Parameters:
serviceName- Name of the service.filterId- Identifier of the filterrequest- Contains the filter data to update.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
updateService
void updateService(String serviceName, ServiceUpdateRequest request) throws Exception, altitude.integrationServer.exceptions.ISException Updates a service.- Parameters:
serviceName- Name of the service.request- Describes what to update.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-