Interface AuditUserServiceValue

All Superinterfaces:
Comparable<net.solarnetwork.domain.datum.DatumId>, net.solarnetwork.domain.Identity<net.solarnetwork.domain.datum.DatumId>, UserIdRelated
All Known Implementing Classes:
AuditUserServiceEntity

public interface AuditUserServiceValue extends net.solarnetwork.domain.Identity<net.solarnetwork.domain.datum.DatumId>, UserIdRelated
API for a user service audit record count.

The audit user ID is saved as the objectId of the DatumId identity. The audit service name is saved as the sourceId of the DatumId identify.

  • Method Summary

    Modifier and Type
    Method
    Description
    net.solarnetwork.domain.datum.Aggregation
    Get time period associated with this audit value.
    long
    Get the count value properties.
    default String
    Get the service name this audit value is a part of.
    default Instant
    Get the associated timestamp of this audit value.
    default Long
    Get the user ID this audit value is part of.

    Methods inherited from interface java.lang.Comparable

    compareTo

    Methods inherited from interface net.solarnetwork.domain.Identity

    getId, hasId
  • Method Details

    • getUserId

      default Long getUserId()
      Get the user ID this audit value is part of.

      This is a shortcut for getId().getObjectId().

      Specified by:
      getUserId in interface UserIdRelated
      Returns:
      the user ID
    • getService

      default String getService()
      Get the service name this audit value is a part of.

      This is a shortcut for getId().getSourceId().

      Returns:
      the service
    • getTimestamp

      default Instant getTimestamp()
      Get the associated timestamp of this audit value.

      This value represents the point in time the count associated with this service were observed, collected, inferred, predicted, etc.

      This is a shortcut for getId().getTimestamp().

      Returns:
      the timestamp for this datum
    • getAggregation

      net.solarnetwork.domain.datum.Aggregation getAggregation()
      Get time period associated with this audit value.
      Returns:
      the aggregation
    • getCount

      long getCount()
      Get the count value properties.
      Returns:
      the count