org.gcube.accounting.usagetracker.rest.resources.vm
Class VMRecordResource
java.lang.Object
org.gcube.accounting.usagetracker.rest.resources.AbstractRecordResource<org.gcube.accounting.datamodel.VMUsageRecord>
org.gcube.accounting.usagetracker.rest.resources.vm.VMRecordResource
public class VMRecordResource
- extends AbstractRecordResource<org.gcube.accounting.datamodel.VMUsageRecord>
|
Method Summary |
protected org.gcube.accounting.datamodel.VMUsageRecord |
createRecord(org.gcube.accounting.datamodel.UsageRecord r)
|
protected boolean |
isCorrectType(org.gcube.accounting.datamodel.UsageRecord r)
|
protected void |
validate(org.gcube.accounting.datamodel.VMUsageRecord record)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VMRecordResource
public VMRecordResource(String id)
validate
protected void validate(org.gcube.accounting.datamodel.VMUsageRecord record)
throws org.gcube.accounting.exception.InvalidValueException
- Specified by:
validate in class AbstractRecordResource<org.gcube.accounting.datamodel.VMUsageRecord>
- Throws:
org.gcube.accounting.exception.InvalidValueException
createRecord
protected org.gcube.accounting.datamodel.VMUsageRecord createRecord(org.gcube.accounting.datamodel.UsageRecord r)
- Specified by:
createRecord in class AbstractRecordResource<org.gcube.accounting.datamodel.VMUsageRecord>
isCorrectType
protected boolean isCorrectType(org.gcube.accounting.datamodel.UsageRecord r)
- Specified by:
isCorrectType in class AbstractRecordResource<org.gcube.accounting.datamodel.VMUsageRecord>
Copyright © 2013. All Rights Reserved.