Package org.jtalks.jcommune.plugin.api.exceptions

Examples of org.jtalks.jcommune.plugin.api.exceptions.PluginConfigurationException


                password = property.getValue();
            }
        }
        if (url == null || url.isEmpty()) {
            // this should be returned as a map, but this mechanism should be implemented in the plugin API first
            throw new PluginConfigurationException("Can't apply configuration: Url should not be null.");
        } else if (!validateUrl(url)) {
            throw new PluginConfigurationException("Can't apply configuration: Incorrect format for Url value.");
        }
        service = new PoulpeAuthService(url, login, password);
        pluginProperties = properties;
        return new HashMap<>();
    }
View Full Code Here


            order = properties.get(0).getValue() == null ? DEFAULT_ORDER_VALUE
                    : Integer.parseInt(properties.get(0).getValue());
            properties.get(0).setHint(ORDER_HINT);
            return new HashMap<>();
        } else {
            throw new PluginConfigurationException(
                    "Can't apply configuration: incorrect parameters count or order not found");
        }
    }
View Full Code Here

                LOGGER.error(property.getValue() + " is not valid value for property " + property.getName(), ex);
            }
        }
        if (width < 1 || height < 1 || length < 1 || possibleSymbols.length() < 1) {
            // this should be returned as a map, but this mechanism should be implemented in the plugin API first
            throw new PluginConfigurationException(
                    "Can't apply configuration: Width, height, length and possible symbols properties should not be empty.");
        }
        service = new KaptchaPluginService(width, height, length, possibleSymbols);
        pluginProperties = properties;
        return new HashMap<>();
View Full Code Here

TOP

Related Classes of org.jtalks.jcommune.plugin.api.exceptions.PluginConfigurationException

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.