Examples of ConfigDAO


Examples of fr.soleil.salsa.dao.impl.ConfigDAO

        dao.deleteConfig(config);
    }

    @Override
    public void deleteDirectory(IDirectory directory) throws PersistenceException {
        ConfigDAO dao = new ConfigDAO();
        dao.deleteDirectory(directory);
    }
View Full Code Here

Examples of fr.soleil.salsa.dao.impl.ConfigDAO

        dao.deleteDirectory(directory);
    }

    @Override
    public IConfig<?> getConfigById(Integer id) throws ScanNotFoundException {
        ConfigDAO dao = new ConfigDAO();
        return dao.getConfigById(id);
    }
View Full Code Here

Examples of fr.soleil.salsa.dao.impl.ConfigDAO

        return dao.getConfigById(id);
    }

    @Override
    public List<IDirectory> getConfigDirectories() {
        ConfigDAO dao = new ConfigDAO();
        return dao.getConfigDirectories();
    }
View Full Code Here

Examples of fr.soleil.salsa.dao.impl.ConfigDAO

        return dao.getConfigDirectories();
    }

    @Override
    public List<IConfig<?>> getConfigList() {
        ConfigDAO dao = new ConfigDAO();
        return dao.getConfigList();
    }
View Full Code Here

Examples of fr.soleil.salsa.dao.impl.ConfigDAO

        return dao.getConfigList();
    }

    @Override
    public IDirectory getRootDirectory() {
        ConfigDAO dao = new ConfigDAO();
        return dao.getRootDirectory();
    }
View Full Code Here

Examples of fr.soleil.salsa.dao.impl.ConfigDAO

    }

    @Override
    public IConfig<?> saveConfig(IConfig<?> config) throws PersistenceException,
            ScanNotFoundException {
        ConfigDAO dao = new ConfigDAO();
        return dao.saveConfig(config);
    }
View Full Code Here

Examples of fr.soleil.salsa.dao.impl.ConfigDAO

        return dao.saveConfig(config);
    }

    @Override
    public IDirectory saveDirectory(IDirectory directory) throws PersistenceException {
        ConfigDAO dao = new ConfigDAO();
        return dao.saveDirectory(directory);
    }
View Full Code Here

Examples of fr.soleil.salsa.dao.impl.ConfigDAO

     * @throws SalsaScanConfigurationException
     */
    @Override
    public IConfig<?> startScan(String path, IContext context) throws SalsaDeviceException,
            ScanNotFoundException, SalsaScanConfigurationException {
        ConfigDAO dao = new ConfigDAO();
        IConfig<?> c = dao.getConfigByPath(path);
        startScan(c, context);
        return c;

    }
View Full Code Here

Examples of hermes.impl.ConfigDAO

            ResultSet rs = stmt.executeQuery(query);
            while (rs.next()) {
                String tableName = rs.getString(1);
                // tableName = getActualTopicName(tableName);
                LOG.debug("Fetching Topic information " + tableName);
                ConfigDAO configDao = new ConfigDAOImpl();
                DestinationConfig dc = configDao.createDestinationConfig(
                        tableName, Domain.TOPIC);
                dc.setDurable(false);
                dc.setName(tableName);
                dc.setShortName(tableName);
                String hostname = InetAddress.getLocalHost().getHostName();
View Full Code Here

Examples of org.jSyncManager.SJS.Adapters.SMTPServer.Config.ConfigDAO

   /**
    * Load configuration values, setup mailbox
    */
   public void init() {
      DAOFactory factory = DAOFactory.instance(DAOFactory.DEFAULT);
      ConfigDAO configDAO = factory.getConfigDAO();
     
      // possible locations for smtp_server.xml
      String propertyfile = System.getProperty("sjs.smtpserver.propertyfile");
      File option1 = null;
      if (propertyfile != null) {
         option1 = new File(propertyfile);
      }
      File option2 = new File("../property_files/smtp_server.xml");
      File option3 = new File("~/.sjs/smtp_server.xml");
      File option4 = new File("./property_files/smtp_server.xml");

      // determine which location is correct, else throw exception
      String smtpServerXML = "";
      if (option1 != null && option1.exists()) {
         try {
      smtpServerXML = option1.getCanonicalPath();
         } catch (IOException e) {
            throw new RuntimeException("Cannot find smtp_server.xml!");
         }
      } else if (option2 != null && option2.exists()) {
        smtpServerXML = "../property_files/smtp_server.xml";
      } else if (option3 != null && option3.exists()) {
        smtpServerXML = "~/.sjs/smtp_server.xml";
      } else if (option4 != null && option4.exists()) {
        smtpServerXML = "./property_files/smtp_server.xml";
      } else {
          throw new RuntimeException("Cannot find smtp_server.xml!");
      }
     
      // load the xml
      config = configDAO.loadConfig(smtpServerXML);

      // on error, throw new exception
      if (config == null) {
         throw new RuntimeException("Error retrieving smtp_server.xml!");
      }   // end if
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.