Package fr.norsys.mapper.console.exception

Examples of fr.norsys.mapper.console.exception.ApplicationException


      throws ApplicationException {
    Application a = null;
    try {
      a = (Application) BeanUtils.cloneBean(application);
    } catch (Exception e) {
      throw new ApplicationException(
          "Impossible to clone application bean:" + application
              + "=> " + e);
    }
    a.setId(UIDGenerator.generateId());
    applications.add(a);
    try {
      fileService.createNewFile(a.getName() + xmlFileExt, appliDirPath);
    } catch (FileException e1) {
      throw new ApplicationException(e1.toString());
    }
    try {
      mappingService.saveMapping(a, appliDirPath + a.getName()
          + xmlFileExt);
    } catch (MappingException e) {
      throw new ApplicationException(e.toString());
    }
  }
View Full Code Here


            fileService
                .changeFileName(a.getName() + xmlFileExt, application
                    .getName()
                    + xmlFileExt, appliDirPath);
          } catch (FileException e) {
            throw new ApplicationException(e.toString());
          }
        }
        fr.norsys.mapper.console.utils.BeanUtils.copyFilledProperties(
            a, application);
        application = a;
View Full Code Here

        applications.remove(a);
        try {
          fileService.deleteFile(a.getName() + xmlFileExt,
              appliDirPath);
        } catch (FileException e) {
          throw new ApplicationException(e.toString());
        }
        break;
      }
    }
  }
View Full Code Here

TOP

Related Classes of fr.norsys.mapper.console.exception.ApplicationException

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.