1 17 18 package org.pentaho.core.repository; 19 20 import java.io.File ; 21 import java.util.Iterator ; 22 23 import org.pentaho.core.repository.content.ContentException; 24 25 33 34 public interface IContentLocation { 35 36 55 public IContentItem newContentItem(String name, String title, String extension, String mimeType, String url, int writeMode) throws ContentException; 56 57 80 public IContentItem newContentItem(String contentId, String name, String title, String extension, String mimeType, String url, int writeMode) throws ContentException; 81 82 85 public int getRevision(); 86 87 92 public Iterator getContentItemIterator(); 93 94 103 public boolean removeContentItemByName(String theFileName, boolean tryFileDelete) throws ContentException; 104 105 113 public IContentItem getContentItemById(String contentItemId); 114 115 123 public IContentItem getContentItemByName(String name); 124 125 132 public IContentItem getContentItemByPath(String path); 133 134 143 public File getTmpFile(String fileSuffix) throws ContentException; 144 145 157 public File getTmpFile(String fileSuffix, boolean deleteOnExit) throws ContentException; 158 159 167 public File makeSubdirectory(String subDirName) throws ContentException; 168 169 172 public String getDirPath(); 173 174 177 public String getId(); 178 179 182 public String getName(); 183 184 187 public String getSolutionId(); 188 189 192 public String getDescription(); 193 194 } 195 | Popular Tags |