use of org.mifos.reports.business.ReportsBO in project head by mifos.
the class ActivityMapper method getReportsUserParamsSecurity.
private ActionSecurity getReportsUserParamsSecurity() {
ReportActionSecurity security = new ReportActionSecurity("reportsUserParamsAction", "loadAddList");
// FIXME: no associated activity exists for this constant
security.allow("reportuserparamslist_path", SecurityConstants.ADMINISTER_REPORTPARAMS);
for (ReportsBO report : new ReportsPersistence().getAllReports()) {
security.allowReport(report.getReportId().intValue(), report.getActivityId());
}
// FIXME: no associated activity exists for this constant
security.allow("loadAddList", SecurityConstants.ADMINISTER_REPORTPARAMS);
security.allow("processReport", SecurityConstants.ADMINISTER_REPORTPARAMS);
security.allow("reportsuserprocess_path", SecurityConstants.ADMINISTER_REPORTPARAMS);
security.allow("loadAdminReport", SecurityConstants.CAN_VIEW_ADMIN_DOCUMENTS);
return security;
}
Aggregations