Java Doc for ReportsManager.java in  » ERP-CRM-Financial » sakai » org » theospi » portfolio » reports » model » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » sakai » org.theospi.portfolio.reports.model 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.theospi.portfolio.reports.model.ReportsManager

All known Subclasses:   org.theospi.portfolio.reports.model.impl.ReportsManagerImpl,
ReportsManager
public interface ReportsManager extends DownloadableManager,Job(Code)


Field Summary
final public static  StringEXPORT_XSL_ID
    
final public static  StringREPORTS_MESSAGE_BUNDLE
    
final public static  StringRESULTS_ID
    
final public static  StringreportGroup
    


Method Summary
public  voidcheckEditAccess()
    
public  voidcheckReportAccess(String id, String ref)
     checks the id against the generated unique id of the reference.
public  ReportcreateReport(ReportDefinition reportDefinition)
    
public  voidcreateReportParameters(Report report)
    
public  voiddeleteReport(Report report, boolean deactivate)
     if we are deleting a report that is not live, then delete the result associated with it because it will become invalid.
public  voiddeleteReportDefXmlFile(ReportDefinition reportDef)
    
public  voiddeleteReportResult(ReportResult result)
     Deletes a ReportResult.
public  ReportResultgenerateResults(Report report)
     runs a report and creates a ReportResult.
public  StringgenerateSQLParameterValue(ReportParam reportParam)
     gathers the data for dropdown/list box.
public  MapgetAuthorizationsMap()
    
public  ListgetCurrentUserResults()
     this gets the list of report results that a user can view.
public  DataSourcegetDataSourceUseWarehouse(boolean useWarehouse)
    
public  ListgetReportDefinitions()
     Returns the ReportDefinitions.
public  StringgetReportResultKey(ReportResult result, String ref)
    
public  ListgetReportsByViewer()
    
public  booleanimportResource(Id worksite, String reference)
    
public  booleanisMaintaner()
    
public  ReportResultloadResult(ReportResult result)
     Reloads a ReportResult.
public  JobDetailprocessCreateJob(Report report)
    
public  StringprocessSaveResultsToResources(ReportResult reportResult)
    
public  StringreplaceSystemValues(String inString)
     Replaces the the system value proxy with the values.
public  voidsaveReport(Report report)
    
public  voidsaveReportResult(ReportResult result)
    
public  voidsetCurrentResult(ReportResult result)
    
public  voidsetReportDefinitions(List reportdefs)
     Sets the list of ReportDefinitions.
public  Stringtransform(ReportResult result, ReportXsl reportXsl)
    

Field Detail
EXPORT_XSL_ID
final public static String EXPORT_XSL_ID(Code)



REPORTS_MESSAGE_BUNDLE
final public static String REPORTS_MESSAGE_BUNDLE(Code)



RESULTS_ID
final public static String RESULTS_ID(Code)



reportGroup
final public static String reportGroup(Code)





Method Detail
checkEditAccess
public void checkEditAccess()(Code)
Checks for edit report permission



checkReportAccess
public void checkReportAccess(String id, String ref)(Code)
checks the id against the generated unique id of the reference. It throws an AuthorizationFailedException if the ids don't match. Otherwise it adds the AllowAllSecurityAdvisor to the securityService
Parameters:
  id -
Parameters:
  ref -



createReport
public Report createReport(ReportDefinition reportDefinition)(Code)
Creates a new blank Report based on a report definition
Parameters:
  reportDefinition - a Collection of ReportParam



createReportParameters
public void createReportParameters(Report report)(Code)
Creates parameters in the report linked to the parameters in the report definition
Parameters:
  report - a Collection of ReportParam



deleteReport
public void deleteReport(Report report, boolean deactivate)(Code)
if we are deleting a report that is not live, then delete the result associated with it because it will become invalid. If a report is live, then we need to check how many results are linked to the report. If there are no results then we can delete it, otherwise we need to just disable the report from showing in the interface given the display parameter option. aka, if a report is live and has results associated, the display parameter decides if we should deactivated the report.
Parameters:
  report - Report



deleteReportDefXmlFile
public void deleteReportDefXmlFile(ReportDefinition reportDef)(Code)



deleteReportResult
public void deleteReportResult(ReportResult result)(Code)
Deletes a ReportResult. If the report that this result came from in not on display then we should try to delete the report too because the user can't do anything with it
Parameters:
  result -



generateResults
public ReportResult generateResults(Report report)(Code)
runs a report and creates a ReportResult. The parameters were verified on the creation of this report object. ReportResult



generateSQLParameterValue
public String generateSQLParameterValue(ReportParam reportParam)(Code)
gathers the data for dropdown/list box. It runs the query defined in the report param ane creates a string in the format "[value1, value2, value3, ...]" or "[(value1; title1), (value2; title2), (value3; title3), ...]" String



getAuthorizationsMap
public Map getAuthorizationsMap()(Code)
Map



getCurrentUserResults
public List getCurrentUserResults()(Code)
this gets the list of report results that a user can view. If the user has permissions to run or view reports, then this grabs the ReportResults If the user has permissions to run reports, then this grabs the Live Reports List of ReportResult objects



getDataSourceUseWarehouse
public DataSource getDataSourceUseWarehouse(boolean useWarehouse)(Code)
returns the data source based on if the calling code is using the warehouse or not
Parameters:
  useWarehouse - boolean



getReportDefinitions
public List getReportDefinitions()(Code)
Returns the ReportDefinitions. The list returned is filtered for the worksite type against the report types List of ReportDefinitions



getReportResultKey
public String getReportResultKey(ReportResult result, String ref)(Code)
Generates a unique id for a reference
Parameters:
  result -
Parameters:
  ref -



getReportsByViewer
public List getReportsByViewer()(Code)



importResource
public boolean importResource(Id worksite, String reference) throws UnsupportedFileTypeException, ImportException(Code)



isMaintaner
public boolean isMaintaner()(Code)
boolean



loadResult
public ReportResult loadResult(ReportResult result)(Code)
Reloads a ReportResult. During the loading process it loads the report from which the ReportResult is derived, It links the report to the report definition, and sets the report in the report result.
Parameters:
  ReportResult - result ReportResult



processCreateJob
public JobDetail processCreateJob(Report report)(Code)



processSaveResultsToResources
public String processSaveResultsToResources(ReportResult reportResult) throws IOException(Code)



replaceSystemValues
public String replaceSystemValues(String inString)(Code)
Replaces the the system value proxy with the values. The list of system value proxies(without quote characters): "{userid}", "{userdisplayname}", "{useremail}", "{userfirstname}", "{userlastname}", "{worksiteid}", "{toolid}",
Parameters:
  inString - String with replaced values



saveReport
public void saveReport(Report report)(Code)
saves the report into the database
Parameters:
  result -



saveReportResult
public void saveReportResult(ReportResult result)(Code)
saves the embedded report and then saves the report result
Parameters:
  result -



setCurrentResult
public void setCurrentResult(ReportResult result)(Code)
Puts the ReportResult into the session
Parameters:
  result -



setReportDefinitions
public void setReportDefinitions(List reportdefs)(Code)
Sets the list of ReportDefinitions. It also iterates through the list and tells the report definition to complete it's loading.
Parameters:
  reportDefinitions - List of reportDefinitions



transform
public String transform(ReportResult result, ReportXsl reportXsl)(Code)
Takes a report result and an xsl and transforms the results
Parameters:
  reportResult - ReportResult
Parameters:
  xslFile - String to xsl resource String



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.