1 6 7 package javax.emb; 8 9 import java.net.URL; 10 import java.util.Collection; 11 12 import javax.ejb.CreateException; 13 import javax.ejb.EJBLocalHome; 14 import javax.ejb.FinderException; 15 16 53 public interface MediaEntityLocalHome extends EJBLocalHome 54 { 55 final static byte TRANSFER_TYPE_STREAM = 0; 56 final static byte TRANSFER_TYPE_BURST = 1; 57 58 71 MediaEntityLocal create() throws CreateException, MediaException; 72 73 111 URL[] exportMedia( 112 MediaEntityLocal[] sourceMedia, 113 URL targetDirectoryLocation) 114 throws MediaException; 115 116 128 Collection findByPartialDescription(String partialDescription) 129 throws FinderException; 130 131 144 Collection findByPartialLocation(String partialLocation) 145 throws FinderException; 146 147 155 MediaEntityLocal findByPrimaryKey(String identity) throws FinderException; 156 157 202 MediaEntityLocal[] importMedia(URL[] sourceLocations, String[] names) 203 throws CreateException, MediaException; 204 205 282 URL publishContent( 283 Media content, 284 byte transferType, 285 ProtocolConstraints constraints) 286 throws MediaException; 287 288 376 Media publishMedia( 377 MediaEntityLocal[] playlist, 378 byte transferType, 379 ProtocolConstraints constraints) 380 throws MediaException; 381 } | Popular Tags |