KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > calipso > reportgenerator > common > RemoteReportManagerStateFul


1 package com.calipso.reportgenerator.common;
2
3 import com.calipso.reportgenerator.common.ReportGeneratorConfiguration;
4 import com.calipso.reportgenerator.common.RemoteReportManager;
5 import com.calipso.reportgenerator.enterprise.common.ReportManagerSFHome;
6 import com.calipso.reportgenerator.enterprise.common.ReportManagerSF;
7 import com.calipso.reportgenerator.reportdefinitions.ReportView;
8 import com.calipso.reportgenerator.reportdefinitions.ReportDefinition;
9 import com.calipso.reportgenerator.reportdefinitions.ReportSourceDefinition;
10 import com.calipso.reportgenerator.reportcalculator.Matrix;
11 import javax.naming.Context JavaDoc;
12 import javax.naming.InitialContext JavaDoc;
13 import java.rmi.RemoteException JavaDoc;
14 import java.util.*;
15 import java.text.MessageFormat JavaDoc;
16 import java.io.Serializable JavaDoc;
17
18 /**
19  * Se crea solo cuando el EJB es de tipo Stateful.
20  * Representa la capa entre el cliente y la aplicación,
21  * y presenta los métodos que el cliente podra invocar correspondientes al ReportManager
22  * agregándole el throws InfoException por el contexto en el que se ejecuta.
23  * @see com.calipso.reportgenerator.reportmanager.ReportManager
24  *
25  */

