Package it.eng.spagobi.tools.importexport

Examples of it.eng.spagobi.tools.importexport.IImportManager


     *                Spago SourceBean response
     * @throws EMFUserError
     */
    private void importConf(SourceBean request, SourceBean response) throws EMFUserError {
  logger.debug("IN");
  IImportManager impManager = null;
  // get exported file and eventually the associations file
//  UploadedFile archive = null;
//  UploadedFile associationsFile = null;
  FileItem archive = null;
  FileItem associationsFileItem = null;
  UploadedFile associationsFile = null;
  AssociationFile assFile = null;
  try {
    String assKindFromReq = (String) request.getAttribute("importAssociationKind");
    boolean isNoAssociationModality = assKindFromReq != null && assKindFromReq.equalsIgnoreCase("noassociations");
    List uplFiles = request.getAttributeAsList("UPLOADED_FILE");
    Iterator uplFilesIter = uplFiles.iterator();
    while (uplFilesIter.hasNext()) {
        //UploadedFile uplFile = (UploadedFile) uplFilesIter.next();
      FileItem uplFile = (FileItem) uplFilesIter.next();
        //String nameInForm = uplFile.getFieldNameInForm();
      String nameInForm = uplFile.getFieldName();
        if (nameInForm.equals("exportedArchive")) {
          archive = uplFile;
        } else if (nameInForm.equals("associationsFile")) {
          associationsFileItem = uplFile;
        }
    }
    // check that the name of the uploaded archive is not empty
    //String archiveName = archive.getFileName();
    String archiveName = GeneralUtilities.getRelativeFileNames(archive.getName());
    if (archiveName.trim().equals("")) {
        logger.error("Missing exported file");
      response.setAttribute(ImportExportConstants.PUBLISHER_NAME, "ImportExportLoopbackStopImport");
        throw new EMFValidationError(EMFErrorSeverity.ERROR, "exportedArchive", "8007", "component_impexp_messages");
    }
   
    int maxSize = ImportUtilities.getImportFileMaxSize();
    if (archive.getSize() > maxSize) {
        logger.error("File is too large!!!");
      response.setAttribute(ImportExportConstants.PUBLISHER_NAME, "ImportExportLoopbackStopImport");
        throw new EMFValidationError(EMFErrorSeverity.ERROR, "exportedArchive", "202");
    }
   
    // checks if the association file is bigger than 1 MB, that is more than enough!!
    if (associationsFileItem != null) {
      if (associationsFileItem.getSize() > 1048576) {
        throw new EMFValidationError(EMFErrorSeverity.ERROR, "associationsFile", "202");
      }
      // loads association file
      associationsFile = new UploadedFile();
      associationsFile.setFileContent(associationsFileItem.get());
      associationsFile.setFieldNameInForm(associationsFileItem.getFieldName());
      associationsFile.setSizeInBytes(associationsFileItem.getSize());
      associationsFile.setFileName(GeneralUtilities.getRelativeFileNames(associationsFileItem.getName()));
    }
   
    // if the user choose to have no associations, checks the form, otherwise set the variable associationsFile = null
    if (!isNoAssociationModality) {
      // check if the name of associations file is empty (in this case set
      // null to the variable)
      if (associationsFile != null) {
        String associationsFileName = associationsFile.getFileName();
        if (associationsFileName.trim().equals("")) {
            associationsFile = null;
        }
      }
      // if the association file is empty then check if there is an
      // association id
      // rebuild the uploaded file and assign it to associationsFile variable
      if (associationsFile == null) {
          String assId = (String) request.getAttribute("hidAssId");
          if ((assId != null) && !assId.trim().equals("")) {
        IAssociationFileDAO assfiledao = new AssociationFileDAO();
        assFile = assfiledao.loadFromID(assId);
        byte[] content = assfiledao.getContent(assFile);
        UploadedFile uplFile = new UploadedFile();
        uplFile.setSizeInBytes(content.length);
        uplFile.setFileContent(content);
        uplFile.setFileName("association.xml");
        uplFile.setFieldNameInForm("");
        associationsFile = uplFile;
          }
      }
    } else {
      associationsFile = null;
    }
   
    // get the association mode
    String assMode = IImportManager.IMPORT_ASS_DEFAULT_MODE;
    if (assKindFromReq.equalsIgnoreCase("predefinedassociations")) {
        assMode = IImportManager.IMPORT_ASS_PREDEFINED_MODE;
    }
    // get bytes of the archive
    byte[] archiveBytes = archive.get();
 
      // get path of the import tmp directory
      String pathImpTmpFolder = ImportUtilities.getImportTempFolderPath();
    
      // apply transformation
      TransformManager transManager = new TransformManager();
      archiveBytes = transManager.applyTransformations(archiveBytes, archiveName, pathImpTmpFolder);

      impManager = ImportUtilities.getImportManagerInstance();
      // prepare import environment
      impManager.init(pathImpTmpFolder, archiveName, archiveBytes);
      impManager.openSession();
      impManager.setAssociationFile(assFile);
     
    // if the associations file has been uploaded fill the association keeper
    if(associationsFile!=null) {
      byte[] assFilebys = associationsFile.getFileContent();
      String assFileStr = new String(assFilebys);
      try {
        impManager.getUserAssociation().fillFromXml(assFileStr);
      } catch (Exception e) {
        logger.error("Error while loading association file content:\n " + e);
        response.setAttribute(ImportExportConstants.PUBLISHER_NAME, "ImportExportLoopbackStopImport");
        throw new EMFValidationError(EMFErrorSeverity.ERROR, "exportedArchive", "8009", "component_impexp_messages");
      }
    }

      // set into import manager the association import mode
      impManager.setImpAssMode(assMode);

    RequestContainer requestContainer = this.getRequestContainer();
    SessionContainer session = requestContainer.getSessionContainer();
    session.setAttribute(ImportExportConstants.IMPORT_MANAGER, impManager);
   
    // start import operations
    if (impManager.getImpAssMode().equals(IImportManager.IMPORT_ASS_PREDEFINED_MODE) && !impManager.associateAllExportedRolesByUserAssociation()) {
      response.setAttribute(ImportExportConstants.PUBLISHER_NAME, "ImportExportSkipRoleAssociation");
    } else {
      // move to jsp
      List exportedRoles = impManager.getExportedRoles();
      IRoleDAO roleDAO = DAOFactory.getRoleDAO();
      List currentRoles = roleDAO.loadAllRoles();
      response.setAttribute(ImportExportConstants.LIST_EXPORTED_ROLES, exportedRoles);
      response.setAttribute(ImportExportConstants.LIST_CURRENT_ROLES, currentRoles);
      response.setAttribute(ImportExportConstants.PUBLISHER_NAME, "ImportExportRoleAssociation");
    }
  } catch (EMFUserError emfue) {
      if (impManager != null)
    impManager.stopImport();
      throw emfue;
  } catch (ClassNotFoundException cnde) {
      logger.error("Importer class not found", cnde);
      if (impManager != null)
    impManager.stopImport();
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
  } catch (InstantiationException ie) {
      logger.error("Cannot create an instance of importer class ", ie);
      if (impManager != null)
    impManager.stopImport();
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
  } catch (IllegalAccessException iae) {
      logger.error("Cannot create an instance of importer class ", iae);
      if (impManager != null)
    impManager.stopImport();
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
  } catch (SourceBeanException sbe) {
    logger.error("Error: " + sbe);
      if (impManager != null)
      impManager.stopImport();
    throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
  } catch (Exception e) {
    logger.error(e);
      if (impManager != null)
      impManager.stopImport();
    throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
  } finally {
      if (impManager != null)
      impManager.closeSession();
      logger.debug("OUT");
  }
    }
