public class Reporting extends Object implements ReportingService, OpStatusService
Modifier and Type | Field and Description |
---|---|
static String |
allitems |
protected static String |
delimiter |
static Logger |
log |
protected static String |
name |
Constructor and Description |
---|
Reporting() |
Reporting(WebServiceContext w)
constructor used for unit testing, do not remove
|
Modifier and Type | Method and Description |
---|---|
ExportDataToCSVResponseMsg |
exportDataToCSV(ExportCSVDataRequestMsg request)
Exports transactions logs for a given set of services, requires audit
level permissions or higher for each service requested service
|
ExportDataToHTMLResponseMsg |
exportDataToHTML(ExportDataRequestMsg request)
Creates an HTML report with charts for the selected services, time range, and report types in a zip file.
|
protected ExportDataToHTMLResponseMsg |
generateHtmlReport(String currentUser,
ExportDataRequestMsg request) |
protected static byte[] |
generateZipFileandDelete(List<String> files,
String path) |
protected SecurityWrapper |
getClassLevelFromDB() |
static String |
getFilePathDelimitor() |
protected String |
getFooter() |
protected String |
getHeader() |
GetOperatingStatusResponseMessage |
getOperatingStatus(GetOperatingStatusRequestMessage request)
Get the operating status of this service
|
static boolean |
isPolicyTypeOf(String uri,
PolicyType p) |
static int |
pixelHeightCalc(int items) |
protected static String |
readAllText(InputStream stream)
input stream remains open after exiting
|
protected static String |
stripCommas(String string) |
protected static String |
toSafeFileName(String url) |
protected void |
writeAllText(String filename,
String text) |
protected static final String delimiter
protected static final String name
public static final Logger log
public static final String allitems
public Reporting() throws DatatypeConfigurationException
DatatypeConfigurationException
public Reporting(WebServiceContext w) throws DatatypeConfigurationException
w
- DatatypeConfigurationException
@RequestWrapper(localName="ExportDataToHTML", targetNamespace="urn:org:miloss:fgsms:services:interfaces:reportingService", className="org.miloss.fgsms.services.interfaces.reportingservice.ExportDataToHTML") @ResponseWrapper(localName="ExportDataToHTMLResponse", targetNamespace="urn:org:miloss:fgsms:services:interfaces:reportingService", className="org.miloss.fgsms.services.interfaces.reportingservice.ExportDataToHTMLResponse") public ExportDataToHTMLResponseMsg exportDataToHTML(ExportDataRequestMsg request) throws AccessDeniedException, ServiceUnavailableException
ReportingService
exportDataToHTML
in interface ReportingService
request
- ServiceUnavailableException
AccessDeniedException
protected ExportDataToHTMLResponseMsg generateHtmlReport(String currentUser, ExportDataRequestMsg request) throws AccessDeniedException, ServiceUnavailableException
protected String getHeader()
protected String getFooter()
protected static String readAllText(InputStream stream)
stream
- protected static byte[] generateZipFileandDelete(List<String> files, String path)
protected SecurityWrapper getClassLevelFromDB()
public static int pixelHeightCalc(int items)
@RequestWrapper(localName="ExportDataToCSV", targetNamespace="urn:org:miloss:fgsms:services:interfaces:reportingService", className="org.miloss.fgsms.services.interfaces.reportingservice.ExportDataToCSV") @ResponseWrapper(localName="ExportDataToCSVResponse", targetNamespace="urn:org:miloss:fgsms:services:interfaces:reportingService", className="org.miloss.fgsms.services.interfaces.reportingservice.ExportDataToCSVResponse") public ExportDataToCSVResponseMsg exportDataToCSV(ExportCSVDataRequestMsg request) throws ServiceUnavailableException
exportDataToCSV
in interface ReportingService
request
- AccessDeniedException
ServiceUnavailableException
public static String getFilePathDelimitor()
public static boolean isPolicyTypeOf(String uri, PolicyType p)
@RequestWrapper(localName="GetOperatingStatus", targetNamespace="urn:org:miloss:fgsms:services:interfaces:common", className="org.miloss.fgsms.services.interfaces.common.GetOperatingStatus") @ResponseWrapper(localName="GetOperatingStatusResponse", targetNamespace="urn:org:miloss:fgsms:services:interfaces:common", className="org.miloss.fgsms.services.interfaces.common.GetOperatingStatusResponse") public GetOperatingStatusResponseMessage getOperatingStatus(GetOperatingStatusRequestMessage request)
getOperatingStatus
in interface OpStatusService
request
- Copyright © 2008–2017 MIL-OSS. All rights reserved.