1 18 package org.apache.roller.model; 19 20 import java.io.File ; 21 import java.io.InputStream ; 22 import java.io.Serializable ; 23 24 import org.apache.roller.RollerException; 25 import org.apache.roller.pojos.WebsiteData; 26 import org.apache.roller.util.RollerMessages; 27 28 38 public interface FileManager extends Serializable 39 { 40 41 public boolean canSave( 42 String weblogHandle, String name, String contentType, long size, RollerMessages msgs) 43 throws RollerException; 44 45 46 public File [] getFiles(String weblogHandle) 47 throws RollerException; 48 49 50 public void deleteFile(String weblogHandle, String name) 51 throws RollerException; 52 53 54 public void saveFile(String weblogHandle, String name, String contentType, long size, InputStream is) 55 throws RollerException; 56 57 58 public boolean overQuota(String weblogHandle) throws RollerException; 59 60 63 public String getUploadDir(); 64 67 public String getUploadUrl(); 68 69 72 public void release(); 73 } 74 | Popular Tags |