View Full Code Here


     *                Spago SourceBean response
     * @throws EMFUserError
     */
    private void associateRoles(SourceBean request, SourceBean response) throws EMFUserError {
  logger.debug("IN");
  IImportManager impManager = null;
  try {
      RequestContainer requestContainer = this.getRequestContainer();
      SessionContainer session = requestContainer.getSessionContainer();
      impManager = (IImportManager) session.getAttribute(ImportExportConstants.IMPORT_MANAGER);
      impManager.openSession();
      MetadataAssociations metaAss = impManager.getMetadataAssociation();
      if (!request.containsAttribute("ROLES_ASSOCIATIONS_SKIPPED")) {
      // the roles associations form was submitted
      List expRoleIds = request.getAttributeAsList("expRole");
      Iterator iterExpRoles = expRoleIds.iterator();
      while(iterExpRoles.hasNext()){
        String expRoleId = (String)iterExpRoles.next();
        String roleAssociateId = (String)request.getAttribute("roleAssociated"+expRoleId);
        if(!roleAssociateId.trim().equals("")) {
          metaAss.insertCoupleRole(new Integer(expRoleId), new Integer(roleAssociateId));
          // insert into user associations
          try{
            Object existingRoleObj = impManager.getExistingObject(new Integer(roleAssociateId), SbiExtRoles.class);
            Object exportedRoleObj = impManager.getExportedObject(new Integer(expRoleId), SbiExtRoles.class);
            if( (existingRoleObj!=null) && (exportedRoleObj!=null) ) {
              SbiExtRoles existingRole = (SbiExtRoles)existingRoleObj;
              SbiExtRoles exportedRole = (SbiExtRoles)exportedRoleObj;
              UserAssociationsKeeper usrAssKeep = impManager.getUserAssociation();
              String expRoleName = exportedRole.getName();
              String exiRoleName = existingRole.getName();
              usrAssKeep.recordRoleAssociation(expRoleName, exiRoleName);
            } else {
              throw new Exception("hibernate object of existing or exported role not recovered");
            }
          } catch (Exception e) {
            logger.error("Error while recording user role association", e);
          }
        }
      }
      }
      // check role associations
      impManager.checkRoleReferences(metaAss.getRoleIDAssociation());
   
      if (impManager.getImpAssMode().equals(IImportManager.IMPORT_ASS_PREDEFINED_MODE) && !impManager.associateAllExportedEnginesByUserAssociation()) {
      response.setAttribute(ImportExportConstants.PUBLISHER_NAME, "ImportExportSkipEngineAssociation");
    } else {
      // get the existing and exported engines
      // move to jsp
            List exportedEngines = impManager.getExportedEngines();
      IEngineDAO engineDAO = DAOFactory.getEngineDAO();
      List currentEngines = engineDAO.loadAllEngines();
      response.setAttribute(ImportExportConstants.LIST_EXPORTED_ENGINES, exportedEngines);
      response.setAttribute(ImportExportConstants.LIST_CURRENT_ENGINES, currentEngines);
      response.setAttribute(ImportExportConstants.PUBLISHER_NAME, "ImportExportEngineAssociation");
    }
  } catch (EMFUserError emfue) {
      if (impManager != null)
    impManager.stopImport();
      throw emfue;
  } catch (SourceBeanException sbe) {
    logger.error("Error: " + sbe);
      if (impManager != null)
      impManager.stopImport();
    throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
  } catch (Exception e) {
      logger.error("Error while getting role association ", e);
      if (impManager != null)
    impManager.stopImport();
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
  } finally {
      if (impManager != null)
      impManager.closeSession();
      logger.debug("OUT");
  }
    }
