metric-providers/org.ossmeter.metricprovider.generic.numberofrequestsrepliesperday/src/org/ossmeter/metricprovider/generic/numberofrequestsrepliesperday/model/DailyNorrViz.java Diff Switch to side-by-side view
metric-providers/org.ossmeter.metricprovider.generic.numberofrequestsrepliesperday/src/org/ossmeter/metricprovider/generic/numberofrequestsrepliesperday/model/DailyNewsgroupRequestsData.java Diff Switch to side-by-side view
metric-providers/org.ossmeter.metricprovider.generic.numberofrequestsrepliesperday/src/org/ossmeter/metricprovider/generic/numberofrequestsrepliesperday/model/DailyNewsgroupRepliesData.java Diff Switch to side-by-side view
metric-providers/org.ossmeter.metricprovider.generic.numberofrequestsrepliesperdaypernewsgroup/src/org/ossmeter/metricprovider/generic/numberofrequestsrepliesperdaypernewsgroup/model/DailyNorrViz.java Diff Switch to side-by-side view
metric-providers/org.ossmeter.metricprovider.generic.numberofrequestsrepliesperdaypernewsgroup/src/org/ossmeter/metricprovider/generic/numberofrequestsrepliesperdaypernewsgroup/model/DailyNewsgroupRepliesData.java Diff Switch to side-by-side view
metric-providers/org.ossmeter.metricprovider.generic.numberofrequestsrepliesperday/META-INF/MANIFEST.MF Diff Switch to side-by-side view
metric-providers/org.ossmeter.metricprovider.generic.numberofrequestsrepliesperday/src/org/ossmeter/metricprovider/generic/numberofrequestsrepliesperday/model/DailyNorr.java Diff Switch to side-by-side view
metric-providers/org.ossmeter.metricprovider.generic.numberofrequestsrepliesperday/src/org/ossmeter/metricprovider/generic/numberofrequestsrepliesperday/model/dialynorr.ecore Diff Switch to side-by-side view
metric-providers/org.ossmeter.metricprovider.generic.numberofrequestsrepliesperday/src/org/ossmeter/metricprovider/generic/numberofrequestsrepliesperday/model/dialynorr.emf Diff Switch to side-by-side view
metric-providers/org.ossmeter.metricprovider.generic.numberofrequestsrepliesperday/src/org/ossmeter/metricprovider/generic/numberofrequestsrepliesperday/NumberOfRequestsRepliesPerDayProvider.java Diff Switch to side-by-side view
metric-providers/org.ossmeter.metricprovider.generic.numberofrequestsrepliesperday/plugin.xml Diff Switch to side-by-side view
metric-providers/org.ossmeter.metricprovider.generic.numberofrequestsrepliesperdaypernewsgroup/META-INF/MANIFEST.MF Diff Switch to side-by-side view
metric-providers/org.ossmeter.metricprovider.generic.numberofrequestsrepliesperdaypernewsgroup/src/org/ossmeter/metricprovider/generic/numberofrequestsrepliesperdaypernewsgroup/model/DailyNewsgroupData.java Diff Switch to side-by-side view
metric-providers/org.ossmeter.metricprovider.generic.numberofrequestsrepliesperdaypernewsgroup/src/org/ossmeter/metricprovider/generic/numberofrequestsrepliesperdaypernewsgroup/model/DailyNorr.java Diff Switch to side-by-side view
metric-providers/org.ossmeter.metricprovider.generic.numberofrequestsrepliesperdaypernewsgroup/src/org/ossmeter/metricprovider/generic/numberofrequestsrepliesperdaypernewsgroup/model/dialynorr.ecore Diff Switch to side-by-side view
metric-providers/org.ossmeter.metricprovider.generic.numberofrequestsrepliesperdaypernewsgroup/src/org/ossmeter/metricprovider/generic/numberofrequestsrepliesperdaypernewsgroup/model/dialynorr.emf Diff Switch to side-by-side view
metric-providers/org.ossmeter.metricprovider.generic.numberofrequestsrepliesperdaypernewsgroup/src/org/ossmeter/metricprovider/generic/numberofrequestsrepliesperdaypernewsgroup/NumberOfRequestsRepliesPerDayPerNewsgroupProvider.java Diff Switch to side-by-side view
metric-providers/org.ossmeter.metricprovider.generic.numberofrequestsrepliesperdaypernewsgroup/plugin.xml Diff Switch to side-by-side view
metric-providers/org.ossmeter.metricprovider.generic.numberofrequestsrepliesperday/src/org/ossmeter/metricprovider/generic/numberofrequestsrepliesperday/model/DailyNewsgroupData.java to metric-providers/org.ossmeter.metricprovider.generic.numberofrequestsrepliesperdaypernewsgroup/src/org/ossmeter/metricprovider/generic/numberofrequestsrepliesperdaypernewsgroup/model/DailyNewsgroupRequestsData.java
--- a/metric-providers/org.ossmeter.metricprovider.generic.numberofrequestsrepliesperday/src/org/ossmeter/metricprovider/generic/numberofrequestsrepliesperday/model/DailyNewsgroupData.java +++ b/metric-providers/org.ossmeter.metricprovider.generic.numberofrequestsrepliesperdaypernewsgroup/src/org/ossmeter/metricprovider/generic/numberofrequestsrepliesperdaypernewsgroup/model/DailyNewsgroupRequestsData.java @@ -1,38 +1,30 @@ -package org.ossmeter.metricprovider.generic.numberofrequestsrepliesperday.model; +package org.ossmeter.metricprovider.generic.numberofrequestsrepliesperdaypernewsgroup.model; -import com.googlecode.pongo.runtime.Pongo; import com.googlecode.pongo.runtime.querying.NumericalQueryProducer; +import com.googlecode.pongo.runtime.querying.StringQueryProducer; -public class DailyNewsgroupData extends Pongo { +public class DailyNewsgroupRequestsData extends DailyNewsgroupData { - public DailyNewsgroupData() { + public DailyNewsgroupRequestsData() { super(); - NUMBEROFREQUESTS.setOwningType("org.ossmeter.metricprovider.generic.numberofrequestsrepliesperday.model.DailyNewsgroupData"); - NUMBEROFREPLIES.setOwningType("org.ossmeter.metricprovider.generic.numberofrequestsrepliesperday.model.DailyNewsgroupData"); + super.setSuperTypes("org.ossmeter.metricprovider.generic.numberofrequestsrepliesperdaypernewsgroup.model.DailyNewsgroupData"); + URL_NAME.setOwningType("org.ossmeter.metricprovider.generic.numberofrequestsrepliesperdaypernewsgroup.model.DailyNewsgroupRequestsData"); + NUMBEROFREQUESTS.setOwningType("org.ossmeter.metricprovider.generic.numberofrequestsrepliesperdaypernewsgroup.model.DailyNewsgroupRequestsData"); } + public static StringQueryProducer URL_NAME = new StringQueryProducer("url_name"); public static NumericalQueryProducer NUMBEROFREQUESTS = new NumericalQueryProducer("numberOfRequests"); - public static NumericalQueryProducer NUMBEROFREPLIES = new NumericalQueryProducer("numberOfReplies"); public int getNumberOfRequests() { return parseInteger(dbObject.get("numberOfRequests")+"", 0); } - public DailyNewsgroupData setNumberOfRequests(int numberOfRequests) { + public DailyNewsgroupRequestsData setNumberOfRequests(int numberOfRequests) { dbObject.put("numberOfRequests", numberOfRequests); - notifyChanged(); - return this; - } - public int getNumberOfReplies() { - return parseInteger(dbObject.get("numberOfReplies")+"", 0); - } - - public DailyNewsgroupData setNumberOfReplies(int numberOfReplies) { - dbObject.put("numberOfReplies", numberOfReplies); notifyChanged(); return this; }