Package org.fedorahosted.cobbler

Examples of org.fedorahosted.cobbler.Finder


    private Map<String, Distro> getAllCobblerDistros() {
        Map<String, Distro> distros = new HashMap<String, Distro>();

        CobblerConnection conn = getConnection();
        Finder finder = Finder.getInstance();
        List<? extends CobblerObject> objs = finder.listItems(conn, ObjectType.DISTRO);
        for (CobblerObject obj : objs) {
            if (obj instanceof Distro) {
                distros.put(((Distro) obj).getName(), (Distro) obj);
            } else {
                log.error("Instead of a distro, Cobbler returned an object of type [" + obj.getClass() + "]: " + obj);
View Full Code Here


    private List<Profile> getAllCobblerProfiles() {
        List<Profile> profiles = new ArrayList<Profile>();

        CobblerConnection conn = getConnection();
        Finder finder = Finder.getInstance();
        List<? extends CobblerObject> objs = finder.listItems(conn, ObjectType.PROFILE);
        for (CobblerObject obj : objs) {
            if (obj instanceof Profile) {
                profiles.add((Profile) obj);
            } else {
                log.error("Instead of a profile, Cobbler returned an object of type [" + obj.getClass() + "]: " + obj);
View Full Code Here

TOP

Related Classes of org.fedorahosted.cobbler.Finder

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.