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

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

public class VMRecordResource
extends AbstractRecordResource<org.gcube.accounting.datamodel.VMUsageRecord>


Constructor Summary
VMRecordResource(String id)
           
 
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 org.gcube.accounting.usagetracker.rest.resources.AbstractRecordResource
delete, getRecord, getUserId, setUserId, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VMRecordResource

public VMRecordResource(String id)
Method Detail

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.