EN · DE · RU · FR · ES

#559: TeamEventFilter.java

projectforge-business/src/main/java/org/projectforge/business/teamcal/event/TeamEventFilter.java Java class, projectforge-business/src/main/java/org/projectforge/business/teamcal/event/TeamEventFilter.java 193 lines · 92 code · 76 comments · 25 blank
Purpose: Source file: business/teamcal/event/TeamEventFilter.java. TeamEventFilter.java is part of the ProjectForge open-source project management application.

Source (first 100 lines)

/////////////////////////////////////////////////////////////////////////////
//
// Project ProjectForge Community Edition
//         www.projectforge.org
//
// Copyright (C) 2001-2026 Micromata GmbH, Germany (www.micromata.com)
//
// ProjectForge is dual-licensed.
//
// This community edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as published
// by the Free Software Foundation; version 3 of the License.
//
// This community edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
// Public License for more details.
//
// You should have received a copy of the GNU General Public License along
// with this program; if not, see http://www.gnu.org/licenses/.
//
/////////////////////////////////////////////////////////////////////////////

package org.projectforge.business.teamcal.event;

import org.projectforge.framework.persistence.api.BaseSearchFilter;
import org.projectforge.framework.persistence.user.entities.PFUserDO;

import java.io.Serializable;
import java.util.Collection;
import java.util.Date;

/**
 * @author M. Lauterbach (m.lauterbach@micromata.de)
 *
 */
public class TeamEventFilter extends BaseSearchFilter implements Serializable, Cloneable
{
  private static final long serialVersionUID = 2554610661216573080L;

  private PFUserDO user;

  private Long teamCalId;

  private Collection<Long> teamCals;

  private Date startDate;

  private Date endDate;

  private boolean onlyRecurrence;

  /**
   * @param filter
   */
  public TeamEventFilter(final BaseSearchFilter filter)
  {
    super(filter);
  }

  public TeamEventFilter()
  {
  }

  /**
   * @return the user
   */
  public PFUserDO getUser()
  {
    return user;
  }

  /**
   * @param user the user to set
   * @return this for chaining.
   */
  public TeamEventFilter setUser(final PFUserDO user)
  {
    this.user = user;
    return this;
  }

  /**
   * @return the startDate
   */
  public Date getStartDate()
  {
    return startDate;
  }

