Package org.libreplan.business.resources.entities

Examples of org.libreplan.business.resources.entities.Resource


        Iterator<Class<?>> iteratorClass = mapResources.keySet().iterator();
        while (iteratorClass.hasNext() && getListMatching().size() < 10) {
            Class<?> className = iteratorClass.next();
            for (int i = 0; getListMatching().size() < 10
                    && i < mapResources.get(className).size(); i++) {
                Resource resource = mapResources.get(className).get(i);
                addResource(className, resource);
            }
        }
        return getListMatching();
    }
View Full Code Here


        Iterator<Class<?>> iteratorClass = mapResources.keySet().iterator();
        while (iteratorClass.hasNext() && getListMatching().size() < 10) {
            Class<?> className = iteratorClass.next();
            for (int i = 0; getListMatching().size() < 10
                    && i < mapResources.get(className).size(); i++) {
                Resource resource = mapResources.get(className).get(i);
                addResource(className, resource);
            }
        }
        return getListMatching();
    }
View Full Code Here

        return WorkReportType.create(UUID.randomUUID().toString(), UUID
                .randomUUID().toString());
    }

    public WorkReportLine createValidWorkReportLine() {
        Resource resource = createValidWorker();

        WorkReport workReport = createValidWorkReport();
        workReportDAO.save(workReport);

        WorkReportLine workReportLine = WorkReportLine.create(workReport);
View Full Code Here

        return resourceDAO.findAll();
    }

    @Override
    public boolean entryMatchesText(Object obj, String text) {
        Resource resource = (Resource) obj;
        text = StringUtils.trim(text.toLowerCase());
        return checkContainsText(resource.getShortDescription(), text);
    }
View Full Code Here

        return original.toLowerCase().contains(text);
    }

    @Override
    public String objectToString(Object obj) {
        Resource resource = (Resource) obj;
        return resource.getShortDescription();
    }
View Full Code Here

TOP

Related Classes of org.libreplan.business.resources.entities.Resource

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.