View Full Code Here

     *                Spago SourceBean response
     * @throws EMFUserError
     */
    private void associateEngines(SourceBean request, SourceBean response) throws EMFUserError {
  logger.debug("IN");
  IImportManager impManager = null;
  try {
    RequestContainer requestContainer = this.getRequestContainer();
    SessionContainer session = requestContainer.getSessionContainer();
    impManager = (IImportManager)session.getAttribute(ImportExportConstants.IMPORT_MANAGER);
    impManager.openSession();
    MetadataAssociations metaAss = impManager.getMetadataAssociation();
    if (!request.containsAttribute("ENGINES_ASSOCIATIONS_SKIPPED")) {
      List expEngineIds = request.getAttributeAsList("expEngine");
      Iterator iterExpEngines = expEngineIds.iterator();
      while(iterExpEngines.hasNext()){
        String expEngineId = (String)iterExpEngines.next();
        String engineAssociateId = (String)request.getAttribute("engineAssociated"+expEngineId);
        if(!engineAssociateId.trim().equals("")) {
          metaAss.insertCoupleEngine(new Integer(expEngineId), new Integer(engineAssociateId));
          // insert into user associations
          try{
            Object existingEngineObj = impManager.getExistingObject(new Integer(engineAssociateId), SbiEngines.class);
            Object exportedEngineObj = impManager.getExportedObject(new Integer(expEngineId), SbiEngines.class);
            if( (existingEngineObj!=null) && (exportedEngineObj!=null) ) {
              SbiEngines existingEngine = (SbiEngines)existingEngineObj;
              SbiEngines exportedEngine = (SbiEngines)exportedEngineObj;
              impManager.getUserAssociation().recordEngineAssociation(exportedEngine.getLabel(), existingEngine.getLabel());
            } else {
              throw new Exception("hibernate object of existing or exported engine not recovered");
            }
          } catch (Exception e) {
            logger.warn("Error while recording user engine association", e);
          }
        }
      }
    }
   
    if (impManager.getImpAssMode().equals(IImportManager.IMPORT_ASS_PREDEFINED_MODE) && !impManager.associateAllExportedDataSourcesByUserAssociation()) {
        impManager.checkExistingMetadata();
        if (metaAss.isEmpty()) {
          response.setAttribute(ImportExportConstants.PUBLISHER_NAME,
            "ImportExportSkipExistingMetadataAssociation");
        } else {
          response.setAttribute(ImportExportConstants.PUBLISHER_NAME,
            "ImportExportExistingMetadataAssociation");
        }
    } else {
      // move to jsp
      List exportedDatasources = impManager.getExportedDataSources();
      IDataSourceDAO dsDao=DAOFactory.getDataSourceDAO();
      List currentDatasources = dsDao.loadAllDataSources();
      response.setAttribute(ImportExportConstants.LIST_EXPORTED_DATA_SOURCES, exportedDatasources);
      response.setAttribute(ImportExportConstants.LIST_CURRENT_DATA_SOURCES, currentDatasources);
      response.setAttribute(ImportExportConstants.PUBLISHER_NAME, "ImportExportDataSourceAssociation");
    }

  } catch (EMFUserError emfue) {
      if (impManager != null)
    impManager.stopImport();
      throw emfue;
  } catch (SourceBeanException sbe) {
    logger.error("Error: " + sbe);
      if (impManager != null)
      impManager.stopImport();
    throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
  } catch (Exception e) {
      logger.error("Error while getting engine association ", e);
      if (impManager != null)
    impManager.stopImport();
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
  } finally {
      if (impManager != null)
      impManager.closeSession();
      logger.debug("OUT");
  }
    }
