Package org.fenixedu.academic.dto.administrativeOffice.externalUnits

Examples of org.fenixedu.academic.dto.administrativeOffice.externalUnits.CreateExternalUnitBean


    }

    private ActionForward prepareCreateUnit(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response, PartyTypeEnum type) {

        request.setAttribute("createUnitBean", new CreateExternalUnitBean(getUnit(request), type));
        return mapping.findForward("prepareCreateUnit");
    }
View Full Code Here


    }

    public ActionForward createExternalUnit(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws FenixServiceException {

        final CreateExternalUnitBean externalUnitBean = getRenderedObject();

        try {
            final Unit unit = CreateExternalUnit.run(externalUnitBean);
            final String oid =
                    (!externalUnitBean.getParentUnit().isPlanetUnit()) ? externalUnitBean.getParentUnit().getExternalId() : unit
                            .getExternalId();
            request.setAttribute("oid", oid);
            return viewUnit(mapping, actionForm, request, response);

        } catch (final NotAuthorizedException e) {
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.dto.administrativeOffice.externalUnits.CreateExternalUnitBean

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.