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