class DataQueryParams {

    public int getDaysForAvgSumIntAggregation()
    {
        if ( hasDimension( PERIOD_DIM_ID ) )
        {
            List<DimensionalItemObject> periods = getPeriods();

            Assert.isTrue( !periods.isEmpty(), "At least one period must exist" );

            Period period = (Period) periods.get( 0 );

            return period.getDaysInPeriod();
        }
        else
        {
            List<DimensionalItemObject> periods = getFilterPeriods();

            int totalDays = 0;

            for ( DimensionalItemObject item : periods )
            {
                Period period = (Period) item;

                totalDays += period.getDaysInPeriod();
            }

            return totalDays;
        }
    }

    protected  DataQueryParams();

}