Class AbstractPortletUsageRecord
- java.lang.Object
-
- org.gcube.documentstore.records.implementation.AbstractRecord
-
- org.gcube.accounting.datamodel.BasicUsageRecord
-
- org.gcube.accounting.datamodel.basetypes.AbstractPortletUsageRecord
-
- All Implemented Interfaces:
Serializable,Comparable<org.gcube.documentstore.records.Record>,UsageRecord,org.gcube.documentstore.records.Record
- Direct Known Subclasses:
AggregatedPortletUsageRecord,PortletUsageRecord
public abstract class AbstractPortletUsageRecord extends BasicUsageRecord
- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.gcube.accounting.datamodel.UsageRecord
UsageRecord.OperationResult
-
-
Field Summary
Fields Modifier and Type Field Description static StringMESSAGEstatic StringOPERATION_IDstatic StringPORTLET_ID-
Fields inherited from class org.gcube.accounting.datamodel.BasicUsageRecord
CONSUMER_ID, OPERATION_RESULT, SCOPE
-
-
Constructor Summary
Constructors Constructor Description AbstractPortletUsageRecord()AbstractPortletUsageRecord(Map<String,? extends Serializable> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()StringgetOperationId()StringgetPortletId()StringgetRecordType()voidsetMessage(String message)voidsetOperationId(String operationId)voidsetPortletId(String portletId)-
Methods inherited from class org.gcube.accounting.datamodel.BasicUsageRecord
getConsumerId, getOperationResult, getQuerableKeys, getScope, init, setConsumerId, setOperationResult, setScope
-
Methods inherited from class org.gcube.documentstore.records.implementation.AbstractRecord
cleanExtraFields, compareTo, computeField, getAggregatedFields, getAllFields, getComputedFields, getCreationTime, getEndTimeAsCalendar, getEndTimeInMillis, getId, getOperationCount, getRequiredFields, getResourceProperties, getResourceProperty, getStartTimeAsCalendar, getStartTimeInMillis, initializeValidation, isAggregated, removeResourceProperty, setAggregated, setCreationTime, setEndTime, setId, setOperationCount, setResourceProperties, setResourceProperty, setStartTime, timestampToCalendar, toString, validate, validateField, validateProperties
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Field Detail
-
PORTLET_ID
public static final String PORTLET_ID
- See Also:
- Constant Field Values
-
OPERATION_ID
public static final String OPERATION_ID
- See Also:
- Constant Field Values
-
MESSAGE
public static final String MESSAGE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractPortletUsageRecord
public AbstractPortletUsageRecord()
-
AbstractPortletUsageRecord
public AbstractPortletUsageRecord(Map<String,? extends Serializable> properties) throws org.gcube.documentstore.exception.InvalidValueException
- Throws:
org.gcube.documentstore.exception.InvalidValueException
-
-
Method Detail
-
getRecordType
public String getRecordType()
- Specified by:
getRecordTypein interfaceorg.gcube.documentstore.records.Record- Overrides:
getRecordTypein classBasicUsageRecord
-
getPortletId
public String getPortletId()
-
setPortletId
public void setPortletId(String portletId) throws org.gcube.documentstore.exception.InvalidValueException
- Throws:
org.gcube.documentstore.exception.InvalidValueException
-
getOperationId
public String getOperationId()
-
setOperationId
public void setOperationId(String operationId) throws org.gcube.documentstore.exception.InvalidValueException
- Throws:
org.gcube.documentstore.exception.InvalidValueException
-
getMessage
public String getMessage()
-
setMessage
public void setMessage(String message) throws org.gcube.documentstore.exception.InvalidValueException
- Throws:
org.gcube.documentstore.exception.InvalidValueException
-
-