Package com.groupon.odo.proxylib.models

Examples of com.groupon.odo.proxylib.models.Plugin


        if (configurations == null)
            return new Plugin[0];

        for (Configuration config : configurations) {
            Plugin plugin = new Plugin();
            plugin.setId(config.getId());
            plugin.setPath(config.getValue());

            File path = new File(plugin.getPath());
            if (path.isDirectory()) {
                plugin.setStatus(Constants.PLUGIN_STATUS_VALID);
                plugin.setStatusMessage("Valid");
            } else {
                plugin.setStatus(Constants.PLUGIN_STATUS_NOT_DIRECTORY);
                plugin.setStatusMessage("Path is not a directory");
            }

            if (!onlyValid || plugin.getStatus() == Constants.PLUGIN_STATUS_VALID)
                plugins.add(plugin);
        }

        return plugins.toArray(new Plugin[0]);
    }
View Full Code Here


    private ConfigurationService configurationService = ConfigurationService.getInstance();

    @RequestMapping(value = "/configuration", method = RequestMethod.GET)
    public String configurationPage(Model model) {
        logger.info("At configuration");
        model.addAttribute("addPath", new Plugin());
        return "configuration";
    }
View Full Code Here

TOP

Related Classes of com.groupon.odo.proxylib.models.Plugin

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.