26
27 public class RemoteReportManagerStateFul extends RemoteReportManager implements Serializable JavaDoc{
28   private ReportManagerSF reportManagerRemote;
29   private String JavaDoc clientIp;
30
31   /**
32    * Inicializa el RemoteReportManager con la configuración correspondiente
33    * @param reportGeneratorConfiguration
34    */

35   public RemoteReportManagerStateFul(ReportGeneratorConfiguration reportGeneratorConfiguration, String JavaDoc distributedHost) {
36     super(reportGeneratorConfiguration, distributedHost);
37   }
38
39   /**
40    * Obtiene un ReportManagerSF creándolo si es necesario.
41    * @return el ReportManagerRemote correspondiente a la instancia de RemoteReportManagerStateFul
42    */

43   public ReportManagerSF getReportManagerRemote() throws InfoException {
44     if (reportManagerRemote == null) {
45       reportManagerRemote = newReportManagerRemote();
46     }
47     return reportManagerRemote;
48   }
49
50   /**
51    * Crea un nuevo ReportManagerRemote, dicha instancia
52    * servira para invocar los metodos heredados
53    * @return el ReportManagerSF correspondiente de la instancia RemoteReportManagerStateful
54    * @throws com.calipso.reportgenerator.common.InfoException
55    */

56   private ReportManagerSF newReportManagerRemote() throws InfoException {
57     Hashtable env = getEnviroment();
58     try {
59       Context JavaDoc ctx = new InitialContext JavaDoc(env);
60       Object JavaDoc obj = ctx.lookup(getReportGeneratorConfiguration().getReportManagerEJB_SFName());
61       ReportManagerSFHome home = (ReportManagerSFHome) javax.rmi.PortableRemoteObject.narrow(obj, ReportManagerSFHome.class);
62       ReportManagerSF reportManager = home.create(getReportGeneratorConfiguration());
63       return reportManager;
64     } catch (Exception JavaDoc e) {
65       throw new InfoException(LanguageTraslator.traslate("78"), e);
66     }
67   }
68
69   public int PrepareReport(String JavaDoc reportDefId) throws InfoException {
70     try {
71       return getReportManagerRemote().PrepareReport(reportDefId);
72     }
73     catch (RemoteException JavaDoc e) {
74       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-PrepareReport(String reportDefId)"}), e);
75     }
76   }
77
78   public int PrepareReport(String JavaDoc reportDefId, Map paramValues) throws InfoException {
79     try {
80       return getReportManagerRemote().PrepareReport(reportDefId, paramValues);
81     }
82     catch (RemoteException JavaDoc e) {
83       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-PrepareReport(String reportDefId, Map paramValues)"}), e);
84     }
85   }
86
87   public void ReleaseReport(int handle) throws InfoException {
88     try {
89       getReportManagerRemote().ReleaseReport(handle);
90     }
91     catch (RemoteException JavaDoc e) {
92       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-ReleaseReport(int handle)"}), e);
93     }
94   }
95
96   public void prepareReportSource(String JavaDoc reportSourceDefinitionId) throws InfoException {
97     try {
98       getReportManagerRemote().prepareReportSource(reportSourceDefinitionId);
99     }
100     catch (RemoteException JavaDoc e) {
101       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-prepareReportSource(String reportSourceDefinitionId)"}), e);
102     }
103   }
104
105   public Map getReportDefinitions() throws InfoException {
106     try {
107       return getReportManagerRemote().getReportDefinitions();
108     }
109     catch (RemoteException JavaDoc e) {
110       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-getReportDefinitions()"}), e);
111     }
112   }
113
114   public Map getReportSourceDefinitions() throws InfoException {
115     try {
116       return getReportManagerRemote().getReportSourceDefinitions();
117     }
118     catch (RemoteException JavaDoc e) {
119       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-getReportSourceDefinitions()"}), e);
120     }
121   }
122
123   public Map getReportsForEntity(String JavaDoc entityID) throws InfoException {
124     try {
125       return getReportManagerRemote().getReportsForEntity(entityID);
126     }
127     catch (RemoteException JavaDoc e) {
128       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-getReportsForEntity(String entityID)"}), e);
129     }
130   }
131
132   public void ExecuteAction(int handle, String JavaDoc actionName, Object JavaDoc params) throws InfoException {
133     try {
134       getReportManagerRemote().ExecuteAction(handle, actionName, params);
135     }
136     catch (RemoteException JavaDoc e) {
137       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-ExecuteAction(int handle, String actionName, Object params)"}), e);
138     }
139   }
140
141   public void saveReportDefinition(ReportDefinition reportDefinition) throws InfoException {
142     try {
143       getReportManagerRemote().saveReportDefinition(reportDefinition);
144     }
145     catch (RemoteException JavaDoc e) {
146       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-saveReportDefinition(ReportDefinition reportDefinition)"}), e);
147     }
148   }
149
150   public void saveReportSourceDefinition(ReportSourceDefinition reportSourceDefinition) throws InfoException {
151     try {
152       getReportManagerRemote().saveReportSourceDefinition(reportSourceDefinition);
153     }
154     catch (RemoteException JavaDoc e) {
155       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-saveReportSourceDefinition(ReportSourceDefinition reportSourceDefinition)"}), e);
156     }
157   }
158
159   public void invalidateReportSource(String JavaDoc reportSourceDefinitionId) throws InfoException {
160     try {
161       getReportManagerRemote().invalidateReportSource(reportSourceDefinitionId);
162     }
163     catch (RemoteException JavaDoc e) {
164       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-invalidateReportSource(String reportSourceDefinitionId)"}), e);
165     }
166   }
167
168   public ReportQuery getReportQuery(int handle) throws InfoException{
169     try {
170       return getReportManagerRemote().getReportQuery(handle);
171     }
172     catch (RemoteException JavaDoc e) {
173       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-getReportQuery(int handle)"}), e);
174     }
175   }
176
177   public ReportQuery getDefaultReportQuery(int handle) throws InfoException {
178     try {
179       return getReportManagerRemote().getDefaultReportQuery(handle);
180     }
181     catch (RemoteException JavaDoc e) {
182       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-getDefaultReportQuery(int handle)"}), e);
183     }
184   }
185
186   public ReportQuery getReportQuery(String JavaDoc reportDefinitionId) throws InfoException{
187     try {
188       return getReportManagerRemote().getReportQuery(reportDefinitionId);
189     }
190     catch (RemoteException JavaDoc e) {
191       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-getReportQuery(String reportDefinitionId)"}), e);
192     }
193   }
194
195   public ReportQuery getDefaultReportQuery(String JavaDoc reportDefinitionId) throws InfoException{
196     try {
197       return getReportManagerRemote().getDefaultReportQuery(reportDefinitionId);
198     }
199     catch (RemoteException JavaDoc e) {
200       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-getDefaultReportQuery(String reportDefinitionId)"}), e);
201     }
202   }
203
204   public ReportResult ExecReportQuery(int handle, Map paramValues) throws InfoException {
205     try {
206       return getReportManagerRemote().ExecReportQuery(handle, paramValues);
207     }
208     catch (RemoteException JavaDoc e) {
209       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-ExecReportQuery(int handle, Map paramValues)"}), e);
210     }
211   }
212
213   public ReportResult ExecReportQuery(int handle, ReportQuery query) throws InfoException{
214     try {
215       return getReportManagerRemote().ExecReportQuery(handle, query);
216     }
217     catch (RemoteException JavaDoc e) {
218       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-ExecReportQuery(int handle, ReportQuery query)"}), e);
219     }
220   }
221
222   public ReportResult ExecReportQuery(String JavaDoc reportDefinitionID, Map paramValues) throws InfoException {
223     try {
224       return getReportManagerRemote().ExecReportQuery(reportDefinitionID, paramValues);
225     }
226     catch (RemoteException JavaDoc e) {
227       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-ExecReportQuery(String reportDefinitionID, Map paramValues)"}), e);
228     }
229   }
230
231
232   public ReportResult ExecReportQuery(String JavaDoc reportDefId, ReportQuery query) throws InfoException {
233     try {
234       return getReportManagerRemote().ExecReportQuery(reportDefId, query);
235     }
236     catch (RemoteException JavaDoc e) {
237      throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-ExecReportQuery(String reportDefId, ReportQuery query)"}), e);
238     }
239   }
240
241   public ReportQuery getDefaultReportQuery(int handle,String JavaDoc userID) throws InfoException{
242     try {
243       return getReportManagerRemote().getDefaultReportQuery(handle, userID);
244     }
245     catch (RemoteException JavaDoc e) {
246       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-getDefaultReportQuery(int handle,String userID)"}), e);
247     }
248   };
249
250   public Map getReportViews(String JavaDoc reportDefinitionID, String JavaDoc userID) throws InfoException{
251     try {
252       return getReportManagerRemote().getReportViews(reportDefinitionID, userID);
253     }
254     catch (RemoteException JavaDoc e) {
255       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-getReportViews(String reportDefinitionID, String userID)"}), e);
256     }
257   };
258
259   public Map getReportViews(String JavaDoc reportDefinitionID) throws InfoException{
260     try {
261       return getReportManagerRemote().getReportViews(reportDefinitionID);
262     }
263     catch (RemoteException JavaDoc e) {
264       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-getReportViews(String reportDefinitionID)"}), e);
265     }
266   };
267
268   public ReportResult ExecReportQuery(int handle, String JavaDoc reportViewId) throws InfoException{
269     try {
270       return getReportManagerRemote().ExecReportQuery(handle, reportViewId);
271     }
272     catch (RemoteException JavaDoc e) {
273       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-ExecReportQuery(int handle, String reportViewId)"}), e);
274     }
275   };
276
277   public ReportSpec getReportSpec(String JavaDoc reportDefinitionId, String JavaDoc reportSourceDefId) throws InfoException {
278     try {
279       return getReportManagerRemote().getReportSpec(reportDefinitionId, reportSourceDefId);
280     }
281     catch (RemoteException JavaDoc e) {
282       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-getReportSpec(String reportDefinitionId, String reportSourceDefId)"}), e);
283     }
284   }
285
286   public ReportSpec getReportSpec(ReportDefinition reportDefinition, ReportSourceDefinition reportSourceDef) throws InfoException {
287     try {
288       return getReportManagerRemote().getReportSpec(reportDefinition, reportSourceDef);
289     }
290     catch (RemoteException JavaDoc e) {
291       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"getReportSpec(ReportDefinition reportDefinition, ReportSourceDefinition reportSourceDef)"}), e);
292     }
293   }
294
295   public ReportSpec getReportSpec(String JavaDoc reportDefinitionId) throws InfoException {
296     try {
297       return getReportManagerRemote().getReportSpec(reportDefinitionId);
298     }
299     catch (RemoteException JavaDoc e) {
300       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-getReportSpec(String reportDefinitionId)"}), e);
301     }
302   }
303
304   public ReportView getReportView(String JavaDoc reportViewId) throws InfoException {
305     try {
306       return getReportManagerRemote().getReportView(reportViewId);
307     }
308     catch (RemoteException JavaDoc e) {
309       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-getReportView(String reportViewId)"}), e);
310     }
311   }
312
313   public void saveReportView(ReportView reportView) throws InfoException {
314     try {
315       getReportManagerRemote().saveReportView(reportView);
316     }
317     catch (RemoteException JavaDoc e) {
318       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-saveReportView(ReportView reportView)"}), e);
319     }
320   }
321
322   public ReportView getReportViewFromID(String JavaDoc id, String JavaDoc reportDefinitionId, String JavaDoc userId) throws InfoException {
323     try {
324       return getReportManagerRemote().getReportViewFromID(id, reportDefinitionId, userId);
325     }
326     catch (RemoteException JavaDoc e) {
327       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-getReportViewFromID(String id, String reportDefinitionId, String userId)"}), e);
328     }
329   }
330
331   public ReportResult ExecReportQuery(int handle, ReportView reportView) throws InfoException {
332     try {
333       return getReportManagerRemote().ExecReportQuery(handle, reportView);
334     }
335     catch (RemoteException JavaDoc e) {
336       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-ExecReportQuery(int handle, ReportView reportView)"}), e);
337     }
338   }
339
340   public void registerDefinitions() throws InfoException {
341     try {
342       getReportManagerRemote().registerDefinitions();
343     }
344     catch (RemoteException JavaDoc e) {
345       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-registerDefinitions()"}), e);
346     }
347   }
348
349   public void deleteAllRepositories() throws InfoException {
350     try {
351       getReportManagerRemote().deleteAllRepositories();
352     }
353     catch (RemoteException JavaDoc e) {
354       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-deleteAllRepositories()"}), e);
355     }
356   }
357
358   public void deleteAllDefinitions() throws InfoException {
359     try {
360       getReportManagerRemote().deleteAllDefinitions();
361     }
362     catch (RemoteException JavaDoc e) {
363       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-deleteAllDefinitions()"}), e);
364     }
365   }
366
367   public void deleteReportSourceRepository() throws InfoException {
368     try {
369       getReportManagerRemote().deleteReportSourceRepository();
370     }
371     catch (RemoteException JavaDoc e) {
372       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-deleteReportSourceRepository()"}), e);
373     }
374   }
375
376   public void deleteReportSourceDefinitionRepository() throws InfoException {
377     try {
378       getReportManagerRemote().deleteReportSourceDefinitionRepository();
379     }
380     catch (RemoteException JavaDoc e) {
381       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-deleteReportSourceDefinitionRepository()"}), e);
382     }
383   }
384
385   public void deleteReportDefinitionRepository() throws InfoException {
386     try {
387       getReportManagerRemote().deleteReportDefinitionRepository();
388     }
389     catch (RemoteException JavaDoc e) {
390       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-deleteReportDefinitionRepository()"}), e);
391     }
392   }
393
394   public void deleteReportViewRepository() throws InfoException {
395     try {
396       getReportManagerRemote().deleteReportViewRepository();
397     }
398     catch (RemoteException JavaDoc e) {
399       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-deleteReportViewRepository()"}), e);
400     }
401   }
402
403   public void deleteReportView(String JavaDoc id, String JavaDoc reportDefinitionId, String JavaDoc userId) throws InfoException {
404     try {
405       getReportManagerRemote().deleteReportView(id,reportDefinitionId,userId);
406     }
407     catch (RemoteException JavaDoc e) {
408       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-deleteReportView(String id, String reportDefinitionId, String userId)"}), e);
409     }
410   }
411
412   public void deleteReportSource(String JavaDoc reportSourceDefinitionId) throws InfoException {
413     try {
414       getReportManagerRemote().deleteReportSource(reportSourceDefinitionId);
415     }
416     catch (RemoteException JavaDoc e) {
417       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-deleteReportSource(String reportSourceDefinitionId)"}), e);
418     }
419   }
420
421   public void deleteReportSourceDefinition(String JavaDoc reportSourceDefinitionID) throws InfoException {
422     try {
423       getReportManagerRemote().deleteReportSourceDefinition(reportSourceDefinitionID);
424     }
425     catch (RemoteException JavaDoc e) {
426       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-deleteReportSourceDefinition(String reportSourceDefinitionID)"}), e);
427     }
428   }
429
430   public void deleteReportDefinition(String JavaDoc reportDefinitionID) throws InfoException {
431     try {
432       getReportManagerRemote().deleteReportDefinition(reportDefinitionID);
433     }
434     catch (RemoteException JavaDoc e) {
435       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-deleteReportDefinition(String reportDefinitionID)"}), e);
436     }
437   }
438
439   public void assingDefaultView(String JavaDoc id, String JavaDoc reportDefinitionId, String JavaDoc userId) throws InfoException {
440     try {
441       getReportManagerRemote().assingDefaultView(id, reportDefinitionId, userId);
442     }
443     catch (RemoteException JavaDoc e) {
444       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-assingDefaultView(String id, String reportDefinitionId, String userId)"}), e);
445     }
446   }
447
448   public ReportResult ExecReportQuery(MicroReport microReport) throws InfoException {
449     try {
450       return getReportManagerRemote().ExecReportQuery(microReport);
451     }
452     catch (RemoteException JavaDoc e) {
453       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-ExecReportQuery(MicroReport microReport)"}), e);
454     }
455   }
456
457   public int PrepareReport(MicroReport microReport) throws InfoException {
458     try {
459       return getReportManagerRemote().PrepareReport(microReport);
460     }
461     catch (RemoteException JavaDoc e) {
462       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-PrepareReport(MicroReport microReport)"}), e);
463     }
464
465   }
466
467     public String JavaDoc getXML(int handle) throws InfoException {
468     try {
469       return getReportManagerRemote().getXML(handle);
470     }
471     catch (RemoteException JavaDoc e) {
472       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-getXML(int handle)"}), e);
473     }
474
475   }
476
477   public String JavaDoc getXML(String JavaDoc reportDefinitionID, Map paramValues) throws InfoException {
478     try {
479       return getReportManagerRemote().getXML(reportDefinitionID,paramValues);
480     }
481     catch (RemoteException JavaDoc e) {
482       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-getXML(String reportDefinitionID, Map paramValues)"}), e);
483     }
484   }
485
486   public Set getDimensionValues(int handle, String JavaDoc name) throws InfoException {
487     try {
488       return getReportManagerRemote().getDimensionValues(handle,name);
489     }
490     catch (RemoteException JavaDoc e) {
491       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-getDimensionValues(int handle, String name)"}), e);
492     }
493
494   }
495
496   public Set getDimensionValues(String JavaDoc reportDefinitionID, Map paramValues, String JavaDoc name) throws InfoException {
497     try {
498       return getReportManagerRemote().getDimensionValues(reportDefinitionID,paramValues,name);
499     }
500     catch (RemoteException JavaDoc e) {
501       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-getDimensionValues(String reportDefinitionID, Map paramValues, String name)"}), e);
502     }
503  }
504
505   public Vector getUpdatedDataModel(int handle, int mode, int row, int col, boolean isDistributed) throws InfoException {
506     try {
507       return getReportManagerRemote().getUpdatedDataModel(handle,mode,row,col, isDistributed);
508     }
509     catch (RemoteException JavaDoc e) {
510       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-getUpdatedDataModel(int handle, int mode, int row, int col, boolean isDistributed) "}), e);
511     }
512   }
513
514   public Matrix getMatrix(int handle) throws InfoException {
515     try {
516       return getReportManagerRemote().getMatrix(handle);
517     }
518     catch (RemoteException JavaDoc e) {
519       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-getMatrix(int handle) "}), e);
520     }
521
522   }
523
524   public ReportDefinition getReportDefinitionFromID(String JavaDoc reportDefinitionId) throws InfoException {
525     try {
526       return getReportManagerRemote().getReportDefinitionFromID(reportDefinitionId);
527     }
528     catch (RemoteException JavaDoc e) {
529       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-getReportDefinitionFromID(String reportDefinitionId) "}), e);
530     }
531   }
532
533   public ReportSourceDefinition getReportSourceDefinitionFromID(String JavaDoc reportSourceDefinitionId) throws InfoException {
534     try {
535       return getReportManagerRemote().getReportSourceDefinitionFromID(reportSourceDefinitionId);
536     }
537     catch (RemoteException JavaDoc e) {
538       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-getReportSourceDefinitionFromID(String reportSourceDefinitionId) "}), e);
539     }
540   }
541
542   public void init(ReportGeneratorConfiguration reportGeneratorConfiguration) throws InfoException {
543   }
544
545   public boolean validateUser(String JavaDoc userName, String JavaDoc password, String JavaDoc userRepositoryPath) throws InfoException {
546     try {
547       return getReportManagerRemote().validateUser(userName, password, userRepositoryPath);
548     }
549     catch (RemoteException JavaDoc e) {
550       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-validateUser()) "}), e);
551     }
552   }
553
554   public boolean validateRol(String JavaDoc[] roles, String JavaDoc userName, String JavaDoc rolRepositoryPath) throws InfoException {
555     try {
556       return getReportManagerRemote().validateRol(roles, userName, rolRepositoryPath);
557     }
558     catch (RemoteException JavaDoc e) {
559       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-valdateRol()) "}), e);
560     }
561   }
562
563   public void exportReport(String JavaDoc userName, String JavaDoc password, String JavaDoc userRepositoryPath, String JavaDoc reportDefinitionId, Map paramValues, boolean isLandscape, int type, String JavaDoc destinationPath, String JavaDoc name) throws InfoException {
564     try {
565       getReportManagerRemote().exportReport(userName, password, userRepositoryPath, reportDefinitionId, paramValues, isLandscape, type, destinationPath, name);
566     }
567     catch (RemoteException JavaDoc e) {
568       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-exportReport()) "}), e);
569     }
570
571   }
572
573   public byte[] exportReport(Map params) throws InfoException {
574     try {
575       return getReportManagerRemote().exportReport(params);
576     }
577     catch (RemoteException JavaDoc e) {
578       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-exportReport()) "}), e);
579     }
580   }
581
582   public boolean addNewUser(String JavaDoc rootPasswd, String JavaDoc userName, String JavaDoc password, String JavaDoc userRepositoryPath) throws InfoException {
583     try {
584       return getReportManagerRemote().addNewUser(rootPasswd, userName, password, userRepositoryPath);
585     } catch (RemoteException JavaDoc e) {
586       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-addNewUser()) "}), e);
587     }
588   }
589
590   public void addUserRol(String JavaDoc userName, String JavaDoc rol, String JavaDoc rolsRepositoryPath) throws InfoException {
591     try {
592       getReportManagerRemote().addUserRol(userName, rol, rolsRepositoryPath);
593     } catch (RemoteException JavaDoc e) {
594       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-addUserRol()) "}), e);
595     }
596   }
597
598   public boolean isAcceptedLicence() throws InfoException {
599     try {
600       return getReportManagerRemote().isAcceptedLicence();
601     } catch (RemoteException JavaDoc e) {
602       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-isAcceptedLicence()) "}), e);
603     }
604   }
605
606   public void acceptedLicence(boolean value) throws InfoException {
607     try {
608       getReportManagerRemote().acceptedLicence(value);
609     } catch (RemoteException JavaDoc e) {
610       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-acceptedLicence(value)) "}), e);
611     }
612   }
613
614
615   public void addUserData(String JavaDoc userName, String JavaDoc name, String JavaDoc company, String JavaDoc userDataRepositoryPath) throws InfoException {
616     try {
617       getReportManagerRemote().addUserData(userName, name, company, userDataRepositoryPath);
618     } catch (RemoteException JavaDoc e) {
619       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-addUserData()) "}), e);
620     }
621   }
622
623   public MicroReport getMicroReport(String JavaDoc fileName) throws InfoException {
624     try {
625       return getReportManagerRemote().getMicroReport(fileName);
626     } catch (RemoteException JavaDoc e) {
627       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-getMicroReport()) "}), e);
628     }
629   }
630
631   public MicroReport getMicroReport(String JavaDoc reportDefinitionId, Map param) throws InfoException {
632     try {
633       return getReportManagerRemote().getMicroReport(reportDefinitionId,param);
634     } catch (RemoteException JavaDoc e) {
635       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-getMicroReport()) "}), e);
636     }
637   }
638
639   public Collection getUserData(String JavaDoc userId, String JavaDoc userDataRepositoryPath) throws InfoException {
640     try {
641       return getReportManagerRemote().getUserData(userId, userDataRepositoryPath);
642     } catch (RemoteException JavaDoc e) {
643       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-getUserData()) "}), e);
644     }
645   }
646
647   public void logClientData(String JavaDoc clientData) throws InfoException {
648     try {
649       getReportManagerRemote().logClientData(clientData);
650     } catch (RemoteException JavaDoc e) {
651       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-logClientData()) "}), e);
652     }
653   }
654
655 /* public ZipOutputStream getMicroReport(int reportHandle, ReportView reportView, String userID, String fileName) throws InfoException {
656     try {
657       return getReportManagerRemote().getMicroReport(reportHandle,reportView,userID,fileName);
658     }
659     catch (RemoteException e) {
660       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object[]{"RemoteReportManagerStateful-getMicroReport(int reportHandle, ReportView reportView, String userID, String fileName)"}), e);
661     }
662   }
663   */

