Class ImportActionService


  • public class ImportActionService
    extends CayenneService
    Provides a service for import action objects.
    • Constructor Detail

      • ImportActionService

        public ImportActionService()
    • Method Detail

      • createImportActionAndData

        public ImportAction createImportActionAndData​(String importType,
                                                      String archiveName,
                                                      byte[] archiveData,
                                                      String creatorLoginName)
        Create an import action along with an import action data object. This method performs a database commit.
        Parameters:
        importType - one of ImportAction.IMPORT_TYPES
        archiveName - the name of the import archive
        archiveData - the import archive file data
        creatorLoginName - the user name of the user importing the archive. If not set, will be obtained via RemoteUserProvider.getRemoteUser(). If this fails, an exception is thrown.
        Returns:
        an ImportAction complete with its ImportActionData, a status of ImportAction.IMPORT_STATUS_READY and the client set to the client associated with the current user (if any)