Package net.atthegate.server.service
Class ReportsServiceNew
java.lang.Object
net.atthegate.server.service.ReportsServiceNew
Created by ivbar on 11.08.16.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
generateBigReportFile
(CsvReport report, String searchRequest, boolean secured, EmailReportSettings csvReportSettings) static ListFilter
generateFilter
(ReportSettings reportSettings, Date today, Date yesterday, UserSettings userSettings) static String
generateReportFile
(CsvReport report, String searchRequest, com.google.cloud.storage.Storage storage, boolean secured, EmailReportSettings csvReportSettings) static String
generateSpecialReportFile
(String userKey, com.google.cloud.storage.Storage storage) static List<EntriesGroup>
getGroupedEntriesCsv
(List<AtgEntry> list, EmailReportRequestModel emailReportRequestModel) static List<EntriesGroup>
getGroupedEntriesHtml
(List<AtgEntry> list, EmailReportRequestModel emailReportRequestModel) static Integer
getMinutes
(String timeString) static boolean
shouldBeSend
(ReportSettings reportSettings, Calendar now)
-
Field Details
-
daily
- See Also:
-
weekly
- See Also:
-
monthly
- See Also:
-
MAX_RESULTS
-
-
Constructor Details
-
ReportsServiceNew
public ReportsServiceNew()
-
-
Method Details
-
getMinutes
-
generateFilter
public static ListFilter generateFilter(ReportSettings reportSettings, Date today, Date yesterday, UserSettings userSettings) -
shouldBeSend
-
getGroupedEntriesHtml
public static List<EntriesGroup> getGroupedEntriesHtml(List<AtgEntry> list, EmailReportRequestModel emailReportRequestModel) -
getGroupedEntriesCsv
public static List<EntriesGroup> getGroupedEntriesCsv(List<AtgEntry> list, EmailReportRequestModel emailReportRequestModel) -
generateReportFile
public static String generateReportFile(CsvReport report, String searchRequest, com.google.cloud.storage.Storage storage, boolean secured, EmailReportSettings csvReportSettings) throws IOException, freemarker.template.TemplateException - Throws:
IOException
freemarker.template.TemplateException
-
generateBigReportFile
public static String generateBigReportFile(CsvReport report, String searchRequest, boolean secured, EmailReportSettings csvReportSettings) throws javax.servlet.ServletException, IOException, freemarker.template.TemplateException - Throws:
javax.servlet.ServletException
IOException
freemarker.template.TemplateException
-
generateSpecialReportFile
public static String generateSpecialReportFile(String userKey, com.google.cloud.storage.Storage storage) throws javax.servlet.ServletException, IOException, freemarker.template.TemplateException - Throws:
javax.servlet.ServletException
IOException
freemarker.template.TemplateException
-