001: package com.ibm.emb.meb.test.ejb;
002:
003: import java.io.File;
004: import java.io.FileNotFoundException;
005: import java.io.IOException;
006: import java.net.URL;
007: import java.rmi.RemoteException;
008:
009: import javax.ejb.CreateException;
010: import javax.ejb.EJBObject;
011: import javax.ejb.FinderException;
012: import javax.ejb.RemoveException;
013: import javax.emb.ListenerVetoException;
014: import javax.emb.Media;
015: import javax.emb.MediaConverterSpec;
016: import javax.emb.MediaException;
017: import javax.emb.MediaFormat;
018: import javax.emb.MediaListener;
019: import javax.emb.ProtocolConstraints;
020: import javax.naming.NamingException;
021:
022: import com.ibm.emb.meb.wrapper.MediaEntityWrapper;
023:
024: /**
025: * Remote interface for Enterprise Bean: TestDriver
026: */
027: public interface MediaEntityLocalTestDriver extends EJBObject,
028: MediaEntityWrapper {
029:
030: public static int NULLPOINTER = 1;
031:
032: public static int CONTENTACCESS = 2;
033:
034: public static int CONVERSION = 3;
035:
036: public static int MEDIAFORMAT = 4;
037:
038: public static int FORMATFEATURE = 5;
039:
040: public static int FORMATNOTFOUND = 6;
041:
042: public static int FORMATSYNTAX = 7;
043:
044: public static int LINKTRANSLATION = 8;
045:
046: public static int MALFORMEDLOCATION = 9;
047:
048: public static int CONTENTUNMUTABLE = 10;
049:
050: public static int LISTENERVETO = 11;
051:
052: public static int LOCATIONUNMUTABLE = 12;
053:
054: public static int VERSIONCHAININTEGRITY = 13;
055:
056: public static int CONTENTTOOLARGE = 14;
057:
058: public static int INDEXOUTOFBOUNDS = 15;
059:
060: public static int NEGATIVEARRAYSIZE = 16;
061:
062: public static int ILLEGALARGUMENT = 17;
063:
064: public static int FINDER = 18;
065:
066: public static int NOSERVERFOUND = 19;
067:
068: public int addListenerExceptions(String pk, MediaListener listener)
069: throws MediaException, NamingException, FinderException,
070: RemoteException;
071:
072: public int addMetaDataExceptions(String pk, String mdeb)
073: throws MediaException, NamingException, FinderException,
074: RemoteException;
075:
076: public int convertExceptions(String pk, MediaConverterSpec[] specs)
077: throws MediaException, NamingException, FinderException,
078: RemoteException;
079:
080: public int exportMediaExceptions(String pk, URL targetLocation)
081: throws MediaException, NamingException, FinderException,
082: RemoteException;
083:
084: public int getContentExceptions(String pk) throws MediaException,
085: NamingException, FinderException, RemoteException;
086:
087: public int getFormatExceptions(String pk) throws MediaException,
088: NamingException, FinderException, RemoteException;
089:
090: public int getHeaderExceptions(String pk) throws MediaException,
091: NamingException, FinderException, RemoteException;
092:
093: public int getProxyExceptions(String pk) throws MediaException,
094: NamingException, FinderException, RemoteException;
095:
096: public int importMediaExceptions(String pk, URL targetLocation,
097: String name) throws MediaException, NamingException,
098: FinderException, RemoteException;
099:
100: public int readContentExceptions(String pk, long position,
101: byte[] buffer) throws MediaException, NamingException,
102: FinderException, RemoteException;
103:
104: public int readContentExceptions(String pk, long position,
105: byte[] buffer, int offset, int length)
106: throws MediaException, NamingException, FinderException,
107: RemoteException;
108:
109: public int removeListenerExceptions(String pk,
110: MediaListener listener) throws MediaException,
111: NamingException, FinderException, RemoteException;
112:
113: public int removeMetaDataExceptions(String pk, String mdeb)
114: throws MediaException, NamingException, FinderException,
115: RemoteException;
116:
117: public int setChildrenExceptions(String pk, String[] children)
118: throws MediaException, NamingException, FinderException,
119: RemoteException;
120:
121: public int setContentExceptions(String pk, byte[] content)
122: throws MediaException, NamingException, FinderException,
123: RemoteException;
124:
125: public int setLocationExceptions(String pk, URL location)
126: throws MediaException, NamingException, FinderException,
127: RemoteException;
128:
129: public int setNameExceptions(String pk, String name)
130: throws MediaException, NamingException, FinderException,
131: RemoteException;
132:
133: public int setPreviousVersionExceptions(String pk, String pvpk)
134: throws MediaException, NamingException, FinderException,
135: RemoteException;
136:
137: public int getSizeExceptions(String pk) throws MediaException,
138: NamingException, FinderException, java.rmi.RemoteException;
139:
140: public void bindMediaFormat(String fileExt, MediaFormat format)
141: throws MediaException, java.rmi.RemoteException;
142:
143: public int exportHomeMediaExceptions(String[] pks, URL targetDir)
144: throws MediaException, NamingException, FinderException,
145: java.rmi.RemoteException;
146:
147: public int findByPKExceptions(String pk) throws NamingException,
148: java.rmi.RemoteException;
149:
150: public int importHomeMediaExceptions(URL[] locations, String[] names)
151: throws CreateException, MediaException, NamingException,
152: FinderException, java.rmi.RemoteException;
153:
154: public int publishContentExceptions(Media content,
155: byte transferType, ProtocolConstraints constraints)
156: throws MediaException, NamingException, FinderException,
157: java.rmi.RemoteException;
158:
159: public int publishMediaExceptions(String[] playlist,
160: byte transferType, ProtocolConstraints constraints)
161: throws MediaException, NamingException, FinderException,
162: java.rmi.RemoteException;
163:
164: public int publishContentExceptions(String pk, byte transferType,
165: ProtocolConstraints constraints) throws MediaException,
166: NamingException, FinderException, java.rmi.RemoteException;
167:
168: public URL publishMediaContent(String pk, byte protocol,
169: ProtocolConstraints constraints) throws MediaException,
170: NamingException, FinderException, java.rmi.RemoteException;
171:
172: public void unbindMediaFormat(String fileExt)
173: throws MediaException, java.rmi.RemoteException;
174:
175: public MediaFormat lookUpMediaFormat(String fileExt)
176: throws MediaException, java.rmi.RemoteException;
177:
178: public void cleanUp() throws NamingException,
179: java.rmi.RemoteException;
180:
181: public boolean readCompareContent(String pk, long position,
182: byte[] buffer, File origFileContent) throws IOException,
183: NamingException, FinderException, MediaException,
184: java.rmi.RemoteException;
185:
186: public boolean readCompareContent(String pk, long position,
187: byte[] buffer, int offset, int length, byte[] origContent,
188: boolean fillBuffer) throws MediaException, NamingException,
189: FinderException, java.rmi.RemoteException;
190:
191: public int setContentExceptions(String pk, File file)
192: throws FileNotFoundException, NamingException,
193: FinderException, MediaException, java.rmi.RemoteException;
194:
195: public void removeMDEBByPK(String pk) throws NamingException,
196: FinderException, RemoveException, java.rmi.RemoteException;
197:
198: public int listenerAboutToChangeMEB(MediaListener listener,
199: String pk, String property) throws FinderException,
200: NamingException, MediaException, java.rmi.RemoteException;
201:
202: public int listenerMediaEntityChanged(MediaListener listener,
203: String pk, String property) throws FinderException,
204: NamingException, MediaException, java.rmi.RemoteException;
205:
206: public int listenerAboutToRemoveMEB(MediaListener listener,
207: String pk) throws FinderException, NamingException,
208: MediaException, java.rmi.RemoteException;
209:
210: public int setDescriptionExceptions(String pk, String description)
211: throws MediaException, NamingException, FinderException,
212: java.rmi.RemoteException;
213:
214: public int setMimeTypeExceptions(String pk, String mimeType)
215: throws MediaException, NamingException, FinderException,
216: java.rmi.RemoteException;
217:
218: public int removeMEBExceptions(String pk) throws NamingException,
219: FinderException, RemoveException, ListenerVetoException,
220: java.rmi.RemoteException;
221:
222: public void removeMEBByPK(String pk) throws NamingException,
223: FinderException, RemoveException, java.rmi.RemoteException;
224:
225: public int getMimeTypeExceptions(String pk) throws MediaException,
226: NamingException, FinderException, java.rmi.RemoteException;
227: }
|