Class AnyReportingManager

java.lang.Object
eu.c6.gibraltar.api.common.AbstractManager
eu.c6.gibraltar.api.managers.reporting.AnyReportingManager

public class AnyReportingManager extends AbstractManager
The Class AnyReportingManager to manage reporting in Any.
  • Constructor Details

    • AnyReportingManager

      public AnyReportingManager(AnySession anySession)
      Instantiates a new Any reporting manager from user session.
      Parameters:
      anySession - the Any session
  • Method Details

    • getReporting

      public IAnyUsersReporting getReporting() throws Exception
      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

      public IAnyUsersReporting getReportingByRange(Date startDate, Date endDate) throws Exception
      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.