Integrated VREAccessesHarvester

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-dashboard-harvester-se-plugin@169205 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2018-06-14 13:30:46 +00:00
parent 4b4009d99b
commit 248bb98b88
2 changed files with 6 additions and 10 deletions

View File

@ -184,11 +184,9 @@ public class AccountingDataHarvesterPlugin extends Plugin<DataHarvestPluginDecla
try { try {
if(scopeBean.is(Type.VRE)) { // Collecting Google Analytics Data for VREs Accesses
// Collecting Google Analytics Data for VREs Accesses List<HarvestedData> harvested = vreAccessesHarvester.getData();
List<HarvestedData> harvested = vreAccessesHarvester.getData(); data.addAll(harvested);
data.addAll(harvested);
}
} catch(Exception e) { } catch(Exception e) {
logger.error("Error harvesting Social Interactions for {}", context, e); logger.error("Error harvesting Social Interactions for {}", context, e);
} }

View File

@ -147,11 +147,9 @@ public class AccountingDataHarvesterPluginTest extends ContextTest {
} }
try { try {
if(scopeBean.is(Type.VRE)) { // Collecting Google Analytics Data for VREs Accesses
// Collecting Google Analytics Data for VREs Accesses List<HarvestedData> harvested = vreAccessesHarvester.getData();
List<HarvestedData> harvested = vreAccessesHarvester.getData(); data.addAll(harvested);
data.addAll(harvested);
}
} catch(Exception e) { } catch(Exception e) {
logger.error("Error harvesting Social Interactions for {}", context, e); logger.error("Error harvesting Social Interactions for {}", context, e);
} }