CalendarEventSummaryFile.java :  » Google-tech » goofs » goofs » fs » calendar » Java Open Source

Java Open Source » Google tech » goofs 
goofs » goofs » fs » calendar » CalendarEventSummaryFile.java
package goofs.fs.calendar;

import com.google.gdata.data.calendar.CalendarEventEntry;

import fuse.Errno;
import goofs.GoofsProperties;
import goofs.fs.Dir;
import goofs.fs.File;

public class CalendarEventSummaryFile extends File {

  public CalendarEventSummaryFile(Dir parent, CalendarEventEntry event)
      throws Exception {

    super(parent, GoofsProperties.INSTANCE
        .getProperty("goofs.calendar.summary"), 0777, event
        .getSummary().getPlainText());

  }

  @Override
  public int save() {
    return Errno.EROFS;
  }

  @Override
  public int delete() {
    return Errno.EROFS;
  }

  @Override
  public int rename(Dir newParent, String name) {
    return Errno.EROFS;
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.