Package org.olat.core.util.vfs

Examples of org.olat.core.util.vfs.VirtualContainer


public class CalendarWebDAVProvider implements WebDAVProvider {

  private static final String MOUNT_POINT = "calendars";
 
  public VFSContainer getContainer(Identity identity) {
    VirtualContainer calendars = new VirtualContainer("calendars");
    calendars.setLocalSecurityCallback(new ReadOnlyCallback());
    // get private calendar
    CalendarManager calendarManager = CalendarManagerFactory.getInstance().getCalendarManager();
    File fPersonalCalendar = calendarManager.getCalendarICalFile(CalendarManager.TYPE_USER, identity.getName());
    calendars.addItem(new LocalFileImpl(fPersonalCalendar));
    return calendars;
  }
View Full Code Here

TOP

Related Classes of org.olat.core.util.vfs.VirtualContainer

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.