org.gcube.accounting.usagetracker.rest.resources.network
Class NetworkRecordsResource

java.lang.Object
  extended by org.gcube.accounting.usagetracker.rest.resources.AbstractRecordsResource<org.gcube.accounting.datamodel.NetworkUsageRecord>
      extended by org.gcube.accounting.usagetracker.rest.resources.network.NetworkRecordsResource

public class NetworkRecordsResource
extends AbstractRecordsResource<org.gcube.accounting.datamodel.NetworkUsageRecord>


Field Summary
 
Fields inherited from class org.gcube.accounting.usagetracker.rest.resources.AbstractRecordsResource
request
 
Constructor Summary
NetworkRecordsResource()
           
 
Method Summary
 org.gcube.accounting.datamodel.NetworkUsageRecord createRecord(org.gcube.accounting.datamodel.RawUsageRecord record)
           
 NetworkRecordResource getRecordResource(String record_id)
           
protected  org.gcube.accounting.datamodel.query.QueryClause getTypeClause()
           
protected  void validate(org.gcube.accounting.datamodel.NetworkUsageRecord 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

NetworkRecordsResource

public NetworkRecordsResource()
Method Detail

createRecord

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

getRecordResource

public NetworkRecordResource getRecordResource(String record_id)

getTypeClause

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

validate

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


Copyright © 2013. All Rights Reserved.