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
.ArrayList
;
13 import java
.util
.Collections
;
14 import java
.util
.List
;
16 import eu
.etaxonomy
.cdm
.model
.common
.IdentifiableEntity
;
19 * This class configures the statistical request to
20 * a CDM Store. It defines which statistical values should
21 * be computed and returned.
24 * @author a.mueller , s.buers
29 public class StatisticsConfigurator
{
32 //*********************** MEMBERS ********************************
34 // the filter list represents the path to
35 private List
<IdentifiableEntity
> filter
= new ArrayList
<IdentifiableEntity
>();
37 private List
<StatisticsTypeEnum
> type
= new ArrayList
<StatisticsTypeEnum
>();
41 // *********************** CONSTRUCTORS ***************************
44 public StatisticsConfigurator(){}
46 public StatisticsConfigurator(List
<IdentifiableEntity
> filter
, List
<StatisticsTypeEnum
> types
){
52 // *************************** METHODS ******************************/
54 public List
<StatisticsTypeEnum
> getType() {
55 return Collections
.unmodifiableList(type
);
58 public void addType(StatisticsTypeEnum type
){
62 public void setType(List
<StatisticsTypeEnum
> newType
) {
66 //------------------------------------------------
68 public List
<IdentifiableEntity
> getFilter() {
72 public void addFilter(IdentifiableEntity filterItem
) {
73 this.filter
.add(filterItem
);