Improving code
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@117122 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
d583cf10ef
commit
ed68ace4b2
|
@ -92,9 +92,11 @@ public abstract class BasicUsageRecord implements UsageRecord, Serializable {
|
|||
|
||||
protected Map<String, List<FieldAction>> validation;
|
||||
protected Set<String> requiredFields;
|
||||
|
||||
/**
|
||||
* @return the requiredFields
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Set<String> getRequiredFields() {
|
||||
return requiredFields;
|
||||
}
|
||||
|
|
|
@ -3,15 +3,21 @@ package org.gcube.accounting.datamodel;
|
|||
import java.io.Serializable;
|
||||
import java.util.Calendar;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import org.gcube.accounting.exception.InvalidValueException;
|
||||
|
||||
public interface UsageRecord extends Comparable<UsageRecord>{
|
||||
public interface UsageRecord extends Comparable<UsageRecord> {
|
||||
|
||||
public enum OperationResult {
|
||||
SUCCESS, FAILED
|
||||
}
|
||||
|
||||
/**
|
||||
* @return a Set containing the keys of required fields
|
||||
*/
|
||||
public Set<String> getRequiredFields();
|
||||
|
||||
/**
|
||||
* Return the unique id for this {#UsageRecord}
|
||||
* @return {#UsageRecord} Unique ID
|
||||
|
|
Loading…
Reference in New Issue