2 * Copyright (C) 2009 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
9 package eu
.etaxonomy
.cdm
.api
.service
.statistics
;
11 import java
.util
.ArrayList
;
12 import java
.util
.Collections
;
13 import java
.util
.List
;
15 import eu
.etaxonomy
.cdm
.model
.common
.IdentifiableEntity
;
18 * This class configures the statistical request to
19 * a CDM Store. It defines which statistical values should
20 * be computed and returned.
23 * @author a.mueller , s.buers
28 public class StatisticsConfigurator
{
31 //*********************** MEMBERS ********************************
33 // the filter list represents the path to
34 private List
<IdentifiableEntity
> filter
= new ArrayList
<IdentifiableEntity
>();
36 private List
<StatisticsTypeEnum
> type
= new ArrayList
<StatisticsTypeEnum
>();
40 // *********************** CONSTRUCTORS ***************************
43 public StatisticsConfigurator(){}
45 public StatisticsConfigurator(List
<IdentifiableEntity
> filter
, List
<StatisticsTypeEnum
> types
){
51 // *************************** METHODS ******************************/
53 public List
<StatisticsTypeEnum
> getType() {
54 return Collections
.unmodifiableList(type
);
57 public void addType(StatisticsTypeEnum type
){
61 public void setType(List
<StatisticsTypeEnum
> newType
) {
65 //------------------------------------------------
67 public List
<IdentifiableEntity
> getFilter() {
71 public void addFilter(IdentifiableEntity filterItem
) {
72 this.filter
.add(filterItem
);