KickJava   Java API By Example, From Geeks To Geeks.

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


1 package com.calipso.reportgenerator.common;
2
3 import java.util.Map JavaDoc;
4 import java.util.Set JavaDoc;
5 import java.util.Vector JavaDoc;
6 import java.util.Collection JavaDoc;
7
8 import com.calipso.reportgenerator.reportdefinitions.ReportView;
9 import com.calipso.reportgenerator.reportdefinitions.ReportDefinition;
10 import com.calipso.reportgenerator.reportdefinitions.ReportSourceDefinition;
11 import com.calipso.reportgenerator.reportcalculator.Matrix;
12
13
14
15 /**
16  * Esta interfase es común para permitir el acceso uniforme encapsulando si el ReportManager es local o distribuido
17  * @see com.calipso.reportgenerator.reportmanager.ReportManager
18  */

19 public interface IReportManager {
20   public int PrepareReport(String JavaDoc reportDefinitionID) throws InfoException;
21
22   public int PrepareReport(String JavaDoc reportDefinitionId , Map JavaDoc paramValues) throws InfoException;
23
24   public void ReleaseReport(int handle) throws InfoException;
25
26   public void prepareReportSource(String JavaDoc reportSourceDefinitionId) throws InfoException;
27
28   public Map JavaDoc getReportDefinitions() throws InfoException;
29
30   public Map JavaDoc getReportSourceDefinitions() throws InfoException;
31
32   public Map JavaDoc getReportsForEntity(String JavaDoc entityID) throws InfoException;
33
34   public void ExecuteAction(int handle, String JavaDoc actionName, Object JavaDoc params) throws InfoException;
35
36   public void saveReportDefinition(ReportDefinition reportDefinition) throws InfoException;
37
38   public void saveReportSourceDefinition(ReportSourceDefinition reportSourceDefinition) throws InfoException;
39
40   public void invalidateReportSource(String JavaDoc reportSourceDefinitionId) throws InfoException;
41
42   public ReportQuery getReportQuery(int handle) throws InfoException;
43
44   public ReportQuery getDefaultReportQuery(int handle) throws InfoException;
45
46   public ReportQuery getReportQuery(String JavaDoc reportDefinitionId) throws InfoException;
47
48   public ReportQuery getDefaultReportQuery(String JavaDoc reportDefinitionId) throws InfoException;
49
50   public ReportResult ExecReportQuery(int handle, Map JavaDoc paramValues) throws InfoException;
51
52   public ReportResult ExecReportQuery(int handle, ReportQuery query) throws InfoException;
53
54   public ReportResult ExecReportQuery(String JavaDoc reportDefinitionID, Map JavaDoc paramValues) throws InfoException;
55
56   public ReportResult ExecReportQuery(String JavaDoc reportDefinitionID, ReportQuery query) throws InfoException;
57
58   public ReportQuery getDefaultReportQuery(int handle,String JavaDoc userID) throws InfoException;
59
60   public Map JavaDoc getReportViews(String JavaDoc reportDefinitionID, String JavaDoc userID) throws InfoException;
61
62   public Map JavaDoc getReportViews(String JavaDoc reportDefinitionID) throws InfoException;
63
64   public ReportResult ExecReportQuery(int handle, String JavaDoc reportViewId) throws InfoException;
65
66   public String JavaDoc getDefaultReportViewId(String JavaDoc reportDefinitionId, String JavaDoc userId) throws InfoException;
67
68   public ReportSpec getReportSpec(String JavaDoc reportDefinitionId, String JavaDoc reportSourceDefId) throws InfoException;
69
70   public ReportSpec getReportSpec(ReportDefinition reportDefinition, ReportSourceDefinition reportSourceDef) throws InfoException;
71
72   public ReportSpec getReportSpec(String JavaDoc reportDefinitionId) throws InfoException;
73
74   public ReportView getReportView(String JavaDoc reportViewId) throws InfoException;
75
76   public void saveReportView(ReportView reportView) throws InfoException;
77
78   public ReportView getReportViewFromID(String JavaDoc id,String JavaDoc reportDefinitionId,String JavaDoc userId) throws InfoException;
79
80   public ReportResult ExecReportQuery(int handle, ReportView reportView) throws InfoException;
81
82   public void registerDefinitions() throws InfoException;
83
84   public Vector JavaDoc registerReportSourceDefinitions(Vector JavaDoc exceptions) throws InfoException;
85
86   public Vector JavaDoc registerReportDefinitions(Vector JavaDoc exceptions) throws InfoException;
87
88   public Vector JavaDoc registerReportViews(Vector JavaDoc exceptions) throws InfoException;
89
90   public void deleteAllRepositories() throws InfoException;
91
92   public void deleteAllDefinitions() throws InfoException;
93
94   public void deleteReportSourceRepository() throws InfoException;
95
96   public void deleteReportSourceDefinitionRepository() throws InfoException;
97
98   public void deleteReportDefinitionRepository() throws InfoException;
99
100   public void deleteReportViewRepository() throws InfoException;
101
102   public void deleteReportView(String JavaDoc id, String JavaDoc reportDefinitionId, String JavaDoc userId) throws InfoException;
103
104   public void deleteReportSource(String JavaDoc reportSourceDefinitionId) throws InfoException;
105
106   public void deleteReportSourceDefinition(String JavaDoc reportSourceDefinitionID) throws InfoException;
107
108   public void deleteReportDefinition(String JavaDoc reportDefinitionID) throws InfoException;
109
110   public void assingDefaultView(String JavaDoc id, String JavaDoc reportDefinitionId, String JavaDoc userId) throws InfoException;
111
112   public ReportResult ExecReportQuery(MicroReport microReport) throws InfoException;
113
114   public int PrepareReport(MicroReport microReport) throws InfoException;
115
116 // public ZipOutputStream getMicroReport(int reportHandle, ReportView reportView,String userID,String fileName) throws InfoException;
117

118   public String JavaDoc getXML(int handle) throws InfoException;
119
120   public String JavaDoc getXML(String JavaDoc reportDefinitionID, Map JavaDoc paramValues) throws InfoException;
121
122   public Set JavaDoc getDimensionValues(int handle, String JavaDoc name) throws InfoException;
123
124   public Set JavaDoc getDimensionValues(String JavaDoc reportDefinitionID, Map JavaDoc paramValues, String JavaDoc name) throws InfoException;
125
126   public Vector JavaDoc getUpdatedDataModel(int handle, int mode, int row, int col, boolean isDistributed) throws InfoException;
127
128   public Matrix getMatrix(int handle) throws InfoException;
129
130   public ReportDefinition getReportDefinitionFromID(String JavaDoc reportDefinitionId) throws InfoException;
131
132   public ReportSourceDefinition getReportSourceDefinitionFromID(String JavaDoc reportSourceDefinitionId) throws InfoException;
133
134   public void init(ReportGeneratorConfiguration reportGeneratorConfiguration) throws InfoException;
135
136   public boolean validateUser(String JavaDoc userName, String JavaDoc password, String JavaDoc userRepositoryPath) throws InfoException;
137
138   public boolean validateRol(String JavaDoc[] roles, String JavaDoc userName, String JavaDoc rolRepositoryPath) throws InfoException;
139
140   public void exportReport(String JavaDoc userName, String JavaDoc password,String JavaDoc userRepositoryPath, String JavaDoc reportDefinitionId, Map JavaDoc paramValues, boolean isLandscape, int type, String JavaDoc destinationPath, String JavaDoc name) throws InfoException;
141
142   public byte[] exportReport(Map JavaDoc params) throws InfoException;
143
144   public boolean addNewUser(String JavaDoc rootPasswd, String JavaDoc userName, String JavaDoc password, String JavaDoc userRepositoryPath) throws InfoException;
145
146   public void addUserData(String JavaDoc userName,String JavaDoc name,String JavaDoc company, String JavaDoc userDataRepositoryPath) throws InfoException;
147
148   public MicroReport getMicroReport(String JavaDoc fileName) throws InfoException;
149
150   public MicroReport getMicroReport(String JavaDoc reportDefinitionId,Map JavaDoc param) throws InfoException;
151
152   public Collection JavaDoc getUserData(String JavaDoc userId, String JavaDoc userDataRepositoryPath) throws InfoException;
153
154   public void logClientData(String JavaDoc clientData) throws InfoException;
155
156   public void addUserRol(String JavaDoc userName, String JavaDoc rol, String JavaDoc rolsRepositoryPath) throws InfoException;
157
158   public boolean isAcceptedLicence() throws InfoException;
159
160   public void acceptedLicence(boolean value) throws InfoException;
161
162
163   
164 }
165
Popular Tags