Interface IEntityUploader
- All Superinterfaces:
IDisposable, IEntity
- All Known Subinterfaces:
ICampaignContactUploader, IConsentUploader, IContactProfileUploader, IServiceContactUploader
Base class to upload entities.
The upload procedure has three phases: first the data is uploaded to Altitude uCI Server; then a task is created in the Altitude uCI Server to process the uploaded data; and finally the output can be downloaded.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCancels an entity upload task in the Altitude uCI Server.voidclose()Dispose this object in theIntegrationServer.Data file name in zip filebooleanData content is a zip fileOperations that are performed when new entities are uploaded.getEntityUploadResultDownloader(int downloaderId) Gets a contact import preview result downloader.Gets the open contact import preview result downloaders.Gets the entity upload task data, previously created by theStartEntityUploaderTaskmethod.charData record field separator.intgetId()Identifier of the EntityUploaderLoader.String that represents anullfield.intReturns the identifier of the entity upload task created in the Server.Creates a downloader used to access the data file.Creates a downloader used to access the mapping file.Creates a downloader used to access the rejected file.voidsetDataFileNameInZip(String value) Data file name in zip filevoidsetDataIsZip(boolean value) Data content is a zip filevoidOperations that are performed when new entities are uploaded.voidsetFieldSeparator(char value) Data record field separator.voidsetNullField(String value) String that represents anullfield.voidStarts an entity upload task in the Altitude uCI Server.tryGetEntityUploadResultDownloader(int downloaderId) Gets an open contact import preview result downloader, or null if it doesn't exist.voiduploadDataContentBlock(byte[] contentBlock) Uploads blocks of the data file.voiduploadMappingContentBlock(byte[] contentBlock) Uploads blocks of the mapping file.Methods inherited from interface IDisposable
addDisposedListener, removeDisposedListenerMethods inherited from interface IEntity
getUserContext, setUserContext
-
Method Details
-
cancelEntityUploadTask
-
close
Dispose this object in theIntegrationServer. The upload task continues to execute in the Altitude uCI Server if already started. This method should be invoked when the application no longer needs it.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getDataFileNameInZip
-
setDataFileNameInZip
-
getDataIsZip
-
setDataIsZip
-
getEntityUploadMode
EntityUploadMode getEntityUploadMode() throws Exception, altitude.integrationServer.exceptions.ISExceptionOperations that are performed when new entities are uploaded.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
setEntityUploadMode
void setEntityUploadMode(EntityUploadMode value) throws Exception, altitude.integrationServer.exceptions.ISException Operations that are performed when new entities are uploaded.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getEntityUploadResultDownloader
IEntityUploadResultDownloader getEntityUploadResultDownloader(int downloaderId) throws Exception, altitude.integrationServer.exceptions.ISException Gets a contact import preview result downloader.- Parameters:
downloaderId- Identifier of the downloader.- Returns:
- The
IEntityUploadResultDownloaderdownloader. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getEntityUploadResultDownloaders
IEntityUploadResultDownloader[] getEntityUploadResultDownloaders() throws Exception, altitude.integrationServer.exceptions.ISExceptionGets the open contact import preview result downloaders.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getEntityUploadTask
EntityUploadTaskData getEntityUploadTask() throws Exception, altitude.integrationServer.exceptions.ISExceptionGets the entity upload task data, previously created by theStartEntityUploaderTaskmethod.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getFieldSeparator
-
setFieldSeparator
-
getId
-
getNullField
-
setNullField
-
getTaskId
Returns the identifier of the entity upload task created in the Server. The identifier of the task can be persisted in order to handle restart application scenario. After a restart, the application can invokeIInstanceManager.GetEntityUploaderByTaskId. If the task has not already started in the Altitude uCI ServerConstants.IntNoValueis returned.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
newDataFileDownloader
IEntityUploadResultDownloader newDataFileDownloader() throws Exception, altitude.integrationServer.exceptions.ISExceptionCreates a downloader used to access the data file.- Returns:
- The created downloader.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
newMappingFileDownloader
IEntityUploadResultDownloader newMappingFileDownloader() throws Exception, altitude.integrationServer.exceptions.ISExceptionCreates a downloader used to access the mapping file.- Returns:
- The created downloader.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
newRejectedFileDownloader
IEntityUploadResultDownloader newRejectedFileDownloader() throws Exception, altitude.integrationServer.exceptions.ISExceptionCreates a downloader used to access the rejected file.- Returns:
- The created downloader.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
startEntityUploadTask
-
tryGetEntityUploadResultDownloader
IEntityUploadResultDownloader tryGetEntityUploadResultDownloader(int downloaderId) throws Exception, altitude.integrationServer.exceptions.ISException Gets an open contact import preview result downloader, or null if it doesn't exist.- Parameters:
downloaderId- Identifier of the downloader.- Returns:
- The
IEntityUploadResultDownloader. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
uploadDataContentBlock
void uploadDataContentBlock(byte[] contentBlock) throws Exception, altitude.integrationServer.exceptions.ISException Uploads blocks of the data file. This method can be invoked several times until an upload task is created withStartEntityUploaderTask.- Parameters:
contentBlock- Content to upload encoded in UTF-8.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
uploadMappingContentBlock
void uploadMappingContentBlock(byte[] contentBlock) throws Exception, altitude.integrationServer.exceptions.ISException Uploads blocks of the mapping file. This method can be invoked several times until an upload task is created withStartEntityUploaderTask.- Parameters:
contentBlock- Content to upload encoded in UTF-8.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-