Package org.fenixedu.academic.domain.organizationalStructure

Examples of org.fenixedu.academic.domain.organizationalStructure.Party


    public ActionForward managePartyAuthorization(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {
        AuthorizationsManagementBean bean = getRenderedObject("authorizationsBean");
        if (bean == null) {
            Party party = getDomainObject(request, "partyId");
            bean = new AuthorizationsManagementBean();
            bean.setParty(party);
        }

        if (request.getParameter("removeNewAuthorization") != null) {
View Full Code Here


    public ActionForward removePartyFromGroup(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {

        AcademicAccessRule rule = getDomainObject(request, "groupId");
        Party party = getDomainObject(request, "partyId");

        revokePartyFromGroup(rule, party);

        return authorizations(mapping, actionForm, request, response);
    }
View Full Code Here

        LinkedList<Party> units = new LinkedList<Party>();
        units.add(party);

        while (!units.isEmpty()) {
            Party unit = units.removeFirst();

            people.addAll(unit.getActiveChildParties(AccountabilityTypeEnum.WORKING_CONTRACT, Person.class));

            units.addAll(unit.getActiveChildParties(AccountabilityTypeEnum.ORGANIZATIONAL_STRUCTURE, Unit.class));
        }

        return people;
    }
View Full Code Here

        }

        final Person person = !personsFoundByDocumentId.isEmpty() ? personsFoundByDocumentId.iterator().next() : null;

        if (!StringUtils.isEmpty(personBean.getFiscalCode())) {
            final Party partyFoundBySocialSecurityNumber =
                    PartySocialSecurityNumber.readPartyBySocialSecurityNumber(personBean.getFiscalCode());

            // Second case : person found by documentId and person found by
            // social
            // security number must be equal
View Full Code Here

    public SortedSet<String> getOrganizationalUnitsPresentation() {
        final SortedSet<String> organizationalUnits = new TreeSet<String>();
        for (final Accountability accountability : getParentsSet()) {
            if (isOrganizationalUnitsForPresentation(accountability)) {
                final Party party = accountability.getParentParty();
                organizationalUnits.add(party.getName());
            }
        }
        if (getStudent() != null) {
            for (final Registration registration : getStudent().getRegistrationsSet()) {
                if (registration.isActive()) {
View Full Code Here

        validateSocialSecurityNumber(result);
        return result;
    }

    private void validateSocialSecurityNumber(List<LabelFormatter> result) {
        final Party party = PartySocialSecurityNumber.readPartyBySocialSecurityNumber(socialSecurityNumber);
        final User user = User.findByUsername(username);
        if (party != null && party != user.getPerson()) {
            result.add(new LabelFormatter().appendLabel(
                    "error.candidacy.workflow.PersonalInformationForm.socialSecurityNumber.already.exists", "application"));
        }
View Full Code Here

        final IndividualCandidacyProcessBean bean = getIndividualCandidacyProcessBean();
        request.setAttribute(getIndividualCandidacyProcessBeanName(), bean);

        if (!StringUtils.isEmpty(bean.getPersonBean().getSocialSecurityNumber())) {
            Party existingSocialSecurityNumberParty =
                    Person.readByContributorNumber(bean.getPersonBean().getSocialSecurityNumber());

            if (existingSocialSecurityNumberParty != null
                    && existingSocialSecurityNumberParty != bean.getPersonBean().getPerson()) {
                // found person with same contributor number
View Full Code Here

        }
    }

    @Atomic
    public ActionForward remove(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
        Party party = FenixFramework.getDomainObject(request.getParameter("provider"));
        Collection<Party> externalScholarshipProvider = Bennu.getInstance().getExternalScholarshipProviderSet();
        externalScholarshipProvider.remove(party);
        return redirect("/externalScholarshipProvider.do?method=list", request);
    }
View Full Code Here

                        }
                    } else {
                        continue;
                    }
                }
                Party party = accountability.getChildParty();
                if (party instanceof Person) {
                    User user = ((Person) party).getUser();
                    if (user != null) {
                        users.add(user);
                    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.organizationalStructure.Party

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.