Examples of VFSItemFileTypeFilter


Examples of org.olat.core.util.vfs.filters.VFSItemFileTypeFilter

    // create directory filter combined with suffix filter
    String[] dirFilters = { "_courseelementdata" };
    VFSItemFilter customFilter = null;
    VFSItemFilter dirFilter = new VFSItemExcludePrefixFilter(dirFilters);
    if (suffixes != null) {
      VFSItemFileTypeFilter typeFilter = new VFSItemFileTypeFilter(
          suffixes);
      typeFilter.setCompositeFilter(dirFilter);
      customFilter = typeFilter;
    } else {
      customFilter = dirFilter;
    }
    fileChooserController = FileChooserUIFactory
View Full Code Here

Examples of org.olat.core.util.vfs.filters.VFSItemFileTypeFilter

   */
  private void initFileSelectionController(UserRequest ureq) {
    VFSContainer vfsRoot = new NamedContainerImpl(getTranslator().translate(NLS_FOLDER_DISPLAYNAME), rootContainer);
    VFSItemFilter typeFilter = null;
    if (!allFileSuffixesAllowed && allowedFileSuffixes != null) {
      typeFilter = new VFSItemFileTypeFilter(allowedFileSuffixes);
    }
    // Clanup old file chooser and open up new one
    removeAsListenerAndDispose(fileChooserCtr);
    fileChooserCtr = FileChooserUIFactory.createFileChooserController(ureq, getWindowControl(), vfsRoot, typeFilter, true);
    listenTo(fileChooserCtr);
View Full Code Here

Examples of org.olat.core.util.vfs.filters.VFSItemFileTypeFilter

    // prepare generic filechoser for add file
    cfc = new FileChooserController(ureq, getWindowControl(), this, (int)QuotaManager.getInstance().getDefaultQuota(QuotaConstants.IDENTIFIER_DEFAULT_REPO).getUlLimitKB()
        .longValue(), false);
    if (suffixFilter != null) {
      VFSItemFileTypeFilter fypeFilter = new VFSItemFileTypeFilter(suffixFilter);
      cfc.setSuffixFilter(fypeFilter);
    }
    setInitialComponent(cfc.getInitialComponent());
  }
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.