Examples of supportsDownload()


Examples of org.olat.repository.handlers.RepositoryHandler.supportsDownload()

    } else { // launch not supported
      canLaunch = null;
      addFormElement("cif_canLaunch", new StaticHTMLTextElement("cif.canLaunch", translate("cif.canLaunch.na"), 255));
    }

    if (handler != null && handler.supportsDownload()) {
      canDownload = new CheckBoxElement("cif.canDownload", entry.getCanDownload());
      addFormElement("cif_canDownload", canDownload);
    } else { // download not supported
      canDownload = null;
      addFormElement("cif_canDownload", new StaticHTMLTextElement("cif.canDownload", translate("cif.canDownload.na"), 255));
View Full Code Here

Examples of org.olat.repository.handlers.RepositoryHandler.supportsDownload()

    } else { // launch not supported
      canLaunch = null;
      addFormElement("cif_canLaunch", new StaticHTMLTextElement("cif.canLaunch", translate("cif.canLaunch.na"), 255));
    }

    if (handler != null && handler.supportsDownload()) {
      canDownload = new CheckBoxElement("cif.canDownload", entry.getCanDownload());
      addFormElement("cif_canDownload", canDownload);
    } else { // download not supported
      canDownload = null;
      addFormElement("cif_canDownload", new StaticHTMLTextElement("cif.canDownload", translate("cif.canDownload.na"), 255));
View Full Code Here

Examples of org.olat.repository.handlers.RepositoryHandler.supportsDownload()

      if (isNewController) {
        //mark as download link
        detailsToolC.addLink(ACTION_DOWNLOAD, translate("details.download"), TOOL_DOWNLOAD, null, true);
        detailsToolC.addLink(ACTION_BOOKMARK, translate("details.bookmark"), TOOL_BOOKMARK, null);
      }
      boolean canDownload = repositoryEntry.getCanDownload() && handler.supportsDownload();
      // disable download for courses if not author or owner
      if (repositoryEntry.getOlatResource().getResourceableTypeName().equals(CourseModule.getCourseTypeName())
        && !(isOwner || isAuthor)) canDownload = false;
      // always enable download for owners
      if (isOwner && handler.supportsDownload()) canDownload = true;
View Full Code Here

Examples of org.olat.repository.handlers.RepositoryHandler.supportsDownload()

      boolean canDownload = repositoryEntry.getCanDownload() && handler.supportsDownload();
      // disable download for courses if not author or owner
      if (repositoryEntry.getOlatResource().getResourceableTypeName().equals(CourseModule.getCourseTypeName())
        && !(isOwner || isAuthor)) canDownload = false;
      // always enable download for owners
      if (isOwner && handler.supportsDownload()) canDownload = true;
      detailsToolC.setEnabled(TOOL_DOWNLOAD, canDownload);
      boolean canBookmark = true;
      if (BookmarkManager.getInstance().isResourceableBookmarked(ureq.getIdentity(), repositoryEntry) || !repositoryEntry.getCanLaunch())
        canBookmark = false;
      detailsToolC.setEnabled(TOOL_BOOKMARK, canBookmark);
View Full Code Here

Examples of org.olat.repository.handlers.RepositoryHandler.supportsDownload()

      if (event == Event.CHANGED_EVENT || event.getCommand().equals("courseChanged")) {
        // RepositoryEntry changed
        this.repositoryEntry = repositoryEditPropertiesController.getRepositoryEntry();
        updateView(ureq);
        RepositoryHandler handler = RepositoryHandlerFactory.getInstance().getRepositoryHandler(repositoryEntry);
        boolean canDownload = repositoryEntry.getCanDownload() && handler.supportsDownload();
        detailsToolC.setEnabled(TOOL_DOWNLOAD, canDownload);
        if (checkIsRepositoryEntryTypeLaunchable()) {
          detailsToolC.setEnabled(TOOL_LAUNCH, checkIsRepositoryEntryLaunchable(ureq));
        }       
        if(event.getCommand().equals("courseChanged")) {
View Full Code Here

Examples of org.olat.repository.handlers.RepositoryHandler.supportsDownload()

    } else { // launch not supported
      canLaunch = null;
      addFormElement("cif_canLaunch", new StaticHTMLTextElement("cif.canLaunch", translate("cif.canLaunch.na"), 255));
    }

    if (handler != null && handler.supportsDownload()) {
      canDownload = new CheckBoxElement("cif.canDownload", entry.getCanDownload());
      addFormElement("cif_canDownload", canDownload);
    } else { // download not supported
      canDownload = null;
      addFormElement("cif_canDownload", new StaticHTMLTextElement("cif.canDownload", translate("cif.canDownload.na"), 255));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.