3 * Copyright (C) 2009 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.api
.service
.statistics
;
12 import java
.util
.Collections
;
13 import java
.util
.List
;
16 * This class configures the statistical request to
17 * a CDM Store. It defines which statistical values should
18 * be computed and returned.
25 public class StatisticsConfigurator
{
27 public static StatisticsConfigurator
NewDefaultAllConfigurator(){
28 StatisticsConfigurator result
= new StatisticsConfigurator();
29 result
.addPart(StatisticsPartEnum
.ALL
);
33 private List
<StatisticsPartEnum
> partList
;
36 // *************************** METHODS ******************************/
38 public void addPart(StatisticsPartEnum part
) {
39 this.partList
.add(part
);
42 public void addPart(int index
, StatisticsPartEnum part
) {
43 this.partList
.add(index
, part
);
46 public List
<StatisticsPartEnum
> getPartList() {
47 return Collections
.unmodifiableList(partList
);