Examples of DBUtil


Examples of org.apache.airavata.common.utils.DBUtil

        log.debug(stringBuilder.toString());
    }

    protected void initializeDatabaseLookup(String passwordColumn, String userTable, String userNameColumn) {

        DBUtil dbUtil = new DBUtil(getDatabaseURL(), getDatabaseUserName(), getDatabasePassword(), getDatabaseDriver());
        DataSource dataSource = dbUtil.getDataSource();
        jdbcRealm.setDataSource(dataSource);

        StringBuilder stringBuilder = new StringBuilder();

        stringBuilder.append("SELECT ").append(passwordColumn).append(" FROM ").append(userTable).append(" WHERE ")
View Full Code Here

Examples of org.apache.airavata.common.utils.DBUtil

    private CertificateCredentialWriter certificateCredentialWriter;

    public void init() throws ServletException {

        DBUtil dbUtil;

        try {
            dbUtil = DBUtil.getDBUtil();
        } catch (Exception e) {
            throw new ServletException("Error initializing database operations.", e);
View Full Code Here

Examples of org.apache.airavata.common.utils.DBUtil

            String dbUser = ServerSettings.getCredentialStoreDBUser();
            String password = ServerSettings.getCredentialStoreDBPassword();
            String dbUrl = ServerSettings.getCredentialStoreDBURL();
            String driver = ServerSettings.getCredentialStoreDBDriver();

            DBUtil dbUtil = new DBUtil(dbUrl, dbUser, password, driver);

            credentialReader = CredentialReaderFactory.createCredentialStoreReader(dbUtil);

        } catch (Exception e) {
            credentialReader = null;
View Full Code Here

Examples of org.apache.airavata.common.utils.DBUtil

    public LocalUserStore(ServletContext servletContext) throws Exception {
        // Properties properties = WebAppUtil.getAiravataProperties(servletContext);

        hashMethod = ServerSettings.getSetting("default.registry.password.hash.method");

        dbUtil = new DBUtil(ServerSettings.getSetting("registry.jdbc.url"),
                ServerSettings.getSetting("registry.jdbc.user"),
                ServerSettings.getSetting("registry.jdbc.password"),
                ServerSettings.getSetting("registry.jdbc.driver"));

    }
View Full Code Here

Examples of org.apache.airavata.common.utils.DBUtil

    private NotifierBootstrap notifierBootstrap;

    public void init() throws ServletException {

        DBUtil dbUtil;

        try {
            AiravataUtils.setExecutionAsServer();
            dbUtil = DBUtil.getCredentialStoreDBUtil();
        } catch (Exception e) {
View Full Code Here

Examples of org.apache.airavata.common.utils.DBUtil

      ClassNotFoundException, InstantiationException {
    String jdbcUrl = ServerSettings.getCredentialStoreDBURL();
    String jdbcUsr = ServerSettings.getCredentialStoreDBUser();
    String jdbcPass = ServerSettings.getCredentialStoreDBPassword();
    String driver = ServerSettings.getCredentialStoreDBDriver();
    return new CredentialReaderImpl(new DBUtil(jdbcUrl, jdbcUsr, jdbcPass,
        driver));
  }
View Full Code Here

Examples of org.apache.airavata.common.utils.DBUtil

        try {
            String jdbcUrl = ServerSettings.getCredentialStoreDBURL();
            String jdbcUsr = ServerSettings.getCredentialStoreDBUser();
            String jdbcPass = ServerSettings.getCredentialStoreDBPassword();
            String driver = ServerSettings.getCredentialStoreDBDriver();
          return new DBUtil(jdbcUrl,jdbcUsr,jdbcPass,driver);
        } catch (InstantiationException e) {
          logger.error("Error while accesing registrty settings ", e);
          throw new RegException("Error while accesing registrty settings ", e);
        } catch (IllegalAccessException e) {
          logger.error("Error while reading registrty settings ", e);
View Full Code Here

Examples of org.apache.airavata.common.utils.DBUtil

    private NotifierBootstrap notifierBootstrap;

    public void init() throws ServletException {

        DBUtil dbUtil;

        try {
            dbUtil = DBUtil.getCredentialStoreDBUtil();
        } catch (Exception e) {
            throw new ServletException("Error initializing database operations.", e);
View Full Code Here

Examples of org.apache.airavata.common.utils.DBUtil

    }

    private void initializeDatabaseLookup() throws RuntimeException {

        try {
            this.dbUtil = new DBUtil(getDatabaseURL(), getDatabaseUserName(), getDatabasePassword(), getDatabaseDriver());
        } catch (ClassNotFoundException e) {
            throw new RuntimeException("Error loading database driver. Driver class not found.", e);
        } catch (InstantiationException e) {
            throw new RuntimeException("Error loading database driver. Error instantiating driver object.", e);
        } catch (IllegalAccessException e) {
View Full Code Here

Examples of org.apache.airavata.common.utils.DBUtil

        log.debug(stringBuilder.toString());
    }

    protected void initializeDatabaseLookup(String passwordColumn, String userTable, String userNameColumn) throws IllegalAccessException, ClassNotFoundException, InstantiationException {

        DBUtil dbUtil = new DBUtil(getDatabaseURL(), getDatabaseUserName(), getDatabasePassword(), getDatabaseDriver());
        DataSource dataSource = dbUtil.getDataSource();
        jdbcRealm.setDataSource(dataSource);

        StringBuilder stringBuilder = new StringBuilder();

        stringBuilder.append("SELECT ").append(passwordColumn).append(" FROM ").append(userTable).append(" WHERE ")
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.