1 package com.calipso.reportgenerator.common; 2 3 import com.calipso.reportgenerator.common.ReportGeneratorConfiguration; 4 import com.calipso.reportgenerator.common.RemoteReportManager; 5 import com.calipso.reportgenerator.enterprise.common.ReportManagerSFHome; 6 import com.calipso.reportgenerator.enterprise.common.ReportManagerSF; 7 import com.calipso.reportgenerator.reportdefinitions.ReportView; 8 import com.calipso.reportgenerator.reportdefinitions.ReportDefinition; 9 import com.calipso.reportgenerator.reportdefinitions.ReportSourceDefinition; 10 import com.calipso.reportgenerator.reportcalculator.Matrix; 11 import javax.naming.Context ; 12 import javax.naming.InitialContext ; 13 import java.rmi.RemoteException ; 14 import java.util.*; 15 import java.text.MessageFormat ; 16 import java.io.Serializable ; 17 18 26 27 public class RemoteReportManagerStateFul extends RemoteReportManager implements Serializable { 28 private ReportManagerSF reportManagerRemote; 29 private String clientIp; 30 31 35 public RemoteReportManagerStateFul(ReportGeneratorConfiguration reportGeneratorConfiguration, String distributedHost) { 36 super(reportGeneratorConfiguration, distributedHost); 37 } 38 39 43 public ReportManagerSF getReportManagerRemote() throws InfoException { 44 if (reportManagerRemote == null) { 45 reportManagerRemote = newReportManagerRemote(); 46 } 47 return reportManagerRemote; 48 } 49 50 56 private ReportManagerSF newReportManagerRemote() throws InfoException { 57 Hashtable env = getEnviroment(); 58 try { 59 Context ctx = new InitialContext (env); 60 Object obj = ctx.lookup(getReportGeneratorConfiguration().getReportManagerEJB_SFName()); 61 ReportManagerSFHome home = (ReportManagerSFHome) javax.rmi.PortableRemoteObject.narrow(obj, ReportManagerSFHome.class); 62 ReportManagerSF reportManager = home.create(getReportGeneratorConfiguration()); 63 return reportManager; 64 } catch (Exception e) { 65 throw new InfoException(LanguageTraslator.traslate("78"), e); 66 } 67 } 68 69 public int PrepareReport(String reportDefId) throws InfoException { 70 try { 71 return getReportManagerRemote().PrepareReport(reportDefId); 72 } 73 catch (RemoteException e) { 74 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-PrepareReport(String reportDefId)"}), e); 75 } 76 } 77 78 public int PrepareReport(String reportDefId, Map paramValues) throws InfoException { 79 try { 80 return getReportManagerRemote().PrepareReport(reportDefId, paramValues); 81 } 82 catch (RemoteException e) { 83 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-PrepareReport(String reportDefId, Map paramValues)"}), e); 84 } 85 } 86 87 public void ReleaseReport(int handle) throws InfoException { 88 try { 89 getReportManagerRemote().ReleaseReport(handle); 90 } 91 catch (RemoteException e) { 92 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-ReleaseReport(int handle)"}), e); 93 } 94 } 95 96 public void prepareReportSource(String reportSourceDefinitionId) throws InfoException { 97 try { 98 getReportManagerRemote().prepareReportSource(reportSourceDefinitionId); 99 } 100 catch (RemoteException e) { 101 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-prepareReportSource(String reportSourceDefinitionId)"}), e); 102 } 103 } 104 105 public Map getReportDefinitions() throws InfoException { 106 try { 107 return getReportManagerRemote().getReportDefinitions(); 108 } 109 catch (RemoteException e) { 110 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-getReportDefinitions()"}), e); 111 } 112 } 113 114 public Map getReportSourceDefinitions() throws InfoException { 115 try { 116 return getReportManagerRemote().getReportSourceDefinitions(); 117 } 118 catch (RemoteException e) { 119 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-getReportSourceDefinitions()"}), e); 120 } 121 } 122 123 public Map getReportsForEntity(String entityID) throws InfoException { 124 try { 125 return getReportManagerRemote().getReportsForEntity(entityID); 126 } 127 catch (RemoteException e) { 128 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-getReportsForEntity(String entityID)"}), e); 129 } 130 } 131 132 public void ExecuteAction(int handle, String actionName, Object params) throws InfoException { 133 try { 134 getReportManagerRemote().ExecuteAction(handle, actionName, params); 135 } 136 catch (RemoteException e) { 137 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-ExecuteAction(int handle, String actionName, Object params)"}), e); 138 } 139 } 140 141 public void saveReportDefinition(ReportDefinition reportDefinition) throws InfoException { 142 try { 143 getReportManagerRemote().saveReportDefinition(reportDefinition); 144 } 145 catch (RemoteException e) { 146 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-saveReportDefinition(ReportDefinition reportDefinition)"}), e); 147 } 148 } 149 150 public void saveReportSourceDefinition(ReportSourceDefinition reportSourceDefinition) throws InfoException { 151 try { 152 getReportManagerRemote().saveReportSourceDefinition(reportSourceDefinition); 153 } 154 catch (RemoteException e) { 155 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-saveReportSourceDefinition(ReportSourceDefinition reportSourceDefinition)"}), e); 156 } 157 } 158 159 public void invalidateReportSource(String reportSourceDefinitionId) throws InfoException { 160 try { 161 getReportManagerRemote().invalidateReportSource(reportSourceDefinitionId); 162 } 163 catch (RemoteException e) { 164 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-invalidateReportSource(String reportSourceDefinitionId)"}), e); 165 } 166 } 167 168 public ReportQuery getReportQuery(int handle) throws InfoException{ 169 try { 170 return getReportManagerRemote().getReportQuery(handle); 171 } 172 catch (RemoteException e) { 173 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-getReportQuery(int handle)"}), e); 174 } 175 } 176 177 public ReportQuery getDefaultReportQuery(int handle) throws InfoException { 178 try { 179 return getReportManagerRemote().getDefaultReportQuery(handle); 180 } 181 catch (RemoteException e) { 182 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-getDefaultReportQuery(int handle)"}), e); 183 } 184 } 185 186 public ReportQuery getReportQuery(String reportDefinitionId) throws InfoException{ 187 try { 188 return getReportManagerRemote().getReportQuery(reportDefinitionId); 189 } 190 catch (RemoteException e) { 191 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-getReportQuery(String reportDefinitionId)"}), e); 192 } 193 } 194 195 public ReportQuery getDefaultReportQuery(String reportDefinitionId) throws InfoException{ 196 try { 197 return getReportManagerRemote().getDefaultReportQuery(reportDefinitionId); 198 } 199 catch (RemoteException e) { 200 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-getDefaultReportQuery(String reportDefinitionId)"}), e); 201 } 202 } 203 204 public ReportResult ExecReportQuery(int handle, Map paramValues) throws InfoException { 205 try { 206 return getReportManagerRemote().ExecReportQuery(handle, paramValues); 207 } 208 catch (RemoteException e) { 209 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-ExecReportQuery(int handle, Map paramValues)"}), e); 210 } 211 } 212 213 public ReportResult ExecReportQuery(int handle, ReportQuery query) throws InfoException{ 214 try { 215 return getReportManagerRemote().ExecReportQuery(handle, query); 216 } 217 catch (RemoteException e) { 218 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-ExecReportQuery(int handle, ReportQuery query)"}), e); 219 } 220 } 221 222 public ReportResult ExecReportQuery(String reportDefinitionID, Map paramValues) throws InfoException { 223 try { 224 return getReportManagerRemote().ExecReportQuery(reportDefinitionID, paramValues); 225 } 226 catch (RemoteException e) { 227 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-ExecReportQuery(String reportDefinitionID, Map paramValues)"}), e); 228 } 229 } 230 231 232 public ReportResult ExecReportQuery(String reportDefId, ReportQuery query) throws InfoException { 233 try { 234 return getReportManagerRemote().ExecReportQuery(reportDefId, query); 235 } 236 catch (RemoteException e) { 237 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-ExecReportQuery(String reportDefId, ReportQuery query)"}), e); 238 } 239 } 240 241 public ReportQuery getDefaultReportQuery(int handle,String userID) throws InfoException{ 242 try { 243 return getReportManagerRemote().getDefaultReportQuery(handle, userID); 244 } 245 catch (RemoteException e) { 246 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-getDefaultReportQuery(int handle,String userID)"}), e); 247 } 248 }; 249 250 public Map getReportViews(String reportDefinitionID, String userID) throws InfoException{ 251 try { 252 return getReportManagerRemote().getReportViews(reportDefinitionID, userID); 253 } 254 catch (RemoteException e) { 255 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-getReportViews(String reportDefinitionID, String userID)"}), e); 256 } 257 }; 258 259 public Map getReportViews(String reportDefinitionID) throws InfoException{ 260 try { 261 return getReportManagerRemote().getReportViews(reportDefinitionID); 262 } 263 catch (RemoteException e) { 264 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-getReportViews(String reportDefinitionID)"}), e); 265 } 266 }; 267 268 public ReportResult ExecReportQuery(int handle, String reportViewId) throws InfoException{ 269 try { 270 return getReportManagerRemote().ExecReportQuery(handle, reportViewId); 271 } 272 catch (RemoteException e) { 273 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-ExecReportQuery(int handle, String reportViewId)"}), e); 274 } 275 }; 276 277 public ReportSpec getReportSpec(String reportDefinitionId, String reportSourceDefId) throws InfoException { 278 try { 279 return getReportManagerRemote().getReportSpec(reportDefinitionId, reportSourceDefId); 280 } 281 catch (RemoteException e) { 282 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-getReportSpec(String reportDefinitionId, String reportSourceDefId)"}), e); 283 } 284 } 285 286 public ReportSpec getReportSpec(ReportDefinition reportDefinition, ReportSourceDefinition reportSourceDef) throws InfoException { 287 try { 288 return getReportManagerRemote().getReportSpec(reportDefinition, reportSourceDef); 289 } 290 catch (RemoteException e) { 291 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"getReportSpec(ReportDefinition reportDefinition, ReportSourceDefinition reportSourceDef)"}), e); 292 } 293 } 294 295 public ReportSpec getReportSpec(String reportDefinitionId) throws InfoException { 296 try { 297 return getReportManagerRemote().getReportSpec(reportDefinitionId); 298 } 299 catch (RemoteException e) { 300 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-getReportSpec(String reportDefinitionId)"}), e); 301 } 302 } 303 304 public ReportView getReportView(String reportViewId) throws InfoException { 305 try { 306 return getReportManagerRemote().getReportView(reportViewId); 307 } 308 catch (RemoteException e) { 309 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-getReportView(String reportViewId)"}), e); 310 } 311 } 312 313 public void saveReportView(ReportView reportView) throws InfoException { 314 try { 315 getReportManagerRemote().saveReportView(reportView); 316 } 317 catch (RemoteException e) { 318 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-saveReportView(ReportView reportView)"}), e); 319 } 320 } 321 322 public ReportView getReportViewFromID(String id, String reportDefinitionId, String userId) throws InfoException { 323 try { 324 return getReportManagerRemote().getReportViewFromID(id, reportDefinitionId, userId); 325 } 326 catch (RemoteException e) { 327 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-getReportViewFromID(String id, String reportDefinitionId, String userId)"}), e); 328 } 329 } 330 331 public ReportResult ExecReportQuery(int handle, ReportView reportView) throws InfoException { 332 try { 333 return getReportManagerRemote().ExecReportQuery(handle, reportView); 334 } 335 catch (RemoteException e) { 336 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-ExecReportQuery(int handle, ReportView reportView)"}), e); 337 } 338 } 339 340 public void registerDefinitions() throws InfoException { 341 try { 342 getReportManagerRemote().registerDefinitions(); 343 } 344 catch (RemoteException e) { 345 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-registerDefinitions()"}), e); 346 } 347 } 348 349 public void deleteAllRepositories() throws InfoException { 350 try { 351 getReportManagerRemote().deleteAllRepositories(); 352 } 353 catch (RemoteException e) { 354 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-deleteAllRepositories()"}), e); 355 } 356 } 357 358 public void deleteAllDefinitions() throws InfoException { 359 try { 360 getReportManagerRemote().deleteAllDefinitions(); 361 } 362 catch (RemoteException e) { 363 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-deleteAllDefinitions()"}), e); 364 } 365 } 366 367 public void deleteReportSourceRepository() throws InfoException { 368 try { 369 getReportManagerRemote().deleteReportSourceRepository(); 370 } 371 catch (RemoteException e) { 372 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-deleteReportSourceRepository()"}), e); 373 } 374 } 375 376 public void deleteReportSourceDefinitionRepository() throws InfoException { 377 try { 378 getReportManagerRemote().deleteReportSourceDefinitionRepository(); 379 } 380 catch (RemoteException e) { 381 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-deleteReportSourceDefinitionRepository()"}), e); 382 } 383 } 384 385 public void deleteReportDefinitionRepository() throws InfoException { 386 try { 387 getReportManagerRemote().deleteReportDefinitionRepository(); 388 } 389 catch (RemoteException e) { 390 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-deleteReportDefinitionRepository()"}), e); 391 } 392 } 393 394 public void deleteReportViewRepository() throws InfoException { 395 try { 396 getReportManagerRemote().deleteReportViewRepository(); 397 } 398 catch (RemoteException e) { 399 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-deleteReportViewRepository()"}), e); 400 } 401 } 402 403 public void deleteReportView(String id, String reportDefinitionId, String userId) throws InfoException { 404 try { 405 getReportManagerRemote().deleteReportView(id,reportDefinitionId,userId); 406 } 407 catch (RemoteException e) { 408 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-deleteReportView(String id, String reportDefinitionId, String userId)"}), e); 409 } 410 } 411 412 public void deleteReportSource(String reportSourceDefinitionId) throws InfoException { 413 try { 414 getReportManagerRemote().deleteReportSource(reportSourceDefinitionId); 415 } 416 catch (RemoteException e) { 417 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-deleteReportSource(String reportSourceDefinitionId)"}), e); 418 } 419 } 420 421 public void deleteReportSourceDefinition(String reportSourceDefinitionID) throws InfoException { 422 try { 423 getReportManagerRemote().deleteReportSourceDefinition(reportSourceDefinitionID); 424 } 425 catch (RemoteException e) { 426 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-deleteReportSourceDefinition(String reportSourceDefinitionID)"}), e); 427 } 428 } 429 430 public void deleteReportDefinition(String reportDefinitionID) throws InfoException { 431 try { 432 getReportManagerRemote().deleteReportDefinition(reportDefinitionID); 433 } 434 catch (RemoteException e) { 435 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-deleteReportDefinition(String reportDefinitionID)"}), e); 436 } 437 } 438 439 public void assingDefaultView(String id, String reportDefinitionId, String userId) throws InfoException { 440 try { 441 getReportManagerRemote().assingDefaultView(id, reportDefinitionId, userId); 442 } 443 catch (RemoteException e) { 444 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-assingDefaultView(String id, String reportDefinitionId, String userId)"}), e); 445 } 446 } 447 448 public ReportResult ExecReportQuery(MicroReport microReport) throws InfoException { 449 try { 450 return getReportManagerRemote().ExecReportQuery(microReport); 451 } 452 catch (RemoteException e) { 453 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-ExecReportQuery(MicroReport microReport)"}), e); 454 } 455 } 456 457 public int PrepareReport(MicroReport microReport) throws InfoException { 458 try { 459 return getReportManagerRemote().PrepareReport(microReport); 460 } 461 catch (RemoteException e) { 462 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-PrepareReport(MicroReport microReport)"}), e); 463 } 464 465 } 466 467 public String getXML(int handle) throws InfoException { 468 try { 469 return getReportManagerRemote().getXML(handle); 470 } 471 catch (RemoteException e) { 472 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-getXML(int handle)"}), e); 473 } 474 475 } 476 477 public String getXML(String reportDefinitionID, Map paramValues) throws InfoException { 478 try { 479 return getReportManagerRemote().getXML(reportDefinitionID,paramValues); 480 } 481 catch (RemoteException e) { 482 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-getXML(String reportDefinitionID, Map paramValues)"}), e); 483 } 484 } 485 486 public Set getDimensionValues(int handle, String name) throws InfoException { 487 try { 488 return getReportManagerRemote().getDimensionValues(handle,name); 489 } 490 catch (RemoteException e) { 491 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-getDimensionValues(int handle, String name)"}), e); 492 } 493 494 } 495 496 public Set getDimensionValues(String reportDefinitionID, Map paramValues, String name) throws InfoException { 497 try { 498 return getReportManagerRemote().getDimensionValues(reportDefinitionID,paramValues,name); 499 } 500 catch (RemoteException e) { 501 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-getDimensionValues(String reportDefinitionID, Map paramValues, String name)"}), e); 502 } 503 } 504 505 public Vector getUpdatedDataModel(int handle, int mode, int row, int col, boolean isDistributed) throws InfoException { 506 try { 507 return getReportManagerRemote().getUpdatedDataModel(handle,mode,row,col, isDistributed); 508 } 509 catch (RemoteException e) { 510 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-getUpdatedDataModel(int handle, int mode, int row, int col, boolean isDistributed) "}), e); 511 } 512 } 513 514 public Matrix getMatrix(int handle) throws InfoException { 515 try { 516 return getReportManagerRemote().getMatrix(handle); 517 } 518 catch (RemoteException e) { 519 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-getMatrix(int handle) "}), e); 520 } 521 522 } 523 524 public ReportDefinition getReportDefinitionFromID(String reportDefinitionId) throws InfoException { 525 try { 526 return getReportManagerRemote().getReportDefinitionFromID(reportDefinitionId); 527 } 528 catch (RemoteException e) { 529 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-getReportDefinitionFromID(String reportDefinitionId) "}), e); 530 } 531 } 532 533 public ReportSourceDefinition getReportSourceDefinitionFromID(String reportSourceDefinitionId) throws InfoException { 534 try { 535 return getReportManagerRemote().getReportSourceDefinitionFromID(reportSourceDefinitionId); 536 } 537 catch (RemoteException e) { 538 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-getReportSourceDefinitionFromID(String reportSourceDefinitionId) "}), e); 539 } 540 } 541 542 public void init(ReportGeneratorConfiguration reportGeneratorConfiguration) throws InfoException { 543 } 544 545 public boolean validateUser(String userName, String password, String userRepositoryPath) throws InfoException { 546 try { 547 return getReportManagerRemote().validateUser(userName, password, userRepositoryPath); 548 } 549 catch (RemoteException e) { 550 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-validateUser()) "}), e); 551 } 552 } 553 554 public boolean validateRol(String [] roles, String userName, String rolRepositoryPath) throws InfoException { 555 try { 556 return getReportManagerRemote().validateRol(roles, userName, rolRepositoryPath); 557 } 558 catch (RemoteException e) { 559 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-valdateRol()) "}), e); 560 } 561 } 562 563 public void exportReport(String userName, String password, String userRepositoryPath, String reportDefinitionId, Map paramValues, boolean isLandscape, int type, String destinationPath, String name) throws InfoException { 564 try { 565 getReportManagerRemote().exportReport(userName, password, userRepositoryPath, reportDefinitionId, paramValues, isLandscape, type, destinationPath, name); 566 } 567 catch (RemoteException e) { 568 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-exportReport()) "}), e); 569 } 570 571 } 572 573 public byte[] exportReport(Map params) throws InfoException { 574 try { 575 return getReportManagerRemote().exportReport(params); 576 } 577 catch (RemoteException e) { 578 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-exportReport()) "}), e); 579 } 580 } 581 582 public boolean addNewUser(String rootPasswd, String userName, String password, String userRepositoryPath) throws InfoException { 583 try { 584 return getReportManagerRemote().addNewUser(rootPasswd, userName, password, userRepositoryPath); 585 } catch (RemoteException e) { 586 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-addNewUser()) "}), e); 587 } 588 } 589 590 public void addUserRol(String userName, String rol, String rolsRepositoryPath) throws InfoException { 591 try { 592 getReportManagerRemote().addUserRol(userName, rol, rolsRepositoryPath); 593 } catch (RemoteException e) { 594 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-addUserRol()) "}), e); 595 } 596 } 597 598 public boolean isAcceptedLicence() throws InfoException { 599 try { 600 return getReportManagerRemote().isAcceptedLicence(); 601 } catch (RemoteException e) { 602 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-isAcceptedLicence()) "}), e); 603 } 604 } 605 606 public void acceptedLicence(boolean value) throws InfoException { 607 try { 608 getReportManagerRemote().acceptedLicence(value); 609 } catch (RemoteException e) { 610 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-acceptedLicence(value)) "}), e); 611 } 612 } 613 614 615 public void addUserData(String userName, String name, String company, String userDataRepositoryPath) throws InfoException { 616 try { 617 getReportManagerRemote().addUserData(userName, name, company, userDataRepositoryPath); 618 } catch (RemoteException e) { 619 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-addUserData()) "}), e); 620 } 621 } 622 623 public MicroReport getMicroReport(String fileName) throws InfoException { 624 try { 625 return getReportManagerRemote().getMicroReport(fileName); 626 } catch (RemoteException e) { 627 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-getMicroReport()) "}), e); 628 } 629 } 630 631 public MicroReport getMicroReport(String reportDefinitionId, Map param) throws InfoException { 632 try { 633 return getReportManagerRemote().getMicroReport(reportDefinitionId,param); 634 } catch (RemoteException e) { 635 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-getMicroReport()) "}), e); 636 } 637 } 638 639 public Collection getUserData(String userId, String userDataRepositoryPath) throws InfoException { 640 try { 641 return getReportManagerRemote().getUserData(userId, userDataRepositoryPath); 642 } catch (RemoteException e) { 643 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-getUserData()) "}), e); 644 } 645 } 646 647 public void logClientData(String clientData) throws InfoException { 648 try { 649 getReportManagerRemote().logClientData(clientData); 650 } catch (RemoteException e) { 651 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-logClientData()) "}), e); 652 } 653 } 654 655 664 public Vector registerReportSourceDefinitions(Vector vector) throws InfoException { 665 try { 666 return getReportManagerRemote().registerReportSourceDefinitions(vector); 667 } 668 catch (RemoteException e) { 669 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-registerReportSourceDefinitions()"}), e); 670 } 671 672 } 673 674 public Vector registerReportDefinitions(Vector vector) throws InfoException { 675 try { 676 return getReportManagerRemote().registerReportDefinitions(vector); 677 } 678 catch (RemoteException e) { 679 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-registerReportDefinitions()"}), e); 680 } 681 } 682 683 684 public Vector registerReportViews(Vector vector) throws InfoException { 685 try { 686 return getReportManagerRemote().registerReportViews(vector); 687 } 688 catch (RemoteException e) { 689 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-registerReportViews()"}), e); 690 } 691 692 } 693 694 public String getDefaultReportViewId(String reportDefinitionId, String userId) throws InfoException { 695 try { 696 return getReportManagerRemote().getDefaultReportViewId(reportDefinitionId,userId); 697 } 698 catch (RemoteException e) { 699 throw new InfoException(MessageFormat.format((LanguageTraslator.traslate("87")), new Object []{"RemoteReportManagerStateful-getDefaultReportViewId(String reportDefinitionId, String userId)"}), e); 700 } 701 } 702 703 } 704 705 | Popular Tags |