1 7 8 package javax.emb; 9 10 import java.io.InputStream; 11 import java.net.URL; 12 13 import javax.ejb.EJBLocalObject; 14 15 65 public interface MediaEntityLocal extends EJBLocalObject, Media 66 { 67 77 void addListener(MediaListener listener) throws MediaException; 78 79 89 void addMetaData(MetaDataEntityLocal metaData) throws MediaException; 90 91 115 void convert(MediaConverterSpec[] specifications) throws MediaException; 116 117 142 URL exportMedia(URL targetDirectoryLocation) throws MediaException; 143 144 158 MediaEntityLocal[] getChildren() throws MediaException; 159 160 168 String getDescription() throws MediaException; 169 170 177 long getLastModified() throws MediaException; 178 179 187 MediaListener[] getListeners() throws MediaException; 188 189 193 URL getLocation() throws MediaException; 194 195 204 MetaDataEntityLocal[] getMetaData() throws MediaException; 205 206 211 MediaEntityLocal getNextVersion() throws MediaException; 212 213 221 MediaEntityLocal[] getParents() throws MediaException; 222 223 230 MediaEntityLocal getPreviousVersion() throws MediaException; 231 232 277 void importMedia(URL sourceLocation, String name) throws MediaException; 278 279 289 void removeListener(MediaListener listener) throws MediaException; 290 291 305 void removeMetaData(MetaDataEntityLocal metaData) throws MediaException; 306 307 325 void setChildren(MediaEntityLocal[] children) throws MediaException; 326 327 354 void setContent(byte[] content) throws MediaException; 355 356 386 void setContent(InputStream content) throws MediaException; 387 388 400 void setDescription(String description) throws MediaException; 401 402 423 void setLocation(URL location) throws MediaException; 424 425 437 void setMimeType(String mimeType) throws MediaException; 438 439 456 void setName(String name) throws MediaException; 457 458 482 void setPreviousVersion(MediaEntityLocal mediaEntity) throws MediaException; 483 484 496 void setProxy(MediaEntityLocal mediaEntity) throws MediaException; 497 } | Popular Tags |