View Full Code Here

     *                Spago SourceBean response
     * @throws EMFUserError
     */
    private void associateDataSources(SourceBean request, SourceBean response) throws EMFUserError {
  logger.debug("IN");
  IImportManager impManager = null;
  try {
    RequestContainer requestContainer = this.getRequestContainer();
    SessionContainer session = requestContainer.getSessionContainer();
    impManager = (IImportManager)session.getAttribute(ImportExportConstants.IMPORT_MANAGER);
    impManager.openSession();
    MetadataAssociations metaAss = impManager.getMetadataAssociation();
    List expDsIds = request.getAttributeAsList("expConn");
    Iterator iterExpConn = expDsIds.iterator();
    while(iterExpConn.hasNext()){
      String expDsIdStr= (String)iterExpConn.next();
      String assDsIds = (String)request.getAttribute("connAssociated"+ expDsIdStr);
      if(!assDsIds.equals("")) {
        metaAss.insertCoupleDataSources(new Integer(expDsIdStr), new Integer(assDsIds));
        Object existingDSObj = impManager.getExistingObject(new Integer(assDsIds), SbiDataSource.class);
        Object exportedDSObj = impManager.getExportedObject(new Integer(expDsIdStr), SbiDataSource.class);
        if (existingDSObj != null && exportedDSObj != null) {
          SbiDataSource existingDataSource = (SbiDataSource)existingDSObj;
          SbiDataSource exportedDataSource = (SbiDataSource)exportedDSObj;
          impManager.getUserAssociation().recordDataSourceAssociation(exportedDataSource.getLabel(), existingDataSource.getLabel());
          impManager.getUserAssociation().recordDataSourceAssociation(Integer.valueOf(exportedDataSource.getDsId()), Integer.valueOf(existingDataSource.getDsId()));
        }
      }
//      else {
//        logger.error("Exported data source " +expConnName+" is not associated to a current " +
//                              "system data source");
//        List exportedDataSources = impManager.getExportedDataSources();
//        Map currentDataSources = getCurrentDataSourcesInfo();
//        response.setAttribute(ImportExportConstants.LIST_EXPORTED_DATA_SOURCES, exportedDataSources);
//        response.setAttribute(ImportExportConstants.MAP_CURRENT_DATA_SOURCES, currentDataSources);
//        response.setAttribute(ImportExportConstants.PUBLISHER_NAME, "ImportExportDataSourceAssociation");
//        throw new EMFValidationError(EMFErrorSeverity.ERROR, "connAssociated"+ expConnName, "sbi.impexp.datasourceNotAssociated");
//      }
    }
   
      impManager.checkExistingMetadata();
      if (metaAss.isEmpty()) {
        response.setAttribute(ImportExportConstants.PUBLISHER_NAME,
          "ImportExportSkipExistingMetadataAssociation");
      } else {
        response.setAttribute(ImportExportConstants.PUBLISHER_NAME,
          "ImportExportExistingMetadataAssociation");
      }
  } catch (EMFValidationError emfve) {
      throw emfve;
  } catch (EMFUserError emfue) {
      if (impManager != null)
    impManager.stopImport();
      throw emfue;
  } catch (SourceBeanException sbe) {
      logger.error("Cannot populate response ", sbe);
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
  } catch (Exception e) {
      logger.error("Error while getting  association ", e);
      if (impManager != null)
    impManager.stopImport();
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8003", "component_impexp_messages");
  } finally {
      if (impManager != null)
      impManager.closeSession();
      logger.debug("OUT");
  }

    }
