Interface UsageRecord

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String CONSUMER_ID
      KEY for : The user (or the Consumer Identity, that in the S2S communication is another service).
      static String OPERATION_RESULT
      KEY for : The Operation Result of the accounted operation.
      static String SCOPE
      KEY for : The scope
      • Fields inherited from interface org.gcube.documentstore.records.Record

        CREATION_TIME, ID, RECORD_TYPE
    • Field Detail

      • OPERATION_RESULT

        static final String OPERATION_RESULT
        KEY for : The Operation Result of the accounted operation. The value is expressed as OperationResult
        See Also:
        Constant Field Values
      • CONSUMER_ID

        static final String CONSUMER_ID
        KEY for : The user (or the Consumer Identity, that in the S2S communication is another service).
        See Also:
        Constant Field Values
    • Method Detail

      • setOperationResult

        void setOperationResult​(UsageRecord.OperationResult operationResult)
                         throws org.gcube.documentstore.exception.InvalidValueException
        Set the Operation Result related to the accounted Usage Record
        Parameters:
        operationResult - the Operation Result to set
        Throws:
        org.gcube.documentstore.exception.InvalidValueException
      • getConsumerId

        String getConsumerId()
        Return the user (or the Consumer Identity, that in the S2S communication is another service)
        Returns:
        Consumer ID
      • setConsumerId

        void setConsumerId​(String consumerId)
                    throws org.gcube.documentstore.exception.InvalidValueException
        Set the user (or the Consumer Identity, that in the S2S communication is another service)
        Parameters:
        consumerId - Consumer ID
        Throws:
        org.gcube.documentstore.exception.InvalidValueException
      • getScope

        String getScope()
        Return the scope of this {#UsageRecord}
        Returns:
        The scope of this {#UsageRecord}
      • setScope

        void setScope​(String scope)
               throws org.gcube.documentstore.exception.InvalidValueException
        Set the scope of the {#UsageRecord}
        Parameters:
        scope - the scope of the {#UsageRecord}
        Throws:
        org.gcube.documentstore.exception.InvalidValueException