001: package com.calipso.reportgenerator.enterprise.common;
002:
003: import com.calipso.reportgenerator.common.*;
004: import com.calipso.reportgenerator.reportdefinitions.ReportView;
005: import com.calipso.reportgenerator.reportdefinitions.ReportDefinition;
006: import com.calipso.reportgenerator.reportdefinitions.ReportSourceDefinition;
007: import com.calipso.reportgenerator.reportcalculator.Matrix;
008:
009: import java.util.Map;
010: import java.util.Set;
011: import java.util.Vector;
012: import java.util.Collection;
013: import java.rmi.RemoteException;
014:
015: import com.calipso.reportgenerator.common.InfoException;
016:
017: /**
018: * Esta clase representa los métodos sobre los cuales opera el cliente
019: * cuando interactúa con EJB objetcs. El EJB container implementará
020: * esta interface; el objeto implementado es el EJB object, que es
021: * el responsable de delegar las invocaciones al Bean Stateless determinado.
022: * Las métodos correspondientes están implementados en ReportManager.
023: * @see com.calipso.reportgenerator.reportmanager.ReportManager
024: */
025:
026: public interface ReportManagerSL extends javax.ejb.EJBObject {
027:
028: public int PrepareReport(
029: ReportGeneratorConfiguration configuration,
030: String reportDefinitionID) throws InfoException,
031: RemoteException;
032:
033: public int PrepareReport(
034: ReportGeneratorConfiguration configuration,
035: String reportDefinitionId, Map paramValues)
036: throws InfoException, RemoteException;
037:
038: public void ReleaseReport(
039: ReportGeneratorConfiguration configuration, int handle)
040: throws InfoException, RemoteException;
041:
042: public void prepareReportSource(
043: ReportGeneratorConfiguration configuration,
044: String reportSourceDefinitionId) throws InfoException,
045: RemoteException;
046:
047: public Map getReportDefinitions(
048: ReportGeneratorConfiguration configuration)
049: throws InfoException, RemoteException;
050:
051: public Map getReportSourceDefinitions(
052: ReportGeneratorConfiguration configuration)
053: throws InfoException, RemoteException;
054:
055: public Map getReportsForEntity(
056: ReportGeneratorConfiguration configuration, String entityID)
057: throws InfoException, RemoteException;
058:
059: public void ExecuteAction(
060: ReportGeneratorConfiguration configuration, int handle,
061: String actionName, Object params) throws InfoException,
062: RemoteException;
063:
064: public void saveReportDefinition(
065: ReportGeneratorConfiguration configuration,
066: ReportDefinition reportDefinition) throws InfoException,
067: RemoteException;
068:
069: public void saveReportSourceDefinition(
070: ReportGeneratorConfiguration configuration,
071: ReportSourceDefinition reportSourceDefinition)
072: throws InfoException, RemoteException;
073:
074: public void invalidateReportSource(
075: ReportGeneratorConfiguration configuration,
076: String reportSourceDefinitionId) throws InfoException,
077: RemoteException;
078:
079: public ReportQuery getReportQuery(
080: ReportGeneratorConfiguration configuration, int handle)
081: throws InfoException, RemoteException;
082:
083: public ReportQuery getDefaultReportQuery(
084: ReportGeneratorConfiguration configuration, int handle)
085: throws InfoException, RemoteException;
086:
087: public ReportQuery getReportQuery(
088: ReportGeneratorConfiguration configuration,
089: String reportDefinitionId) throws InfoException,
090: RemoteException;
091:
092: public ReportQuery getDefaultReportQuery(
093: ReportGeneratorConfiguration configuration,
094: String reportDefinitionId) throws InfoException,
095: RemoteException;
096:
097: public ReportResult ExecReportQuery(
098: ReportGeneratorConfiguration configuration, int handle,
099: Map paramValues) throws InfoException, RemoteException;
100:
101: public ReportResult ExecReportQuery(
102: ReportGeneratorConfiguration configuration, int handle,
103: ReportQuery query) throws InfoException, RemoteException;
104:
105: public ReportResult ExecReportQuery(
106: ReportGeneratorConfiguration configuration,
107: String reportDefinitionID, Map paramValues)
108: throws InfoException, RemoteException;
109:
110: public ReportResult ExecReportQuery(
111: ReportGeneratorConfiguration configuration,
112: String reportDefinitionID, ReportQuery query)
113: throws InfoException, RemoteException;
114:
115: public ReportQuery getDefaultReportQuery(
116: ReportGeneratorConfiguration configuration, int handle,
117: String userID) throws InfoException, RemoteException;
118:
119: public Map getReportViews(
120: ReportGeneratorConfiguration configuration,
121: String reportDefinitionID, String userID)
122: throws InfoException, RemoteException;
123:
124: public Map getReportViews(
125: ReportGeneratorConfiguration configuration,
126: String reportDefinitionID) throws InfoException,
127: RemoteException;
128:
129: public ReportResult ExecReportQuery(
130: ReportGeneratorConfiguration configuration, int handle,
131: String reportViewId) throws InfoException, RemoteException;
132:
133: public String getDefaultReportViewId(
134: ReportGeneratorConfiguration configuration,
135: String reportDefinitionId, String userId)
136: throws InfoException, RemoteException;
137:
138: public ReportSpec getReportSpec(
139: ReportGeneratorConfiguration configuration,
140: String reportDefinitionId, String reportSourceDefId)
141: throws InfoException, RemoteException;
142:
143: public ReportSpec getReportSpec(
144: ReportGeneratorConfiguration configuration,
145: ReportDefinition reportDefinition,
146: ReportSourceDefinition reportSourceDef)
147: throws InfoException, RemoteException;
148:
149: public ReportSpec getReportSpec(
150: ReportGeneratorConfiguration configuration,
151: String reportDefinitionId) throws InfoException,
152: RemoteException;
153:
154: public void registerDefinitions(
155: ReportGeneratorConfiguration configuration)
156: throws InfoException, RemoteException;
157:
158: public Vector registerReportSourceDefinitions(
159: ReportGeneratorConfiguration configuration, Vector vector)
160: throws InfoException, RemoteException;
161:
162: public Vector registerReportDefinitions(
163: ReportGeneratorConfiguration configuration, Vector vector)
164: throws InfoException, RemoteException;
165:
166: public Vector registerReportViews(
167: ReportGeneratorConfiguration configuration, Vector vector)
168: throws InfoException, RemoteException;
169:
170: public void deleteAllRepositories(
171: ReportGeneratorConfiguration configuration)
172: throws InfoException, RemoteException;
173:
174: public void deleteAllDefinitions(
175: ReportGeneratorConfiguration configuration)
176: throws InfoException, RemoteException;
177:
178: public void deleteReportSourceRepository(
179: ReportGeneratorConfiguration configuration)
180: throws InfoException, RemoteException;
181:
182: public void deleteReportSourceDefinitionRepository(
183: ReportGeneratorConfiguration configuration)
184: throws InfoException, RemoteException;
185:
186: public void deleteReportDefinitionRepository(
187: ReportGeneratorConfiguration configuration)
188: throws InfoException, RemoteException;
189:
190: public void deleteReportViewRepository(
191: ReportGeneratorConfiguration configuration)
192: throws InfoException, RemoteException;
193:
194: public void deleteReportView(
195: ReportGeneratorConfiguration configuration, String id,
196: String reportDefinitionId, String userId)
197: throws InfoException, RemoteException;
198:
199: public void deleteReportSource(
200: ReportGeneratorConfiguration configuration,
201: String reportSourceDefinitionId) throws InfoException,
202: RemoteException;
203:
204: public void deleteReportSourceDefinition(
205: ReportGeneratorConfiguration configuration,
206: String reportSourceDefinitionID) throws InfoException,
207: RemoteException;
208:
209: public void deleteReportDefinition(
210: ReportGeneratorConfiguration configuration,
211: String reportDefinitionID) throws InfoException,
212: RemoteException;
213:
214: public void assingDefaultView(
215: ReportGeneratorConfiguration configuration, String id,
216: String reportDefinitionId, String userId)
217: throws InfoException, RemoteException;
218:
219: public ReportResult ExecReportQuery(
220: ReportGeneratorConfiguration configuration,
221: MicroReport microReport) throws InfoException,
222: RemoteException;
223:
224: public int PrepareReport(
225: ReportGeneratorConfiguration configuration,
226: MicroReport microReport) throws InfoException,
227: RemoteException;
228:
229: // public ZipOutputStream getMicroReport(ReportGeneratorConfiguration configuration, int reportHandle, ReportView reportView,String userID,String fileName) throws InfoException, RemoteException;
230:
231: public String getXML(ReportGeneratorConfiguration configuration,
232: int handle) throws InfoException, RemoteException;
233:
234: public String getXML(ReportGeneratorConfiguration configuration,
235: String reportDefinitionID, Map paramValues)
236: throws InfoException, RemoteException;
237:
238: public Set getDimensionValues(
239: ReportGeneratorConfiguration configuration, int handle,
240: String name) throws InfoException, RemoteException;
241:
242: public Set getDimensionValues(
243: ReportGeneratorConfiguration configuration,
244: String reportDefinitionID, Map paramValues, String name)
245: throws InfoException, RemoteException;
246:
247: public Vector getUpdatedDataModel(
248: ReportGeneratorConfiguration configuration, int handle,
249: int mode, int row, int col, boolean isDistributed)
250: throws InfoException, RemoteException;
251:
252: public ReportView getReportView(
253: ReportGeneratorConfiguration configuration,
254: String reportViewId) throws InfoException, RemoteException;
255:
256: public void saveReportView(
257: ReportGeneratorConfiguration configuration,
258: ReportView reportView) throws InfoException,
259: RemoteException;
260:
261: public ReportView getReportViewFromID(
262: ReportGeneratorConfiguration configuration, String id,
263: String reportDefinitionId, String userId)
264: throws InfoException, RemoteException;
265:
266: public ReportResult ExecReportQuery(
267: ReportGeneratorConfiguration configuration, int handle,
268: ReportView reportView) throws InfoException,
269: RemoteException;
270:
271: public Matrix getMatrix(ReportGeneratorConfiguration configuration,
272: int handle) throws InfoException, RemoteException;
273:
274: public ReportDefinition getReportDefinitionFromID(
275: ReportGeneratorConfiguration configuration,
276: String reportDefinitionId) throws InfoException,
277: RemoteException;
278:
279: public ReportSourceDefinition getReportSourceDefinitionFromID(
280: ReportGeneratorConfiguration configuration,
281: String reportSourceDefinitionId) throws InfoException,
282: RemoteException;
283:
284: public boolean validateUser(
285: ReportGeneratorConfiguration configuration,
286: String userName, String password, String userRepositoryPath)
287: throws InfoException, RemoteException;
288:
289: public void exportReport(
290: ReportGeneratorConfiguration configuration,
291: String userName, String password,
292: String userRepositoryPath, String reportDefinitionId,
293: Map paramValues, boolean isLandscape, int type,
294: String destinationPath, String name) throws InfoException,
295: RemoteException;
296:
297: public byte[] exportReport(
298: ReportGeneratorConfiguration configuration, Map params)
299: throws InfoException, RemoteException;
300:
301: public boolean addNewUser(
302: ReportGeneratorConfiguration configuration,
303: String rootPasswd, String userName, String password,
304: String userRepositoryPath) throws InfoException,
305: RemoteException;
306:
307: public boolean validateRol(
308: ReportGeneratorConfiguration configuration, String[] roles,
309: String userName, String rolRepositoryPath)
310: throws InfoException, RemoteException;
311:
312: public void addUserData(ReportGeneratorConfiguration configuration,
313: String userName, String name, String company,
314: String userDataRepositoryPath) throws InfoException,
315: RemoteException;
316:
317: public MicroReport getMicroReport(
318: ReportGeneratorConfiguration configuration, String fileName)
319: throws InfoException, RemoteException;
320:
321: public MicroReport getMicroReport(
322: ReportGeneratorConfiguration reportGeneratorConfiguration,
323: String reportDefinitionId, Map param) throws InfoException,
324: RemoteException;
325:
326: public Collection getUserData(
327: ReportGeneratorConfiguration reportGeneratorConfiguration,
328: String userId, String userDataRepositoryPath)
329: throws InfoException, RemoteException;
330:
331: public void logClientData(
332: ReportGeneratorConfiguration reportGeneratorConfiguration,
333: String clientData) throws InfoException, RemoteException;
334:
335: public void addUserRol(
336: ReportGeneratorConfiguration reportGeneratorConfiguration,
337: String userName, String rol, String rolsRepositoryPath)
338: throws InfoException, RemoteException;
339:
340: public boolean isAcceptedLicence(
341: ReportGeneratorConfiguration reportGeneratorConfiguration)
342: throws RemoteException, InfoException;
343:
344: public void acceptedLicence(
345: ReportGeneratorConfiguration reportGeneratorConfiguration,
346: boolean value) throws RemoteException, InfoException;
347:
348: }
|