Package org.fenixedu.academic.util

Examples of org.fenixedu.academic.util.EnrolmentGroupPolicyType


    public StudentGroupService() {
    }

    @Atomic
    public Grouping createOrEditGrouping(ProjectGroupBean bean, ExecutionCourse executionCourse) {
        EnrolmentGroupPolicyType enrolmentPolicyType =
                bean.getAtomicEnrolmentPolicy() != null && bean.getAtomicEnrolmentPolicy() ? new EnrolmentGroupPolicyType(1) : new EnrolmentGroupPolicyType(
                        2);
        Grouping grouping;
        ShiftType shiftType =
                bean.getShiftType() == null || bean.getShiftType().isEmpty() ? null : ShiftType.valueOf(bean.getShiftType());
        if (executionCourse.getGroupingByName(bean.getName()) == null) {
View Full Code Here


    @Override
    public IGroupEnrolmentStrategy getGroupEnrolmentStrategyInstance(Grouping grouping) {

        IGroupEnrolmentStrategy strategyInstance = null;
        EnrolmentGroupPolicyType policy = grouping.getEnrolmentPolicy();

        if (policy == null) {
            throw new IllegalArgumentException("Must initialize Group Properties!");
        }

        if (policy.equals(new EnrolmentGroupPolicyType(1))) {
            strategyInstance = new AtomicGroupEnrolmentStrategy();
        } else if (policy.equals(new EnrolmentGroupPolicyType(2))) {
            strategyInstance = new IndividualGroupEnrolmentStrategy();
        }
        return strategyInstance;
    }
View Full Code Here

            }
        }
        final InfoStudent infoStudent = getInfoStudentFromStudent(userStudent);
        infoSiteStudentsWithoutGroup.setInfoUserStudent(infoStudent);

        if (grouping.getEnrolmentPolicy().equals(new EnrolmentGroupPolicyType(2))) {
            return infoSiteStudentsWithoutGroup;
        }

        final Set<Attends> attendsWithOutGroupsSet = new HashSet<Attends>(attends);
        for (final Iterator iterator = allStudentsGroups.iterator(); iterator.hasNext();) {
View Full Code Here

        final DateTime start = grouping.getEnrolmentBeginDayDateDateTime();
        final DateTime end = grouping.getEnrolmentEndDayDateDateTime();
        this.enrolmentPeriod = new FenixInterval(start, end);

        final EnrolmentGroupPolicyType enrolmentPolicy = grouping.getEnrolmentPolicy();
        this.enrolmentPolicy = enrolmentPolicy == null ? null : enrolmentPolicy.getTypeFullName();

        this.minimumCapacity = grouping.getMinimumCapacity();
        this.maximumCapacity = grouping.getMaximumCapacity();
        this.idealCapacity = grouping.getIdealCapacity();
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.util.EnrolmentGroupPolicyType

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.