1 17 18 package org.pentaho.core.repository; 19 20 import java.io.IOException ; 21 import java.io.InputStream ; 22 import java.io.OutputStream ; 23 import java.io.Reader ; 24 import java.util.Date ; 25 import java.util.List ; 26 27 import javax.activation.FileDataSource ; 28 29 import org.pentaho.core.repository.content.ContentException; 30 31 44 public interface IContentItem { 45 46 49 public static final int WRITEMODE_KEEPVERSIONS = 0; 50 51 54 public static final int WRITEMODE_OVERWRITE = 1; 55 56 59 public static final int WRITEMODE_APPEND = 2; 60 62 65 public String getId(); 66 67 70 public String getPath(); 71 72 75 public String getName(); 76 77 80 public String getTitle(); 81 82 85 public String getMimeType(); 86 87 90 public String getUrl(); 91 92 96 public List getFileVersions(); 97 98 102 public void removeAllVersions(); 103 104 107 public void removeVersion(String fileId); 108 109 117 public InputStream getInputStream() throws ContentException; 118 119 127 public FileDataSource getDataSource(); 128 129 public Reader getReader() throws ContentException; 130 131 151 public OutputStream getOutputStream(String actionName) throws IOException ; 152 153 157 public String getActionName(); 158 159 163 public String getFileId(); 164 165 169 public long getFileSize(); 170 171 175 public Date getFileDateTime(); 176 177 183 public void setMimeType(String mimeType); 184 185 191 public void makeTransient(); 192 193 } 194 | Popular Tags |