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)
|
UsageRecord.OperationResult |
getOperationResult() |
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, getAllFields, getCreationTime, getEndTimeAsCalendar, getEndTimeInMillis, getId, getOperationCount, getRecordType, getRequiredFields, getResourceProperties, getResourceProperty, getStartTimeAsCalendar, getStartTimeInMillis, giveMeRecordType, initializeValidation, setCreationTime, setEndTime, setId, setOperationCount, setRecordType, setResourceProperties, setResourceProperty, setStartTime, timestampToCalendar, toString, validate, validateField, validatePropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCreationTime, getId, getRecordType, getRequiredFields, getResourceProperties, getResourceProperty, 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.InvalidValueExceptionprotected void init()
init in class org.gcube.documentstore.records.implementation.AbstractRecordpublic 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 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 © 2016. All Rights Reserved.