| org.theospi.portfolio.reports.model.ReportsManager
All known Subclasses: org.theospi.portfolio.reports.model.impl.ReportsManagerImpl,
REPORTS_MESSAGE_BUNDLE | final public static String REPORTS_MESSAGE_BUNDLE(Code) | | |
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 |
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) | | |
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) | | |
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 |
|
|