  /**
   * @param startDate the startDate to set
   * @return this for chaining.
   */
  public TeamEventFilter setStartDate(final Date startDate)
  {
    this.startDate = startDate;
    return this;
  }

Git History

868d6abb7 2025 -> 2026
63081666f Source file headers: 2024-> 2025.
4c04cfd65 MAJOR-CHANGE! Migration of integer id's to Long id's (including fk's etc.)
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.

868d6abb7

2025 -> 2026
868d6abb75cd191a892911ac8e45058932cf9074
diff --git a/projectforge-business/src/main/java/org/projectforge/business/teamcal/event/TeamEventFilter.java b/projectforge-business/src/main/java/org/projectforge/business/teamcal/event/TeamEventFilter.java
index cc87937de..e1187ecdd 100644
--- a/projectforge-business/src/main/java/org/projectforge/business/teamcal/event/TeamEventFilter.java
+++ b/projectforge-business/src/main/java/org/projectforge/business/teamcal/event/TeamEventFilter.java
@@ -3,7 +3,7 @@
 // Project ProjectForge Community Edition
 //         www.projectforge.org
 //
-// Copyright (C) 2001-2025 Micromata GmbH, Germany (www.micromata.com)
+// Copyright (C) 2001-2026 Micromata GmbH, Germany (www.micromata.com)
 //
 // ProjectForge is dual-licensed.
 //

63081666f

Source file headers: 2024-> 2025.
63081666f620fb87315f01b817e560e0b2f6a33a
diff --git a/projectforge-business/src/main/java/org/projectforge/business/teamcal/event/TeamEventFilter.java b/projectforge-business/src/main/java/org/projectforge/business/teamcal/event/TeamEventFilter.java
index 93e7d68dc..cc87937de 100644
--- a/projectforge-business/src/main/java/org/projectforge/business/teamcal/event/TeamEventFilter.java
+++ b/projectforge-business/src/main/java/org/projectforge/business/teamcal/event/TeamEventFilter.java
@@ -3,7 +3,7 @@
 // Project ProjectForge Community Edition
 //         www.projectforge.org
 //
-// Copyright (C) 2001-2024 Micromata GmbH, Germany (www.micromata.com)
+// Copyright (C) 2001-2025 Micromata GmbH, Germany (www.micromata.com)
 //
 // ProjectForge is dual-licensed.
 //

4c04cfd65

MAJOR-CHANGE! Migration of integer id's to Long id's (including fk's etc.)
4c04cfd652210afe373d55f53a5300c85997b109
diff --git a/projectforge-business/src/main/java/org/projectforge/business/teamcal/event/TeamEventFilter.java b/projectforge-business/src/main/java/org/projectforge/business/teamcal/event/TeamEventFilter.java
index 591e9f48d..93e7d68dc 100644
--- a/projectforge-business/src/main/java/org/projectforge/business/teamcal/event/TeamEventFilter.java
+++ b/projectforge-business/src/main/java/org/projectforge/business/teamcal/event/TeamEventFilter.java
@@ -32,7 +32,7 @@ import java.util.Date;
 
 /**
  * @author M. Lauterbach (m.lauterbach@micromata.de)
- * 
+ *
  */
 public class TeamEventFilter extends BaseSearchFilter implements Serializable, Cloneable
 {
@@ -40,9 +40,9 @@ public class TeamEventFilter extends BaseSearchFilter implements Serializable, C
 
   private PFUserDO user;
 
-  private Integer teamCalId;
+  private Long teamCalId;
 
-  private Collection<Integer> teamCals;
+  private Collection<Long> teamCals;
 
   private Date startDate;
 
@@ -119,7 +119,7 @@ public class TeamEventFilter extends BaseSearchFilter implements Serializable, C
   /**
    * @return the teamCalId
    */
-  public Integer getTeamCalId()
+  public Long getTeamCalId()
   {
     return teamCalId;
   }
@@ -128,7 +128,7 @@ public class TeamEventFilter extends BaseSearchFilter implements Serializable, C
    * @param teamCalId the teamCalId to set
    * @return this for chaining.
    */
-  public TeamEventFilter setTeamCalId(final Integer teamCalId)
+  public TeamEventFilter setTeamCalId(final Long teamCalId)
   {
     this.teamCalId = teamCalId;
     return this;
@@ -137,7 +137,7 @@ public class TeamEventFilter extends BaseSearchFilter implements Serializable, C
   /**
    * @return the teamCals
    */
-  public Collection<Integer> getTeamCals()
+  public Collection<Long> getTeamCals()
   {
     return teamCals;
   }
@@ -146,7 +146,7 @@ public class TeamEventFilter extends BaseSearchFilter implements Serializable, C
    * @param teamCals the teamCals to set
    * @return this for chaining.
    */
-  public TeamEventFilter setTeamCals(final Collection<Integer> teamCals)
+  public TeamEventFilter setTeamCals(final Collection<Long> teamCals)
   {

b6092df09

Copyright 2023 -> 2024
b6092df0927c4a3b161e888445f31dcab57493f2
diff --git a/projectforge-business/src/main/java/org/projectforge/business/teamcal/event/TeamEventFilter.java b/projectforge-business/src/main/java/org/projectforge/business/teamcal/event/TeamEventFilter.java
index 895d27f15..591e9f48d 100644
--- a/projectforge-business/src/main/java/org/projectforge/business/teamcal/event/TeamEventFilter.java
+++ b/projectforge-business/src/main/java/org/projectforge/business/teamcal/event/TeamEventFilter.java
@@ -3,7 +3,7 @@
 // Project ProjectForge Community Edition
 //         www.projectforge.org
 //
-// Copyright (C) 2001-2023 Micromata GmbH, Germany (www.micromata.com)
+// Copyright (C) 2001-2024 Micromata GmbH, Germany (www.micromata.com)
 //
 // ProjectForge is dual-licensed.
 //

ab45d51fa

Copyright 2001-2022 -> 2001-2023.
ab45d51fa419ede6174b31d69987f96d4b841ff9
diff --git a/projectforge-business/src/main/java/org/projectforge/business/teamcal/event/TeamEventFilter.java b/projectforge-business/src/main/java/org/projectforge/business/teamcal/event/TeamEventFilter.java
index b750178f7..895d27f15 100644
--- a/projectforge-business/src/main/java/org/projectforge/business/teamcal/event/TeamEventFilter.java
+++ b/projectforge-business/src/main/java/org/projectforge/business/teamcal/event/TeamEventFilter.java
@@ -3,7 +3,7 @@
 // Project ProjectForge Community Edition
 //         www.projectforge.org
 //
-// Copyright (C) 2001-2022 Micromata GmbH, Germany (www.micromata.com)
+// Copyright (C) 2001-2023 Micromata GmbH, Germany (www.micromata.com)
 //
 // ProjectForge is dual-licensed.
 //