View Full Code Here

     * @param response Spago SourceBean response
     * @throws EMFUserError
     */
    private void associateMetadata(SourceBean request, SourceBean response) throws EMFUserError {
  logger.debug("IN");
  IImportManager impManager = null;
  try {
    String overwriteStr = (String) request.getAttribute("overwrite");
    boolean overwrite = false;
    try {
      overwrite = Boolean.parseBoolean(overwriteStr);
    } catch (Exception e) {
      logger.warn("Overwrite parameter is not a valid boolean; default value (that is false) will be considered.");
    }
      RequestContainer requestContainer = this.getRequestContainer();
      SessionContainer session = requestContainer.getSessionContainer();
      impManager = (IImportManager) session.getAttribute(ImportExportConstants.IMPORT_MANAGER);
      impManager.openSession();
      impManager.importObjects(overwrite, session);
      ImportResultInfo iri = impManager.commitAllChanges();
      response.setAttribute(ImportExportConstants.IMPORT_RESULT_INFO, iri);
    AssociationFile assFile = impManager.getAssociationFile();
    if (assFile != null) response.setAttribute(ImportExportConstants.IMPORT_ASSOCIATION_FILE, assFile);
  } catch (EMFUserError emfue) {
      if (impManager != null)
    impManager.stopImport();
      throw emfue;
  } catch (SourceBeanException sbe) {
      logger.error("Cannot populate response ", sbe);
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
  } catch (Exception e) {
      if (impManager != null)
    impManager.stopImport();
      logger.error("error after data source association ", e);
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
  } finally {
      if (impManager != null)
      impManager.closeSession();
      logger.debug("OUT");
  }
    }
