Class AnyReportingManager
java.lang.Object
eu.c6.gibraltar.api.common.AbstractManager
eu.c6.gibraltar.api.managers.reporting.AnyReportingManager
The Class AnyReportingManager to manage reporting in Any.
-
Field Summary
Fields inherited from class eu.c6.gibraltar.api.common.AbstractManager
APPLICATION_XLS, APPLICATION_XLS_TYPE, APPLICATION_XLSX, APPLICATION_XLSX_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionAnyReportingManager(AnySession anySession) Instantiates a new Any reporting manager from user session. -
Method Summary
Modifier and TypeMethodDescriptionGets the reporting object.getReportingByRange(Date startDate, Date endDate) Gets the reporting object by date ranges.
-
Constructor Details
-
AnyReportingManager
Instantiates a new Any reporting manager from user session.- Parameters:
anySession- the Any session
-
-
Method Details
-
getReporting
Gets the reporting object.- Returns:
- the Any users reporting. The exact count for each data.
- Throws:
Exception- the exception if current user does not have the permission to access to reporting data.
-
getReportingByRange
Gets the reporting object by date ranges. When both are omitted (null)getReporting()should be used- Parameters:
startDate- the starting date using format "yyyy-MM-dd" or ISO8601 i.e. "2017-10-04T14:44:09Z"DateFormat.format(Date). When omitted, the reporting data will only be bound by the ending date.endDate- the ending date using format "yyyy-MM-dd" or ISO8601 i.e. "2017-10-04T14:44:09Z"DateFormat.format(Date). When omitted, the reporting data will only be bound by the starting date.- Returns:
- the Any users reporting. Maximum or minimum count depending on the data.
- Throws:
Exception- the exception if current user does not have the permission to access to reporting data.
-