public abstract class BasicUsageRecord extends org.gcube.documentstore.records.implementation.AbstractRecord implements UsageRecord
UsageRecord.OperationResult| Modifier and Type | Field and Description |
|---|---|
static String |
CONSUMER_ID |
static String |
OPERATION_RESULT |
static String |
SCOPE |
| Constructor and Description |
|---|
BasicUsageRecord() |
BasicUsageRecord(Map<String,? extends Serializable> properties) |
| Modifier and Type | Method and Description |
|---|---|
String |
getConsumerId()
Return the user (or the Consumer Identity, that in the S2S
communication is another service)
|
static String |
getContextFromToken() |
UsageRecord.OperationResult |
getOperationResult() |
SortedSet<String> |
getQuerableKeys() |
String |
getRecordType() |
String |
getScope()
Return the scope of this {#UsageRecord}
|
protected void |
init()
Initialize variable
|
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}
|
cleanExtraFields, compareTo, computeField, getAggregate, getAggregatedFields, getAllFields, getComputedFields, getCreationTime, getEndTimeAsCalendar, getEndTimeInMillis, getId, getOperationCount, getRequiredFields, getResourceProperties, getResourceProperty, getStartTimeAsCalendar, getStartTimeInMillis, initializeValidation, removeResourceProperty, setAggregate, setCreationTime, setEndTime, setId, setOperationCount, setResourceProperties, setResourceProperty, setStartTime, timestampToCalendar, toString, validate, validateField, validatePropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComputedFields, getCreationTime, getId, getRequiredFields, getResourceProperties, getResourceProperty, removeResourceProperty, setCreationTime, setId, setResourceProperties, setResourceProperty, validatecompareTopublic static final String CONSUMER_ID
public static final String SCOPE
public static final String OPERATION_RESULT
public BasicUsageRecord()
public BasicUsageRecord(Map<String,? extends Serializable> properties) throws org.gcube.documentstore.exception.InvalidValueException
org.gcube.documentstore.exception.InvalidValueExceptionpublic static String getContextFromToken()
protected void init()
init in class org.gcube.documentstore.records.implementation.AbstractRecordpublic SortedSet<String> getQuerableKeys() throws Exception
getQuerableKeys in interface org.gcube.documentstore.records.RecordgetQuerableKeys in class org.gcube.documentstore.records.implementation.AbstractRecordExceptionpublic String getConsumerId()
getConsumerId in interface UsageRecordpublic void setConsumerId(String consumerId) throws org.gcube.documentstore.exception.InvalidValueException
setConsumerId in interface UsageRecordconsumerId - Consumer IDorg.gcube.documentstore.exception.InvalidValueExceptionpublic String getRecordType()
getRecordType in interface org.gcube.documentstore.records.Recordpublic String getScope()
getScope in interface UsageRecordpublic void setScope(String scope) throws org.gcube.documentstore.exception.InvalidValueException
setScope in interface UsageRecordscope - the scope of the {#UsageRecord}org.gcube.documentstore.exception.InvalidValueExceptionpublic UsageRecord.OperationResult getOperationResult()
getOperationResult in interface UsageRecordpublic void setOperationResult(UsageRecord.OperationResult operationResult) throws org.gcube.documentstore.exception.InvalidValueException
setOperationResult in interface UsageRecordoperationResult - the Operation Result to setorg.gcube.documentstore.exception.InvalidValueExceptionCopyright © 2017. All Rights Reserved.