View Full Code Here

     */
    private void exitImport(SourceBean request, SourceBean response) throws EMFUserError {
  logger.debug("IN");
  RequestContainer requestContainer = this.getRequestContainer();
  SessionContainer session = requestContainer.getSessionContainer();
  IImportManager impManager = (IImportManager) session.getAttribute(ImportExportConstants.IMPORT_MANAGER);
  impManager.stopImport();
  try {
      response.setAttribute(ImportExportConstants.PUBLISHER_NAME, "ImportExportLoopbackStopImport");
  } catch (SourceBeanException sbe) {
      logger.error("Error while populating response source bean ", sbe);
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
View Full Code Here

     *                Spago SourceBean response
     * @throws EMFUserError
     */
    private void backEngineAssociation(SourceBean request, SourceBean response) throws EMFUserError {
  logger.debug("IN");
  IImportManager impManager = null;
  try {
    RequestContainer requestContainer = this.getRequestContainer();
    SessionContainer session = requestContainer.getSessionContainer();
    impManager = (IImportManager) session.getAttribute(ImportExportConstants.IMPORT_MANAGER);
    impManager.openSession();
    List exportedRoles = impManager.getExportedRoles();
    IRoleDAO roleDAO = DAOFactory.getRoleDAO();
    List currentRoles = roleDAO.loadAllRoles();
      response.setAttribute(ImportExportConstants.LIST_EXPORTED_ROLES, exportedRoles);
      response.setAttribute(ImportExportConstants.LIST_CURRENT_ROLES, currentRoles);
      response.setAttribute(ImportExportConstants.PUBLISHER_NAME, "ImportExportRoleAssociation");
  } catch (SourceBeanException sbe) {
      logger.error("Error while populating response source bean ", sbe);
      impManager.stopImport();
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
  } finally {
    if (impManager != null)
      impManager.closeSession();
      logger.debug("OUT");
  }
    }
View Full Code Here

     *                Spago SourceBean response
     * @throws EMFUserError
     */
    private void backDataSourceAssociation(SourceBean request, SourceBean response) throws EMFUserError {
  logger.debug("IN");
  IImportManager impManager = null;
  try {
    RequestContainer requestContainer = this.getRequestContainer();
    SessionContainer session = requestContainer.getSessionContainer();
    impManager = (IImportManager) session.getAttribute(ImportExportConstants.IMPORT_MANAGER);
    impManager.openSession();
    List exportedEngines = impManager.getExportedEngines();
    IEngineDAO engineDAO = DAOFactory.getEngineDAO();
    List currentEngines = engineDAO.loadAllEngines();
      response.setAttribute(ImportExportConstants.LIST_EXPORTED_ENGINES, exportedEngines);
      response.setAttribute(ImportExportConstants.LIST_CURRENT_ENGINES, currentEngines);
      response.setAttribute(ImportExportConstants.PUBLISHER_NAME, "ImportExportEngineAssociation");
  } catch (SourceBeanException sbe) {
      logger.error("Error while populating response source bean ", sbe);
      impManager.stopImport();
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
  } finally {
    if (impManager != null)
      impManager.closeSession();
      logger.debug("OUT");
  }
    }
View Full Code Here

     *                Spago SourceBean response
     * @throws EMFUserError
     */
    private void backMetadataAssociation(SourceBean request, SourceBean response) throws EMFUserError {
  logger.debug("IN");
  IImportManager impManager = null;
  try {
    RequestContainer requestContainer = this.getRequestContainer();
    SessionContainer session = requestContainer.getSessionContainer();
    impManager = (IImportManager) session.getAttribute(ImportExportConstants.IMPORT_MANAGER);
    impManager.openSession();
    List exportedDataSources = impManager.getExportedDataSources();
    IDataSourceDAO dsDao=DAOFactory.getDataSourceDAO();
    List currentDatasources = dsDao.loadAllDataSources();
      response.setAttribute(ImportExportConstants.LIST_EXPORTED_DATA_SOURCES, exportedDataSources);
      response.setAttribute(ImportExportConstants.LIST_CURRENT_DATA_SOURCES, currentDatasources);
      response.setAttribute(ImportExportConstants.PUBLISHER_NAME, "ImportExportDataSourceAssociation");
  } catch (SourceBeanException sbe) {
      logger.error("Error while populating response source bean ", sbe);
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
  } finally {
    if (impManager != null)
      impManager.closeSession();
      logger.debug("OUT");
  }
    }
View Full Code Here

TOP

Related Classes of it.eng.spagobi.tools.importexport.IImportManager

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.