public interface UsageRecord
extends org.gcube.documentstore.records.Record
| Modifier and Type | Interface and Description |
|---|---|
static class |
UsageRecord.OperationResult |
| Modifier and Type | Field and 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
|
| Modifier and Type | Method and Description |
|---|---|
String |
getConsumerId()
Return the user (or the Consumer Identity, that in the S2S
communication is another service)
|
UsageRecord.OperationResult |
getOperationResult() |
String |
getScope()
Return the scope of this {#UsageRecord}
|
void |
setConsumerId(String consumerId)
Set the user (or the Consumer Identity, that in the S2S
communication is another service)
|
void |
setOperationResult(UsageRecord.OperationResult operationResult)
Set the Operation Result related to the accounted Usage Record
|
void |
setScope(String scope)
Set the scope of the {#UsageRecord}
|
getComputedFields, getCreationTime, getId, getQuerableKeys, getRecordType, getRequiredFields, getResourceProperties, getResourceProperty, removeResourceProperty, setCreationTime, setId, setResourceProperties, setResourceProperty, validatecompareTostatic final String OPERATION_RESULT
static final String CONSUMER_ID
static final String SCOPE
UsageRecord.OperationResult getOperationResult()
void setOperationResult(UsageRecord.OperationResult operationResult) throws org.gcube.documentstore.exception.InvalidValueException
operationResult - the Operation Result to setorg.gcube.documentstore.exception.InvalidValueExceptionString getConsumerId()
void setConsumerId(String consumerId) throws org.gcube.documentstore.exception.InvalidValueException
consumerId - Consumer IDorg.gcube.documentstore.exception.InvalidValueExceptionString getScope()
void setScope(String scope) throws org.gcube.documentstore.exception.InvalidValueException
scope - the scope of the {#UsageRecord}org.gcube.documentstore.exception.InvalidValueExceptionCopyright © 2018. All Rights Reserved.