Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.UserPrivateKey


    private ActionForward forwardToShow(Registration registration, ActionMapping mapping, HttpServletRequest request)
            throws Exception {
        request.setAttribute("registrationId", registration.getExternalId());

        UserPrivateKey privateKey = Authenticate.getUser().getPrivateKey();

        if (privateKey != null && privateKey.getPrivateKeyValidity() != null
                && privateKey.getPrivateKeyValidity().isAfter(new DateTime())) {
            if (privateKey.getPrivateKeyValidity() != null) {
                request.setAttribute("expirationDate", privateKey.getPrivateKeyValidity().toString("dd/MM/yyyy HH:mm"));
                request.setAttribute("user", Authenticate.getUser().getUsername());
                request.setAttribute("classURL", getUrl("syncClasses", registration, request));
                request.setAttribute("examsURL", getUrl("syncExams", registration, request));
            }
            request.setAttribute("stillValid", true);
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.UserPrivateKey

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.