664   public Vector registerReportSourceDefinitions(Vector vector) throws InfoException {
665     try {
666       return getReportManagerRemote().registerReportSourceDefinitions(vector);
667     }
668     catch (RemoteException JavaDoc e) {
669       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-registerReportSourceDefinitions()"}), e);
670     }
671
672   }
673
674   public Vector registerReportDefinitions(Vector vector) throws InfoException {
675     try {
676       return getReportManagerRemote().registerReportDefinitions(vector);
677     }
678     catch (RemoteException JavaDoc e) {
679       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-registerReportDefinitions()"}), e);
680     }
681   }
682
683
684   public Vector registerReportViews(Vector vector) throws InfoException {
685     try {
686       return getReportManagerRemote().registerReportViews(vector);
687     }
688     catch (RemoteException JavaDoc e) {
689       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-registerReportViews()"}), e);
690     }
691
692   }
693
694   public String JavaDoc getDefaultReportViewId(String JavaDoc reportDefinitionId, String JavaDoc userId) throws InfoException {
695     try {
696       return getReportManagerRemote().getDefaultReportViewId(reportDefinitionId,userId);
697     }
698     catch (RemoteException JavaDoc e) {
699       throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object JavaDoc[]{"RemoteReportManagerStateful-getDefaultReportViewId(String reportDefinitionId, String userId)"}), e);
700     }
701   }
702
703 }
704
705
Popular Tags