Class UserBulkImportService


  • public class UserBulkImportService
    extends CayenneService
    Provides methods around user bulk import.
    Since:
    3.6.0
    • Constructor Detail

      • UserBulkImportService

        public UserBulkImportService()
    • Method Detail

      • performBulkImport

        public UserBulkImportResult performBulkImport​(String filename,
                                                      byte[] importData)
                                               throws IOException
        Import a set of users specified in an XLS file. Users who already exist (lookup by login name) are not modified in any way. Users can be assigned forms portals only. Notably, users cannot be associated with the management console during bulk import.
        Parameters:
        filename - the name of the import file
        importData - the data containing the user list in XLS format
        Returns:
        a special result class containing import success status as well as the detailed results (error if unsuccessful, lists of imported, skipped and failed users otherwise)
        Throws:
        IOException - if an I/O error occurs