package com.amee.domain;

import java.util.Date;

public class ProfileItemsFilter extends LimitFilter {

    private Date startDate = new Date();
    private Date endDate = null;

    @Override
    public int getResultLimitDefault() {
        return 50;
    }

    @Override
    public int getResultLimitMax() {
        return 100;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        if (startDate != null) {
            this.startDate = startDate;
        }
    }
}

@@ -173,16 +173,350 @@
  null;%0A%0A
+    /**%0A     * Setting this to 'start' will only include items which start during the query window.%0A     * Setting 'end' will include only items which end during the window.%0A     * The default behaviour is to include any item that intersects the query window.%0A     */%0A    private String selectBy;%0A%0A    // TODO: Handle mode (prorata)%0A%0A
     @Ove
@@ -1011,11 +1011,165 @@
  %7D%0A    %7D
+%0A%0A    public String getSelectBy() %7B%0A        return selectBy;%0A    %7D%0A%0A    public void setSelectBy(String selectBy) %7B%0A        this.selectBy = selectBy;%0A    %7D
 %0A%7D%0A

Handle selectBy for profile items. PL-11101.