Package org.olat.modules.iq

Examples of org.olat.modules.iq.IQPreviewSecurityCallback


  /**
   * @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


   * @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

   * @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

        }
      }
    } else if (source == previewLink){
      // handle preview
      if (previewLayoutCtr != null) previewLayoutCtr.dispose();
      Controller previewController = IQManager.getInstance().createIQDisplayController(moduleConfiguration, new IQPreviewSecurityCallback(), ureq, getWindowControl(), course
          .getResourceableId().longValue(), courseNode.getIdent());
      previewLayoutCtr = new LayoutMain3ColsPreviewController(ureq, getWindowControl(), null, null, previewController.getInitialComponent(), null);
      previewLayoutCtr.addDisposableChildController(previewController);
      previewLayoutCtr.activate();
     
View Full Code Here

        return;
       
      } else if (cmd.equals(CMD_TOOLS_PREVIEW)) { // preview
        previewController = IQManager.getInstance().createIQDisplayController(new QTIEditorResolver(qtiPackage),
            qtiPackage.getQTIDocument().isSurvey() ? AssessmentInstance.QMD_ENTRY_TYPE_SURVEY : AssessmentInstance.QMD_ENTRY_TYPE_SELF,
            new IQPreviewSecurityCallback(), ureq, getWindowControl());
        if (previewController.isReady()) {
          // in case previewController was unable to initialize, a message was
          // set by displayController
          // this is the case if no more attempts or security check was
          // unsuccessfull
View Full Code Here

TOP

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

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.