org.gcube.accounting.usagetracker.rest.resources.vm
Class VMRecordsResource

java.lang.Object
  extended by org.gcube.accounting.usagetracker.rest.resources.AbstractRecordsResource<org.gcube.accounting.datamodel.VMUsageRecord>
      extended by org.gcube.accounting.usagetracker.rest.resources.vm.VMRecordsResource

public class VMRecordsResource
extends AbstractRecordsResource<org.gcube.accounting.datamodel.VMUsageRecord>


Field Summary
 
Fields inherited from class org.gcube.accounting.usagetracker.rest.resources.AbstractRecordsResource
request
 
Constructor Summary
VMRecordsResource()
           
 
Method Summary
 org.gcube.accounting.datamodel.VMUsageRecord createRecord(org.gcube.accounting.datamodel.RawUsageRecord record)
           
 VMRecordResource getRecordResource(String record_id)
           
protected  org.gcube.accounting.datamodel.query.QueryClause getTypeClause()
           
protected  void validate(org.gcube.accounting.datamodel.VMUsageRecord record)
           
 
Methods inherited from class org.gcube.accounting.usagetracker.rest.resources.AbstractRecordsResource
getRecords, getRecords, insertUsageRecord
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VMRecordsResource

public VMRecordsResource()
Method Detail

createRecord

public org.gcube.accounting.datamodel.VMUsageRecord createRecord(org.gcube.accounting.datamodel.RawUsageRecord record)
Specified by:
createRecord in class AbstractRecordsResource<org.gcube.accounting.datamodel.VMUsageRecord>

getRecordResource

public VMRecordResource getRecordResource(String record_id)

validate

protected void validate(org.gcube.accounting.datamodel.VMUsageRecord record)
                 throws org.gcube.accounting.exception.InvalidValueException
Specified by:
validate in class AbstractRecordsResource<org.gcube.accounting.datamodel.VMUsageRecord>
Throws:
org.gcube.accounting.exception.InvalidValueException

getTypeClause

protected org.gcube.accounting.datamodel.query.QueryClause getTypeClause()
Overrides:
getTypeClause in class AbstractRecordsResource<org.gcube.accounting.datamodel.VMUsageRecord>


Copyright © 2013. All Rights Reserved.