Package org.fenixedu.spaces.domain

Examples of org.fenixedu.spaces.domain.SpaceClassification


    }

    private static void createAcademicSpaceClassifications() {
        LocalizedString.Builder campusNameBuilder = new LocalizedString.Builder();
        CoreConfiguration.supportedLocales().stream().forEach(l -> campusNameBuilder.with(l, "Campus"));
        new SpaceClassification("1", campusNameBuilder.build());
    }
View Full Code Here


                }
            } else {
                row.setCell(" ");
                row.setCell(" ");
            }
            SpaceClassification classification = space.getClassification();
            if (classification == null) {
                row.setCell(" ");
            } else {
                row.setCell(classification.getAbsoluteCode() + " " + classification.getName().getContent());
            }

            for (int i = 0; i < WEEKDAY_COUNT; i++) {
                for (int j = 0; j < HOUR_COUNT; j++) {
                    row.setCell(Boolean.toString(slots[i][j]));
View Full Code Here

        Set<Space> result = new HashSet<Space>();
        FindSpacesBean bean = (FindSpacesBean) source;
        Space campus = bean.getCampus();

        SpaceClassification building = SpaceClassification.getByName("Building");

        if (campus != null) {
            for (Space child : campus.getChildren()) {
                if (child.getClassification().equals(building)) {
                    result.add(child);
View Full Code Here

    public static boolean isRoom(Space space) {
        return !(isCampus(space) || isBuilding(space) || isFloor(space) || isRoomSubdivision(space));
    }

    public static boolean isLaboratory(Space space) {
        SpaceClassification classification = space.getClassification();
        return classification.equals(SpaceClassification.get(LABORATORY_FOR_EDUCATION_CODE))
                || classification.equals(SpaceClassification.get(LABORATORY_FOR_RESEARCHER_CODE));
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.spaces.domain.SpaceClassification

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.