Package org.olat.modules.iq

Examples of org.olat.modules.iq.IQSecurityCallback


  /**
   * @see org.olat.repository.handlers.RepositoryHandler#getLaunchController(org.olat.core.id.OLATResourceable java.lang.String, org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
   */
  public MainLayoutController getLaunchController(OLATResourceable res, String initialViewIdentifier, UserRequest ureq, WindowControl wControl) {
    Resolver resolver = new ImsRepositoryResolver(res);
    IQSecurityCallback secCallback = new IQPreviewSecurityCallback();
    MainLayoutController runController = res.getResourceableTypeName().equals(SurveyFileResource.TYPE_NAME) ?
      IQManager.getInstance().createIQDisplayController(res, resolver, AssessmentInstance.QMD_ENTRY_TYPE_SURVEY, secCallback, ureq, wControl)
      IQManager.getInstance().createIQDisplayController(res, resolver, AssessmentInstance.QMD_ENTRY_TYPE_SELF, secCallback, ureq, wControl);
      // use on column layout
      LayoutMain3ColsController layoutCtr = new LayoutMain3ColsController(ureq, wControl, null, null, runController.getInitialComponent(), null);
View Full Code Here


      String title = trans.translate("guestnoaccess.title");
      String message = trans.translate("guestnoaccess.message");
      controller = MessageUIFactory.createInfoMessage(ureq, wControl, title, message);
    } else {
      AssessmentManager am = userCourseEnv.getCourseEnvironment().getAssessmentManager();
      IQSecurityCallback sec = new CourseIQSecurityCallback(this, am, ureq.getIdentity());
      RepositoryEntry repositoryEntry = ne.getCourseNode().getReferencedRepositoryEntry();
      OLATResourceable ores = repositoryEntry.getOlatResource();
      Long resId = ores.getResourceableId();
      TestFileResource fr = new TestFileResource();
      fr.overrideResourceableId(resId);
View Full Code Here

      Long resId = ores.getResourceableId();
      SurveyFileResource fr = new SurveyFileResource();
      fr.overrideResourceableId(resId);
      if(!CoordinatorManager.getCoordinator().getLocker().isLocked(fr, null)) {
        AssessmentManager am = userCourseEnv.getCourseEnvironment().getAssessmentManager();
        IQSecurityCallback sec = new CourseIQSecurityCallback(this, am, ureq.getIdentity());
        controller = new IQRunController(userCourseEnv, this.getModuleConfiguration(), sec, ureq, wControl, this);
      } else {
        Translator trans = new PackageTranslator(PACKAGE, ureq.getLocale());
        String title = trans.translate("editor.lock.title");
        String message = trans.translate("editor.lock.message");
View Full Code Here

   * @param wControl
   * @return Controller
   */
  public Controller getLaunchController(OLATResourceable res, UserRequest ureq, WindowControl wControl) {
    Resolver resolver = new ImsRepositoryResolver(res);
    IQSecurityCallback secCallback = new IQPreviewSecurityCallback();
    Controller runController =
      IQManager.getInstance().createIQDisplayController(res, resolver, AssessmentInstance.QMD_ENTRY_TYPE_SELF, secCallback, ureq, wControl);
    // use on column layout
    LayoutMain3ColsController layoutCtr = new LayoutMain3ColsController(ureq, wControl, null, null, runController.getInitialComponent(), null);
    layoutCtr.addDisposableChildController(runController); // dispose content on layout dispose
View Full Code Here

   *      org.olat.course.run.userview.NodeEvaluation)
   */
  public NodeRunConstructionResult createNodeRunConstructionResult(UserRequest ureq, WindowControl wControl,
      UserCourseEnvironment userCourseEnv, NodeEvaluation ne, String nodecmd) {
    AssessmentManager am = userCourseEnv.getCourseEnvironment().getAssessmentManager();
    IQSecurityCallback sec = new CourseIQSecurityCallback(this, am, ureq.getIdentity());
    IQRunController runController = new IQRunController(userCourseEnv, getModuleConfiguration(), sec, ureq, wControl, this);
    Controller ctrl = TitledWrapperHelper.getWrapper(ureq, wControl, runController, this, "o_iqself_icon");
    return new NodeRunConstructionResult(ctrl);
  }
View Full Code Here

   * @param wControl
   * @return Controller
   */
  public Controller getLaunchController(OLATResourceable res, UserRequest ureq, WindowControl wControl) {
    Resolver resolver = new ImsRepositoryResolver(res);
    IQSecurityCallback secCallback = new IQPreviewSecurityCallback();
    Controller runController = IQManager.getInstance().createIQDisplayController(res, resolver, AssessmentInstance.QMD_ENTRY_TYPE_SURVEY, secCallback, ureq, wControl);
    // use on column layout
    LayoutMain3ColsController layoutCtr = new LayoutMain3ColsController(ureq, wControl, null, null, runController.getInitialComponent(), null);
    layoutCtr.addDisposableChildController(runController); // dispose content on layout dispose
    return layoutCtr;
View Full Code Here

TOP

Related Classes of org.olat.modules.iq.IQSecurityCallback

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.