Package org.jboss.dashboard.ui.formatters

Examples of org.jboss.dashboard.ui.formatters.FactoryURL


        if (!getFieldErrors().isEmpty()) {
            return;
        }
        DataSourceEntry dSource = getDataSourceManager().getDataSourceEntry(getName());
        if (dSource != null && !isEDIT_MODE()) {
            addFieldError(new FactoryURL(getBeanName(), "name"), null, getName());
            return;
        }

        // Edit the DataSource
        if (isEDIT_MODE()) {
View Full Code Here



    private void validate(String type) {
        clearFieldErrors();
        if (getName() == null || "".equals(getName())) {
            addFieldError(new FactoryURL(getBeanName(), "name"), null, getName());
        }

        if (type == null || "".equals(type)) {
            addFieldError(new FactoryURL(getBeanName(), "jdbc"), null, getType());
            addFieldError(new FactoryURL(getBeanName(), "jndi"), null, getType());
        } else {
            if (type.equals(CUSTOM_TYPE)) {

                if (getDriverClass() == null || "".equals(getDriverClass()))
                    addFieldError(new FactoryURL(getBeanName(), "driverClass"), null, getUrl());

                if (getUrl() == null || "".equals(getUrl()))
                    addFieldError(new FactoryURL(getBeanName(), "url"), null, getUrl());

                if (getUserName() == null || "".equals(getUserName()))
                    addFieldError(new FactoryURL(getBeanName(), "userName"), null, getUserName());

            } else if (type.equals(JNDI_TYPE)) {

                if (getJndiPath() == null || "".equals(getJndiPath()))
                    addFieldError(new FactoryURL(getBeanName(), "jndiPath"), null, getJndiPath());

            }
        }
        if (getTestQuery() == null || "".equals(getTestQuery()))
            addFieldError(new FactoryURL(getBeanName(), "testQuery"), null, getTestQuery());

    }
View Full Code Here

            addFieldError(new FactoryURL(getBeanName(), "testQuery"), null, getTestQuery());

    }

    private void setJndiStatusError() {
        addFieldError(new FactoryURL(getBeanName(), "jndi"), null, getType());
        setType(JNDI_TYPE);
     }
View Full Code Here

        addFieldError(new FactoryURL(getBeanName(), "jndi"), null, getType());
        setType(JNDI_TYPE);
     }

    private void setJdbcStatusError() {
        addFieldError(new FactoryURL(getBeanName(), "jdbc"), null, getType());
        setType(CUSTOM_TYPE);
    }
View Full Code Here

        if (!getFieldErrors().isEmpty()) {
            return;
        }
        DataSourceEntry dSource = getDataSourceManager().getDataSourceEntry(getName());
        if (dSource != null && !isEDIT_MODE()) {
            addFieldError(new FactoryURL(getComponentName(), "name"), null, getName());
            return;
        }

        // Edit the DataSource
        if (isEDIT_MODE()) {
View Full Code Here


    private void validate(String type) {
        clearFieldErrors();
        if (getName() == null || "".equals(getName())) {
            addFieldError(new FactoryURL(getComponentName(), "name"), null, getName());
        }

        if (type == null || "".equals(type)) {
            addFieldError(new FactoryURL(getComponentName(), "jdbc"), null, getType());
            addFieldError(new FactoryURL(getComponentName(), "jndi"), null, getType());
        } else {
            if (type.equals(CUSTOM_TYPE)) {

                if (getDriverClass() == null || "".equals(getDriverClass()))
                    addFieldError(new FactoryURL(getComponentName(), "driverClass"), null, getUrl());

                if (getUrl() == null || "".equals(getUrl()))
                    addFieldError(new FactoryURL(getComponentName(), "url"), null, getUrl());

                if (getUserName() == null || "".equals(getUserName()))
                    addFieldError(new FactoryURL(getComponentName(), "userName"), null, getUserName());

                // if (getPassword() == null || "".equals(getPassword()))
                //    addFieldError(new FactoryURL(getComponentName(), "password"), null, getPassword());

            } else if (type.equals(JNDI_TYPE)) {

                if (getJndiPath() == null || "".equals(getJndiPath()))
                    addFieldError(new FactoryURL(getComponentName(), "jndiPath"), null, getJndiPath());

            }
        }
        if (getTestQuery() == null || "".equals(getTestQuery()))
            addFieldError(new FactoryURL(getComponentName(), "testQuery"), null, getTestQuery());

    }
View Full Code Here

            addFieldError(new FactoryURL(getComponentName(), "testQuery"), null, getTestQuery());

    }

    private void setJndiStatusError() {
        addFieldError(new FactoryURL(getComponentName(), "jndi"), null, getType());
        setType(JNDI_TYPE);
     }
View Full Code Here

        addFieldError(new FactoryURL(getComponentName(), "jndi"), null, getType());
        setType(JNDI_TYPE);
     }

    private void setJdbcStatusError() {
        addFieldError(new FactoryURL(getComponentName(), "jdbc"), null, getType());
        setType(CUSTOM_TYPE);
    }
View Full Code Here

        if (!getFieldErrors().isEmpty()) {
            return;
        }
        DataSourceEntry dSource = getDataSourceManager().getDataSourceEntry(getName());
        if (dSource != null && !isEDIT_MODE()) {
            addFieldError(new FactoryURL(getBeanName(), "name"), null, getName());
            return;
        }

        // Edit the DataSource
        if (isEDIT_MODE()) {
View Full Code Here


    private void validate(String type) {
        clearFieldErrors();
        if (getName() == null || "".equals(getName())) {
            addFieldError(new FactoryURL(getBeanName(), "name"), null, getName());
        }

        if (type == null || "".equals(type)) {
            addFieldError(new FactoryURL(getBeanName(), "jdbc"), null, getType());
            addFieldError(new FactoryURL(getBeanName(), "jndi"), null, getType());
        } else {
            if (type.equals(CUSTOM_TYPE)) {

                if (getDriverClass() == null || "".equals(getDriverClass()))
                    addFieldError(new FactoryURL(getBeanName(), "driverClass"), null, getUrl());

                if (getUrl() == null || "".equals(getUrl()))
                    addFieldError(new FactoryURL(getBeanName(), "url"), null, getUrl());

                if (getUserName() == null || "".equals(getUserName()))
                    addFieldError(new FactoryURL(getBeanName(), "userName"), null, getUserName());

            } else if (type.equals(JNDI_TYPE)) {

                if (getJndiPath() == null || "".equals(getJndiPath()))
                    addFieldError(new FactoryURL(getBeanName(), "jndiPath"), null, getJndiPath());

            }
        }
        if (getTestQuery() == null || "".equals(getTestQuery()))
            addFieldError(new FactoryURL(getBeanName(), "testQuery"), null, getTestQuery());

    }
View Full Code Here

TOP

Related Classes of org.jboss.dashboard.ui.formatters.FactoryURL

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.