Interface UserServiceAuditor

All Known Implementing Classes:
JdbcUserServiceAuditor

public interface UserServiceAuditor
API for auditing user service events in SolarNetwork.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    auditUserService(Long userId, String service, int count)
    Audit a service for a user.
    Get the clock used for auditing.
  • Method Details

    • getAuditClock

      Clock getAuditClock()
      Get the clock used for auditing.

      This clock may bucket time into discreet intervals.

      Returns:
      the clock never null
    • auditUserService

      void auditUserService(Long userId, String service, int count)
      Audit a service for a user.
      Parameters:
      userId - the user ID
      service - the service name
      count - the amount to add