001: package com.calipso.reportgenerator.common;
002:
003: import java.util.Map;
004: import java.util.Set;
005: import java.util.Vector;
006: import java.util.Collection;
007:
008: import com.calipso.reportgenerator.reportdefinitions.ReportView;
009: import com.calipso.reportgenerator.reportdefinitions.ReportDefinition;
010: import com.calipso.reportgenerator.reportdefinitions.ReportSourceDefinition;
011: import com.calipso.reportgenerator.reportcalculator.Matrix;
012:
013: /**
014: * Esta interfase es común para permitir el acceso uniforme encapsulando si el ReportManager es local o distribuido
015: * @see com.calipso.reportgenerator.reportmanager.ReportManager
016: */
017: public interface IReportManager {
018: public int PrepareReport(String reportDefinitionID)
019: throws InfoException;
020:
021: public int PrepareReport(String reportDefinitionId, Map paramValues)
022: throws InfoException;
023:
024: public void ReleaseReport(int handle) throws InfoException;
025:
026: public void prepareReportSource(String reportSourceDefinitionId)
027: throws InfoException;
028:
029: public Map getReportDefinitions() throws InfoException;
030:
031: public Map getReportSourceDefinitions() throws InfoException;
032:
033: public Map getReportsForEntity(String entityID)
034: throws InfoException;
035:
036: public void ExecuteAction(int handle, String actionName,
037: Object params) throws InfoException;
038:
039: public void saveReportDefinition(ReportDefinition reportDefinition)
040: throws InfoException;
041:
042: public void saveReportSourceDefinition(
043: ReportSourceDefinition reportSourceDefinition)
044: throws InfoException;
045:
046: public void invalidateReportSource(String reportSourceDefinitionId)
047: throws InfoException;
048:
049: public ReportQuery getReportQuery(int handle) throws InfoException;
050:
051: public ReportQuery getDefaultReportQuery(int handle)
052: throws InfoException;
053:
054: public ReportQuery getReportQuery(String reportDefinitionId)
055: throws InfoException;
056:
057: public ReportQuery getDefaultReportQuery(String reportDefinitionId)
058: throws InfoException;
059:
060: public ReportResult ExecReportQuery(int handle, Map paramValues)
061: throws InfoException;
062:
063: public ReportResult ExecReportQuery(int handle, ReportQuery query)
064: throws InfoException;
065:
066: public ReportResult ExecReportQuery(String reportDefinitionID,
067: Map paramValues) throws InfoException;
068:
069: public ReportResult ExecReportQuery(String reportDefinitionID,
070: ReportQuery query) throws InfoException;
071:
072: public ReportQuery getDefaultReportQuery(int handle, String userID)
073: throws InfoException;
074:
075: public Map getReportViews(String reportDefinitionID, String userID)
076: throws InfoException;
077:
078: public Map getReportViews(String reportDefinitionID)
079: throws InfoException;
080:
081: public ReportResult ExecReportQuery(int handle, String reportViewId)
082: throws InfoException;
083:
084: public String getDefaultReportViewId(String reportDefinitionId,
085: String userId) throws InfoException;
086:
087: public ReportSpec getReportSpec(String reportDefinitionId,
088: String reportSourceDefId) throws InfoException;
089:
090: public ReportSpec getReportSpec(ReportDefinition reportDefinition,
091: ReportSourceDefinition reportSourceDef)
092: throws InfoException;
093:
094: public ReportSpec getReportSpec(String reportDefinitionId)
095: throws InfoException;
096:
097: public ReportView getReportView(String reportViewId)
098: throws InfoException;
099:
100: public void saveReportView(ReportView reportView)
101: throws InfoException;
102:
103: public ReportView getReportViewFromID(String id,
104: String reportDefinitionId, String userId)
105: throws InfoException;
106:
107: public ReportResult ExecReportQuery(int handle,
108: ReportView reportView) throws InfoException;
109:
110: public void registerDefinitions() throws InfoException;
111:
112: public Vector registerReportSourceDefinitions(Vector exceptions)
113: throws InfoException;
114:
115: public Vector registerReportDefinitions(Vector exceptions)
116: throws InfoException;
117:
118: public Vector registerReportViews(Vector exceptions)
119: throws InfoException;
120:
121: public void deleteAllRepositories() throws InfoException;
122:
123: public void deleteAllDefinitions() throws InfoException;
124:
125: public void deleteReportSourceRepository() throws InfoException;
126:
127: public void deleteReportSourceDefinitionRepository()
128: throws InfoException;
129:
130: public void deleteReportDefinitionRepository() throws InfoException;
131:
132: public void deleteReportViewRepository() throws InfoException;
133:
134: public void deleteReportView(String id, String reportDefinitionId,
135: String userId) throws InfoException;
136:
137: public void deleteReportSource(String reportSourceDefinitionId)
138: throws InfoException;
139:
140: public void deleteReportSourceDefinition(
141: String reportSourceDefinitionID) throws InfoException;
142:
143: public void deleteReportDefinition(String reportDefinitionID)
144: throws InfoException;
145:
146: public void assingDefaultView(String id, String reportDefinitionId,
147: String userId) throws InfoException;
148:
149: public ReportResult ExecReportQuery(MicroReport microReport)
150: throws InfoException;
151:
152: public int PrepareReport(MicroReport microReport)
153: throws InfoException;
154:
155: // public ZipOutputStream getMicroReport(int reportHandle, ReportView reportView,String userID,String fileName) throws InfoException;
156:
157: public String getXML(int handle) throws InfoException;
158:
159: public String getXML(String reportDefinitionID, Map paramValues)
160: throws InfoException;
161:
162: public Set getDimensionValues(int handle, String name)
163: throws InfoException;
164:
165: public Set getDimensionValues(String reportDefinitionID,
166: Map paramValues, String name) throws InfoException;
167:
168: public Vector getUpdatedDataModel(int handle, int mode, int row,
169: int col, boolean isDistributed) throws InfoException;
170:
171: public Matrix getMatrix(int handle) throws InfoException;
172:
173: public ReportDefinition getReportDefinitionFromID(
174: String reportDefinitionId) throws InfoException;
175:
176: public ReportSourceDefinition getReportSourceDefinitionFromID(
177: String reportSourceDefinitionId) throws InfoException;
178:
179: public void init(
180: ReportGeneratorConfiguration reportGeneratorConfiguration)
181: throws InfoException;
182:
183: public boolean validateUser(String userName, String password,
184: String userRepositoryPath) throws InfoException;
185:
186: public boolean validateRol(String[] roles, String userName,
187: String rolRepositoryPath) throws InfoException;
188:
189: public void exportReport(String userName, String password,
190: String userRepositoryPath, String reportDefinitionId,
191: Map paramValues, boolean isLandscape, int type,
192: String destinationPath, String name) throws InfoException;
193:
194: public byte[] exportReport(Map params) throws InfoException;
195:
196: public boolean addNewUser(String rootPasswd, String userName,
197: String password, String userRepositoryPath)
198: throws InfoException;
199:
200: public void addUserData(String userName, String name,
201: String company, String userDataRepositoryPath)
202: throws InfoException;
203:
204: public MicroReport getMicroReport(String fileName)
205: throws InfoException;
206:
207: public MicroReport getMicroReport(String reportDefinitionId,
208: Map param) throws InfoException;
209:
210: public Collection getUserData(String userId,
211: String userDataRepositoryPath) throws InfoException;
212:
213: public void logClientData(String clientData) throws InfoException;
214:
215: public void addUserRol(String userName, String rol,
216: String rolsRepositoryPath) throws InfoException;
217:
218: public boolean isAcceptedLicence() throws InfoException;
219:
220: public void acceptedLicence(boolean value) throws InfoException;
221:
222: }
|