From 50953662fc7958ece56db07ce12be3e2d4471ef9 Mon Sep 17 00:00:00 2001 From: Alessandro Pieve Date: Thu, 29 Sep 2016 08:37:39 +0000 Subject: [PATCH] git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-lib@132025 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../basetypes/AbstractServiceUsageRecord.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gcube/accounting/datamodel/basetypes/AbstractServiceUsageRecord.java b/src/main/java/org/gcube/accounting/datamodel/basetypes/AbstractServiceUsageRecord.java index e0356d0..1ebecd4 100644 --- a/src/main/java/org/gcube/accounting/datamodel/basetypes/AbstractServiceUsageRecord.java +++ b/src/main/java/org/gcube/accounting/datamodel/basetypes/AbstractServiceUsageRecord.java @@ -5,6 +5,7 @@ package org.gcube.accounting.datamodel.basetypes; import java.io.Serializable; import java.util.Map; +import java.util.SortedSet; import org.gcube.accounting.datamodel.BasicUsageRecord; import org.gcube.documentstore.exception.InvalidValueException; @@ -65,8 +66,17 @@ public abstract class AbstractServiceUsageRecord extends BasicUsageRecord { */ @RequiredField @NotEmpty public static final String CALLERQUALIFIER = "callerQualifier"; - - + /**MODIFICA EFFETTUATA***/ + @Override + public SortedSet getQuerableKeys() + throws Exception { + SortedSet properties = super.getQuerableKeys(); + + properties.remove(CALLERQUALIFIER); + + + return properties; + } public AbstractServiceUsageRecord(){ @@ -143,4 +153,5 @@ public abstract class AbstractServiceUsageRecord extends BasicUsageRecord { setResourceProperty(CALLERQUALIFIER, callerQualifier); } + }