Package evolaris.framework.um.business

Examples of evolaris.framework.um.business.UserImportResult


    if (csvFile != null && csvFile.getFileName() != null && csvFile.getFileName().length() != 0){
      try {
        InputStream inputStream = csvFile.getInputStream();
        UserManager userManager = new UserManager(locale,session);
       
        UserImportResult importResult = userManager.importData(inputStream, userImportForm.getCharacterSet(), userImportForm.getDelimiter(),userSet,
            userImportForm.getMergeSelection().equals("userName"),
            userImportForm.getMergeSelection().equals("msisdn"),
            userImportForm.getMergeSelection().equals("personnelNumber"));
        inputStream.close();
       
        req.setAttribute("userImportCounter", importResult.getUsersCreated());
        req.setAttribute("userUpdateCounter", importResult.getUsersUpdated());
        req.setAttribute("userIgnoreCounter", importResult.getUsersIgnored());
        req.setAttribute("userImportErrormessages", importResult.getErrorMessages());
       
      } catch (FileNotFoundException e){
        throw new InputException(resources.getMessage(locale, "um.fileNotFound",csvFile.getFileName()),e);
      } catch (IOException e) {
        throw new InputException(resources.getMessage(locale, "um.couldNotReadFile",csvFile.getFileName()),e);
View Full Code Here

TOP

Related Classes of evolaris.framework.um.business.UserImportResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.