1 package org.roller.model; 2 3 import java.io.File ; 4 import java.io.InputStream ; 5 import java.io.Serializable ; 6 7 import org.roller.RollerException; 8 import org.roller.pojos.WebsiteData; 9 import org.roller.util.RollerMessages; 10 11 21 public interface FileManager extends Serializable 22 { 23 24 public boolean canSave( 25 WebsiteData site, String name, long size, RollerMessages msgs) 26 throws RollerException; 27 28 29 public File [] getFiles(WebsiteData site) 30 throws RollerException; 31 32 33 public void deleteFile(WebsiteData site, String name) 34 throws RollerException; 35 36 37 public void saveFile(WebsiteData site, String name, long size, InputStream is) 38 throws RollerException; 39 40 43 public String getUploadDir(); 44 47 public String getUploadUrl(); 48 49 52 public void release(); 53 } 54 | Popular Tags |