Search in sources :

Example 1 with PortfolioAssessmentDetailsController

use of org.olat.modules.portfolio.ui.PortfolioAssessmentDetailsController in project OpenOLAT by OpenOLAT.

the class PortfolioCourseNode method getDetailsEditController.

@Override
public Controller getDetailsEditController(UserRequest ureq, WindowControl wControl, BreadcrumbPanel stackPanel, UserCourseEnvironment coachCourseEnv, UserCourseEnvironment assessedUserCourseEnv) {
    RepositoryEntry mapEntry = getReferencedRepositoryEntry();
    if (mapEntry != null && BinderTemplateResource.TYPE_NAME.equals(mapEntry.getOlatResource().getResourceableTypeName())) {
        Identity assessedIdentity = assessedUserCourseEnv.getIdentityEnvironment().getIdentity();
        RepositoryEntry courseEntry = assessedUserCourseEnv.getCourseEnvironment().getCourseGroupManager().getCourseEntry();
        return new PortfolioAssessmentDetailsController(ureq, wControl, courseEntry, this, mapEntry, assessedIdentity);
    }
    return new PortfolioResultDetailsController(ureq, wControl, stackPanel, this, assessedUserCourseEnv);
}
Also used : PortfolioAssessmentDetailsController(org.olat.modules.portfolio.ui.PortfolioAssessmentDetailsController) PortfolioResultDetailsController(org.olat.course.nodes.portfolio.PortfolioResultDetailsController) RepositoryEntry(org.olat.repository.RepositoryEntry) Identity(org.olat.core.id.Identity)

Example 2 with PortfolioAssessmentDetailsController

use of org.olat.modules.portfolio.ui.PortfolioAssessmentDetailsController in project openolat by klemens.

the class PortfolioCourseNode method getDetailsEditController.

@Override
public Controller getDetailsEditController(UserRequest ureq, WindowControl wControl, BreadcrumbPanel stackPanel, UserCourseEnvironment coachCourseEnv, UserCourseEnvironment assessedUserCourseEnv) {
    RepositoryEntry mapEntry = getReferencedRepositoryEntry();
    if (mapEntry != null && BinderTemplateResource.TYPE_NAME.equals(mapEntry.getOlatResource().getResourceableTypeName())) {
        Identity assessedIdentity = assessedUserCourseEnv.getIdentityEnvironment().getIdentity();
        RepositoryEntry courseEntry = assessedUserCourseEnv.getCourseEnvironment().getCourseGroupManager().getCourseEntry();
        return new PortfolioAssessmentDetailsController(ureq, wControl, courseEntry, this, mapEntry, assessedIdentity);
    }
    return new PortfolioResultDetailsController(ureq, wControl, stackPanel, this, assessedUserCourseEnv);
}
Also used : PortfolioAssessmentDetailsController(org.olat.modules.portfolio.ui.PortfolioAssessmentDetailsController) PortfolioResultDetailsController(org.olat.course.nodes.portfolio.PortfolioResultDetailsController) RepositoryEntry(org.olat.repository.RepositoryEntry) Identity(org.olat.core.id.Identity)

Aggregations

Identity (org.olat.core.id.Identity)2 PortfolioResultDetailsController (org.olat.course.nodes.portfolio.PortfolioResultDetailsController)2 PortfolioAssessmentDetailsController (org.olat.modules.portfolio.ui.PortfolioAssessmentDetailsController)2 RepositoryEntry (org.olat.repository.RepositoryEntry)2