Package org.olat.fileresource.types

Examples of org.olat.fileresource.types.SharedFolderFileResource


        else if (PdfFileResource.validate(fResource)) tempFr = new PdfFileResource();
        else if (ImageFileResource.validate(fResource)) tempFr = new ImageFileResource();
        else if (MovieFileResource.validate(fResource)) tempFr = new MovieFileResource();
        else if (SoundFileResource.validate(fResource)) tempFr = new SoundFileResource();
        else if (AnimationFileResource.validate(fResource)) tempFr = new AnimationFileResource();
        else if (SharedFolderFileResource.validate(fResource)) tempFr = new SharedFolderFileResource();
        // add a wiki copy
        else if (WikiResource.validate(fResource)) tempFr = new WikiResource();
        // add a podcast copy
        else if (PodcastFileResource.validate(fResource)) tempFr = new PodcastFileResource(fResourceFileroot, fResource);
        // add a blog copy
View Full Code Here


    VersionsManager.getInstance().delete(rootContainer,true);
    FileResourceManager.getInstance().deleteFileResource(res);
  }
 
  public SharedFolderFileResource createSharedFolder() {
    SharedFolderFileResource resource = new SharedFolderFileResource();
    VFSContainer rootContainer = FileResourceManager.getInstance().getFileResourceRootImpl(resource);
    if (rootContainer.createChildContainer(FOLDER_NAME) == null) return null;
    OLATResourceManager rm = OLATResourceManager.getInstance();
    OLATResource ores = rm.createOLATResourceInstance(resource);
    rm.saveOLATResource(ores);
View Full Code Here

   * @param owner
   * @return
   */
  public static RepositoryEntry doImport(RepositoryEntryImportExport importExport, ICourse course, boolean keepSoftkey, Identity owner) {
    SharedFolderManager sfm = SharedFolderManager.getInstance();
    SharedFolderFileResource resource = sfm.createSharedFolder();
    if (resource == null) {
      Tracing.logError("Error adding file resource during repository reference import: " + importExport.getDisplayName(), ImportSharedfolderReferencesController.class);
      return null;
    }

View Full Code Here

TOP

Related Classes of org.olat.fileresource.types.SharedFolderFileResource

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.