public abstract class AbstractRecordResource<T extends org.gcube.accounting.datamodel.UsageRecord> extends Object
| Constructor and Description |
|---|
AbstractRecordResource() |
AbstractRecordResource(String id) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
createRecord(org.gcube.accounting.datamodel.UsageRecord record) |
T |
getRecord() |
String |
getUserId() |
protected abstract boolean |
isCorrectType(org.gcube.accounting.datamodel.UsageRecord record) |
void |
setUserId(String userId) |
protected abstract void |
validate(T record) |
public AbstractRecordResource()
public AbstractRecordResource(String id)
public T getRecord() throws org.gcube.accounting.exception.NotAuthorizedException
org.gcube.accounting.exception.NotAuthorizedExceptionprotected abstract void validate(T record) throws org.gcube.accounting.exception.InvalidValueException
org.gcube.accounting.exception.InvalidValueExceptionprotected abstract T createRecord(org.gcube.accounting.datamodel.UsageRecord record) throws org.gcube.accounting.exception.InvalidValueException
org.gcube.accounting.exception.InvalidValueExceptionprotected abstract boolean isCorrectType(org.gcube.accounting.datamodel.UsageRecord record)
public String getUserId()
public void setUserId(String userId)
Copyright © 2015. All Rights Reserved.