1 package com.calipso.reportgenerator.common; 2 3 import java.util.Map ; 4 import java.util.Set ; 5 import java.util.Vector ; 6 import java.util.Collection ; 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 19 public interface IReportManager { 20 public int PrepareReport(String reportDefinitionID) throws InfoException; 21 22 public int PrepareReport(String reportDefinitionId , Map paramValues) throws InfoException; 23 24 public void ReleaseReport(int handle) throws InfoException; 25 26 public void prepareReportSource(String reportSourceDefinitionId) throws InfoException; 27 28 public Map getReportDefinitions() throws InfoException; 29 30 public Map getReportSourceDefinitions() throws InfoException; 31 32 public Map getReportsForEntity(String entityID) throws InfoException; 33 34 public void ExecuteAction(int handle, String actionName, Object 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 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 reportDefinitionId) throws InfoException; 47 48 public ReportQuery getDefaultReportQuery(String reportDefinitionId) throws InfoException; 49 50 public ReportResult ExecReportQuery(int handle, Map paramValues) throws InfoException; 51 52 public ReportResult ExecReportQuery(int handle, ReportQuery query) throws InfoException; 53 54 public ReportResult ExecReportQuery(String reportDefinitionID, Map paramValues) throws InfoException; 55 56 public ReportResult ExecReportQuery(String reportDefinitionID, ReportQuery query) throws InfoException; 57 58 public ReportQuery getDefaultReportQuery(int handle,String userID) throws InfoException; 59 60 public Map getReportViews(String reportDefinitionID, String userID) throws InfoException; 61 62 public Map getReportViews(String reportDefinitionID) throws InfoException; 63 64 public ReportResult ExecReportQuery(int handle, String reportViewId) throws InfoException; 65 66 public String getDefaultReportViewId(String reportDefinitionId, String userId) throws InfoException; 67 68 public ReportSpec getReportSpec(String reportDefinitionId, String reportSourceDefId) throws InfoException; 69 70 public ReportSpec getReportSpec(ReportDefinition reportDefinition, ReportSourceDefinition reportSourceDef) throws InfoException; 71 72 public ReportSpec getReportSpec(String reportDefinitionId) throws InfoException; 73 74 public ReportView getReportView(String reportViewId) throws InfoException; 75 76 public void saveReportView(ReportView reportView) throws InfoException; 77 78 public ReportView getReportViewFromID(String id,String reportDefinitionId,String 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 registerReportSourceDefinitions(Vector exceptions) throws InfoException; 85 86 public Vector registerReportDefinitions(Vector exceptions) throws InfoException; 87 88 public Vector registerReportViews(Vector 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 id, String reportDefinitionId, String userId) throws InfoException; 103 104 public void deleteReportSource(String reportSourceDefinitionId) throws InfoException; 105 106 public void deleteReportSourceDefinition(String reportSourceDefinitionID) throws InfoException; 107 108 public void deleteReportDefinition(String reportDefinitionID) throws InfoException; 109 110 public void assingDefaultView(String id, String reportDefinitionId, String userId) throws InfoException; 111 112 public ReportResult ExecReportQuery(MicroReport microReport) throws InfoException; 113 114 public int PrepareReport(MicroReport microReport) throws InfoException; 115 116 118 public String getXML(int handle) throws InfoException; 119 120 public String getXML(String reportDefinitionID, Map paramValues) throws InfoException; 121 122 public Set getDimensionValues(int handle, String name) throws InfoException; 123 124 public Set getDimensionValues(String reportDefinitionID, Map paramValues, String name) throws InfoException; 125 126 public Vector 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 reportDefinitionId) throws InfoException; 131 132 public ReportSourceDefinition getReportSourceDefinitionFromID(String reportSourceDefinitionId) throws InfoException; 133 134 public void init(ReportGeneratorConfiguration reportGeneratorConfiguration) throws InfoException; 135 136 public boolean validateUser(String userName, String password, String userRepositoryPath) throws InfoException; 137 138 public boolean validateRol(String [] roles, String userName, String rolRepositoryPath) throws InfoException; 139 140 public void exportReport(String userName, String password,String userRepositoryPath, String reportDefinitionId, Map paramValues, boolean isLandscape, int type, String destinationPath, String name) throws InfoException; 141 142 public byte[] exportReport(Map params) throws InfoException; 143 144 public boolean addNewUser(String rootPasswd, String userName, String password, String userRepositoryPath) throws InfoException; 145 146 public void addUserData(String userName,String name,String company, String userDataRepositoryPath) throws InfoException; 147 148 public MicroReport getMicroReport(String fileName) throws InfoException; 149 150 public MicroReport getMicroReport(String reportDefinitionId,Map param) throws InfoException; 151 152 public Collection getUserData(String userId, String userDataRepositoryPath) throws InfoException; 153 154 public void logClientData(String clientData) throws InfoException; 155 156 public void addUserRol(String userName, String rol, String 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 |