*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
@@ -32,8 +34,7 @@ import com.patrikdufresne.managers.Query;
/**
* Manage the employee preferences.
*
- * This manager has a speficif implementation to handle the archivable state of
- * the {@link Employee} object.
+ * This manager has a speficif implementation to handle the archivable state of the {@link Employee} object.
*
* @author Patrik Dufresne
*/
@@ -71,8 +72,11 @@ public class EmployeePreferenceManager extends AbstractManager() {
@Override
public EmployeePreference run() throws ManagerException {
- return (EmployeePreference) ManagerContext.getDefaultSession().createCriteria(objectClass()).add(
- Restrictions.eq(EmployeePreference.EMPLOYEE, employee)).uniqueResult();
+ return (EmployeePreference) ManagerContext
+ .getDefaultSession()
+ .createCriteria(objectClass())
+ .add(Restrictions.eq(EmployeePreference.EMPLOYEE, employee))
+ .uniqueResult();
}
});
@@ -92,8 +96,11 @@ public class EmployeePreferenceManager extends AbstractManager run() throws ManagerException {
// FIXME This function return multiple EmployeePreference for
// the same Employee.
- List preferences = ManagerContext.getDefaultSession().createCriteria(objectClass()).add(
- Restrictions.in(EmployeePreference.EMPLOYEE, employees)).list();
+ List preferences = ManagerContext
+ .getDefaultSession()
+ .createCriteria(objectClass())
+ .add(Restrictions.in(EmployeePreference.EMPLOYEE, employees))
+ .list();
// Quick fix
return new ArrayList(new HashSet(preferences));
}
@@ -112,8 +119,12 @@ public class EmployeePreferenceManager extends AbstractManager run() throws ManagerException {
// FIXME This function return multiple EmployeePreference for
// the same Employee.
- List preferences = ManagerContext.getDefaultSession().createCriteria(EmployeePreference.class).createCriteria(
- EmployeePreference.EMPLOYEE).add(Restrictions.isNull(ArchivableObject.ARCHIVED_DATE)).list();
+ List preferences = ManagerContext
+ .getDefaultSession()
+ .createCriteria(EmployeePreference.class)
+ .createCriteria(EmployeePreference.EMPLOYEE)
+ .add(Restrictions.isNull(ArchivableObject.ARCHIVED_DATE))
+ .list();
// Quick fix
return new ArrayList(new HashSet(preferences));
}
@@ -121,8 +132,7 @@ public class EmployeePreferenceManager extends AbstractManager
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/NonAvailability.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/NonAvailability.java
index 774b1dec313bc4e528c7239ec6c7346ddfe20d2e..7ca54a9b895c3d94335c894d42cd07c79230e51e 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/NonAvailability.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/NonAvailability.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
@@ -39,8 +41,8 @@ public class NonAvailability extends AbstractCalendarEvent {
}
/**
- * Sets the visibility of this non availability. This field is used to
- * determine which non-availabilities to be displayed on report.
+ * Sets the visibility of this non availability. This field is used to determine which non-availabilities to be
+ * displayed on report.
*
* @param visible
* True to display the non availability
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/NonAvailabilityManager.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/NonAvailabilityManager.java
index 367fefca7281119040c7186621a9e8c139dc3636..31e82cf96ef8cc02c10b11adc097a5dda17af234 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/NonAvailabilityManager.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/NonAvailabilityManager.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
@@ -47,10 +49,11 @@ public class NonAvailabilityManager extends AbstractManager {
// (start < event.end < end)
// OU
// (event.start < start ET event.end > end)
- return Restrictions.or(Restrictions.or(Restrictions.between(AbstractCalendarEvent.START_DATE, start, end), Restrictions.between(
- AbstractCalendarEvent.END_DATE,
- start,
- end)), Restrictions.and(Restrictions.lt(AbstractCalendarEvent.START_DATE, start), Restrictions.gt(AbstractCalendarEvent.END_DATE, end)));
+ return Restrictions.or(
+ Restrictions.or(
+ Restrictions.between(AbstractCalendarEvent.START_DATE, start, end),
+ Restrictions.between(AbstractCalendarEvent.END_DATE, start, end)),
+ Restrictions.and(Restrictions.lt(AbstractCalendarEvent.START_DATE, start), Restrictions.gt(AbstractCalendarEvent.END_DATE, end)));
}
public NonAvailabilityManager(PlanimodManagers managers) {
@@ -78,8 +81,13 @@ public class NonAvailabilityManager extends AbstractManager {
return getManagers().query(new Query>() {
@Override
public List run() throws ManagerException {
- return ManagerContext.getDefaultSession().createCriteria(NonAvailability.class).add(startEndCriterion(start, end)).createCriteria(
- NonAvailability.EMPLOYEE).add(Restrictions.isNull(ArchivableObject.ARCHIVED_DATE)).list();
+ return ManagerContext
+ .getDefaultSession()
+ .createCriteria(NonAvailability.class)
+ .add(startEndCriterion(start, end))
+ .createCriteria(NonAvailability.EMPLOYEE)
+ .add(Restrictions.isNull(ArchivableObject.ARCHIVED_DATE))
+ .list();
}
});
}
@@ -100,8 +108,14 @@ public class NonAvailabilityManager extends AbstractManager {
return getManagers().query(new Query>() {
@Override
public List run() throws ManagerException {
- return ManagerContext.getDefaultSession().createCriteria(NonAvailability.class).add(Restrictions.eq(NonAvailability.VISIBLE, visibility)).add(
- startEndCriterion(start, end)).createCriteria(NonAvailability.EMPLOYEE).add(Restrictions.isNull(ArchivableObject.ARCHIVED_DATE)).list();
+ return ManagerContext
+ .getDefaultSession()
+ .createCriteria(NonAvailability.class)
+ .add(Restrictions.eq(NonAvailability.VISIBLE, visibility))
+ .add(startEndCriterion(start, end))
+ .createCriteria(NonAvailability.EMPLOYEE)
+ .add(Restrictions.isNull(ArchivableObject.ARCHIVED_DATE))
+ .list();
}
});
}
@@ -110,8 +124,12 @@ public class NonAvailabilityManager extends AbstractManager {
return getManagers().query(new Query>() {
@Override
public List run() throws ManagerException {
- return ManagerContext.getDefaultSession().createCriteria(objectClass()).add(startEndCriterion(start, end)).add(
- Restrictions.in(NonAvailability.EMPLOYEE, employees)).list();
+ return ManagerContext
+ .getDefaultSession()
+ .createCriteria(objectClass())
+ .add(startEndCriterion(start, end))
+ .add(Restrictions.in(NonAvailability.EMPLOYEE, employees))
+ .list();
}
});
}
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/PlanimodManagers.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/PlanimodManagers.java
index 25a323c1bc04f4714229352f3a7ab5ff55caf872..20c2368ed8f2f5ab05a6b9ec33ddd2e9fb73de9a 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/PlanimodManagers.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/PlanimodManagers.java
@@ -1,14 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
@@ -346,6 +351,7 @@ public class PlanimodManagers extends Managers {
/**
* Set the copy mode.
+ *
* @param copy
*/
public void setIsCopy(boolean copy) {
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Position.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Position.java
index 7b75c7f159ebfcbc33a85fa09b0d9b18a31fb6c9..0b8b63e8738a01eb0fef6b151c557bf252428de2 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Position.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Position.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
@@ -22,8 +24,8 @@ import javax.persistence.ManyToOne;
import com.patrikdufresne.managers.ArchivableObject;
/**
- * This class represent a position that may be filled by an employee. The
- * position is mostly use to keep track of the employee's qualification.
+ * This class represent a position that may be filled by an employee. The position is mostly use to keep track of the
+ * employee's qualification.
*/
@Entity
public class Position extends ArchivableObject {
@@ -71,8 +73,7 @@ public class Position extends ArchivableObject {
private Section section;
/**
- * Define if the position is swappable. A swappable position allow
- * associated tasks to be part of multiple shift.
+ * Define if the position is swappable. A swappable position allow associated tasks to be part of multiple shift.
*/
private boolean swappable;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/PositionManager.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/PositionManager.java
index 851cffe85e2110791b4d81e32f726a60a209c362..b04efbe728adad0cf7ce7940b637a1cd14660b4d 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/PositionManager.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/PositionManager.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Product.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Product.java
index a496c7dfd8d559349aff30822630a48ab0fa9929..ac250cb621f855ca7ab7beaeeb8d8a994ca252a0 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Product.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Product.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
@@ -26,7 +28,7 @@ import com.patrikdufresne.managers.ArchivableObject;
* The Product class represent one product that may be schedule.
*/
@Entity
-@NamedQueries( {
+@NamedQueries({
@NamedQuery(name = "listProductTableByShifts", query = "SELECT S, P, SUM(PP.number), S.team "
+ "FROM Product as P, Shift as S, ProductionEvent as PE, ProductPosition as PP "
+ "WHERE PP.product = P "
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ProductEntry.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ProductEntry.java
index 4fd61d31ee3f2df4eef49690e79b4d7068838c86..8a95c22289b94f37185a0ef7e1eea752f2cc9a9f 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ProductEntry.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ProductEntry.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ProductManager.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ProductManager.java
index debba0ee4fb52c38d893554cd00870b079427eb2..b9490037e6d362b60f9193a19298cb1ffa50191a 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ProductManager.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ProductManager.java
@@ -1,14 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ProductPosition.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ProductPosition.java
index 4ac302300650e35abd7f9a1baaa96b314db34023..bd2d9c31ee467bc601afb0890a9236c5d2dc4ac3 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ProductPosition.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ProductPosition.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
@@ -44,8 +46,7 @@ public class ProductPosition extends ManagedObject {
public static final String PRODUCT = "product";
/**
- * Define the number of the given position required to produce the attached
- * product.
+ * Define the number of the given position required to produce the attached product.
*
* @uml.property name="number"
*/
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ProductPositionManager.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ProductPositionManager.java
index 67e10463e302528886110cf81355b69edcbe4e16..818e834135cebb14906f51ae5958cc8581290da0 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ProductPositionManager.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ProductPositionManager.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ProductionEvent.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ProductionEvent.java
index 23ef1a222a194fee33b79a98c24abb8475956b1f..50245f0b5b2ab4b7d20a9aaed96974028fe40177 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ProductionEvent.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ProductionEvent.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
@@ -24,14 +26,14 @@ import org.hibernate.annotations.NamedQuery;
import com.patrikdufresne.managers.ManagedObject;
/**
- * A production class define an event that should normally occur once in a
- * planif. The production involved a product being produce.
+ * A production class define an event that should normally occur once in a planif. The production involved a product
+ * being produce.
*
* @author Patrik Dufresne
*
*/
@Entity
-@NamedQueries( { @NamedQuery(name = "listProductionEventTableByShifts", query = "SELECT PE, SUM(PP.number), PE.product, PE.shift, S.team "
+@NamedQueries({ @NamedQuery(name = "listProductionEventTableByShifts", query = "SELECT PE, SUM(PP.number), PE.product, PE.shift, S.team "
+ "FROM ProductPosition as PP, ProductionEvent as PE JOIN PE.product JOIN PE.shift as S JOIN S.team "
+ "WHERE PP.product = PE.product "
+ "AND PE.shift in (:shifts) "
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ProductionEventManager.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ProductionEventManager.java
index 288309c39450929ce0038aebcc301561db21947c..ab08b5825f51e8f006c3e4fb7a9b64b28b5dc51a 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ProductionEventManager.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ProductionEventManager.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
@@ -45,10 +47,11 @@ public class ProductionEventManager extends AbstractManager {
// (start < event.end < end)
// OU
// (event.start < start ET event.end > end)
- return Restrictions.or(Restrictions.or(Restrictions.between(AbstractCalendarEvent.START_DATE, start, end), Restrictions.between(
- AbstractCalendarEvent.END_DATE,
- start,
- end)), Restrictions.and(Restrictions.lt(AbstractCalendarEvent.START_DATE, start), Restrictions.gt(AbstractCalendarEvent.END_DATE, end)));
+ return Restrictions.or(
+ Restrictions.or(
+ Restrictions.between(AbstractCalendarEvent.START_DATE, start, end),
+ Restrictions.between(AbstractCalendarEvent.END_DATE, start, end)),
+ Restrictions.and(Restrictions.lt(AbstractCalendarEvent.START_DATE, start), Restrictions.gt(AbstractCalendarEvent.END_DATE, end)));
}
public ProductionEventManager(PlanimodManagers managers) {
@@ -155,8 +158,12 @@ public class ProductionEventManager extends AbstractManager {
return getManagers().query(new Query>() {
@Override
public List run() throws ManagerException {
- return ManagerContext.getDefaultSession().createCriteria(ProductionEvent.class).createCriteria(ProductionEvent.SHIFT).add(
- startEndCriterion(start, end)).list();
+ return ManagerContext
+ .getDefaultSession()
+ .createCriteria(ProductionEvent.class)
+ .createCriteria(ProductionEvent.SHIFT)
+ .add(startEndCriterion(start, end))
+ .list();
}
});
}
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Qualification.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Qualification.java
index f9e1052d26503e0ea1d7a146713224dc7872c5a9..1d831aa2cef1e39d2de655a7e0cbf7a75c0055f1 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Qualification.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Qualification.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
@@ -30,7 +32,7 @@ import com.patrikdufresne.managers.ManagedObject;
*
*/
@Entity
-@NamedQueries( { @NamedQuery(name = "getQualificationTableByPositions", query = "SELECT E, Po, Se "
+@NamedQueries({ @NamedQuery(name = "getQualificationTableByPositions", query = "SELECT E, Po, Se "
+ "FROM Qualification Q JOIN Q.employee as E JOIN Q.position as Po JOIN Po.section as Se "
+ "WHERE Q.position in :positions AND E.archivedDate is null") })
public class Qualification extends ManagedObject {
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/QualificationManager.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/QualificationManager.java
index 7fb39c9781f1b2a231b58993ee16e4626c6b7c33..a5f455e2ed2dd4cdf404ae38bb0c0dcb393f763c 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/QualificationManager.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/QualificationManager.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
@@ -45,8 +47,7 @@ public class QualificationManager extends AbstractManager {
}
/**
- * This function is used to set the qualification for a given pair of
- * employee-position.
+ * This function is used to set the qualification for a given pair of employee-position.
*
* @param position
* the position
@@ -131,8 +132,7 @@ public class QualificationManager extends AbstractManager {
}
/**
- * Create a BidiMultiMap to represent the qualification of the requested
- * employees and positions.
+ * Create a BidiMultiMap to represent the qualification of the requested employees and positions.
*
* The table contains only not archived employee.
*
@@ -174,8 +174,7 @@ public class QualificationManager extends AbstractManager {
}
/**
- * This function is used to remove any qualification catching the given pair
- * of employee-position.
+ * This function is used to remove any qualification catching the given pair of employee-position.
*
* @param position
* the position
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Section.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Section.java
index 4f9ca4c9bd5fff17d6f7e938623e5194bb7e0cd5..b3470f668b81d1454d09292162b70fefdb95c8ff 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Section.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Section.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/SectionManager.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/SectionManager.java
index 21fc4908aa93bbbc2b5803149c1f83781a416c42..85191a0fb5e146a9a1a1cd499e6cafdd641a19b0 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/SectionManager.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/SectionManager.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Shift.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Shift.java
index e8226c210f975bb090f953174b5fe570f3b169ad..e0d5d575394ac8056419fbf4f50dcad0d09de977 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Shift.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Shift.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ShiftManager.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ShiftManager.java
index 2352f351b62de3b8148d2d1b535f481c7c24ba3a..0ba819e969fc1c71fbde8f9a0eca33322ac105b8 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ShiftManager.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/ShiftManager.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
@@ -98,8 +100,7 @@ public class ShiftManager extends AbstractManager {
}
/**
- * List calendar event related to shifts calendar entry for the given period
- * of time.
+ * List calendar event related to shifts calendar entry for the given period of time.
*
* @param start
* @param end
@@ -126,8 +127,11 @@ public class ShiftManager extends AbstractManager {
return getManagers().query(new Query>() {
@Override
public List extends AbstractCalendarEvent> run() throws ManagerException {
- return ManagerContext.getDefaultSession().createCriteria(objectClass()).add(
- Restrictions.and(Restrictions.eq(Shift.TEAM, team), startEndCriterion(start, end))).list();
+ return ManagerContext
+ .getDefaultSession()
+ .createCriteria(objectClass())
+ .add(Restrictions.and(Restrictions.eq(Shift.TEAM, team), startEndCriterion(start, end)))
+ .list();
}
});
}
@@ -192,15 +196,15 @@ public class ShiftManager extends AbstractManager {
// (start < event.end < end)
// OU
// (event.start < start ET event.end > end)
- return Restrictions.or(Restrictions.or(Restrictions.between(AbstractCalendarEvent.START_DATE, start, end), Restrictions.between(
- AbstractCalendarEvent.END_DATE,
- start,
- end)), Restrictions.and(Restrictions.lt(AbstractCalendarEvent.START_DATE, start), Restrictions.gt(AbstractCalendarEvent.END_DATE, end)));
+ return Restrictions.or(
+ Restrictions.or(
+ Restrictions.between(AbstractCalendarEvent.START_DATE, start, end),
+ Restrictions.between(AbstractCalendarEvent.END_DATE, start, end)),
+ Restrictions.and(Restrictions.lt(AbstractCalendarEvent.START_DATE, start), Restrictions.gt(AbstractCalendarEvent.END_DATE, end)));
}
/**
- * This implementation override the default behavior by also removing any
- * related tasks.
+ * This implementation override the default behavior by also removing any related tasks.
*
* @param s
* list of production event to remove
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Task.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Task.java
index a66a82d72f174548033553580a978f2954c1e651..62c69fdb2437475870f620f2ab55138ef43f9440 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Task.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Task.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
@@ -22,26 +24,28 @@ import org.hibernate.annotations.NamedQueries;
import org.hibernate.annotations.NamedQuery;
/**
- * A task represent a period in time where a position is filled by an employee.
- * This task is directly related to a production event.
+ * A task represent a period in time where a position is filled by an employee. This task is directly related to a
+ * production event.
*
* @author Patrik Dufresne
*
*/
@Entity
-@NamedQueries( {
- @NamedQuery(name = "listQualificationAndAvaibilityTable", query = "SELECT E, Ta, Po, Se, PE, Pr, S, Te "
- + "FROM Employee E, Task Ta JOIN Ta.position as Po JOIN Po.section as Se JOIN Ta.productionEvent as PE JOIN PE.product as Pr JOIN PE.shift as S JOIN S.team as Te, Qualification Q "
- + "WHERE E.id = Q.employee "
- + "AND Q.position=Ta.position "
- + "AND Ta.startDate >= :start "
- + "AND Ta.endDate <= :end "
- + "AND not exists ( "
- + "FROM NonAvailability as NA "
- + "WHERE NA.employee=E "
- + "AND NA.startDate <= Ta.startDate "
- + "AND NA.endDate >= Ta.endDate "
- + ")"),
+@NamedQueries({
+ @NamedQuery(
+ name = "listQualificationAndAvaibilityTable",
+ query = "SELECT E, Ta, Po, Se, PE, Pr, S, Te "
+ + "FROM Employee E, Task Ta JOIN Ta.position as Po JOIN Po.section as Se JOIN Ta.productionEvent as PE JOIN PE.product as Pr JOIN PE.shift as S JOIN S.team as Te, Qualification Q "
+ + "WHERE E.id = Q.employee "
+ + "AND Q.position=Ta.position "
+ + "AND Ta.startDate >= :start "
+ + "AND Ta.endDate <= :end "
+ + "AND not exists ( "
+ + "FROM NonAvailability as NA "
+ + "WHERE NA.employee=E "
+ + "AND NA.startDate <= Ta.startDate "
+ + "AND NA.endDate >= Ta.endDate "
+ + ")"),
@NamedQuery(name = "listQualifiedAndAvailableEmployees", query = "SELECT DISTINCT E "
+ "FROM Employee E, Qualification Q, ProductPosition PP, ProductionEvent PE "
+ "JOIN PE.shift as S "
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/TaskManager.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/TaskManager.java
index 662ff0079cd7e5d71b5b923ac85fd8288ada65aa..c37d10a24ca836e4dbabcd6d2a4df40cec566585 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/TaskManager.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/TaskManager.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
@@ -60,10 +62,11 @@ public class TaskManager extends AbstractManager {
// (start < event.end < end)
// OU
// (event.start < start ET event.end > end)
- return Restrictions.or(Restrictions.or(Restrictions.between(AbstractCalendarEvent.START_DATE, start, end), Restrictions.between(
- AbstractCalendarEvent.END_DATE,
- start,
- end)), Restrictions.and(Restrictions.lt(AbstractCalendarEvent.START_DATE, start), Restrictions.gt(AbstractCalendarEvent.END_DATE, end)));
+ return Restrictions.or(
+ Restrictions.or(
+ Restrictions.between(AbstractCalendarEvent.START_DATE, start, end),
+ Restrictions.between(AbstractCalendarEvent.END_DATE, start, end)),
+ Restrictions.and(Restrictions.lt(AbstractCalendarEvent.START_DATE, start), Restrictions.gt(AbstractCalendarEvent.END_DATE, end)));
}
public TaskManager(PlanimodManagers managers) {
@@ -172,8 +175,12 @@ public class TaskManager extends AbstractManager {
return getManagers().query(new Query>() {
@Override
public List run() throws ManagerException {
- return ManagerContext.getDefaultSession().createCriteria(Task.class).add(startEndCriterion(start, end)).add(
- Restrictions.eq(Task.EMPLOYEE, employee)).list();
+ return ManagerContext
+ .getDefaultSession()
+ .createCriteria(Task.class)
+ .add(startEndCriterion(start, end))
+ .add(Restrictions.eq(Task.EMPLOYEE, employee))
+ .list();
}
});
}
@@ -206,8 +213,11 @@ public class TaskManager extends AbstractManager {
// FIXME the list of events should be used to reduce the
// size of the table Query database
DetachedCriteria subSelectProducts = DetachedCriteria.forClass(ProductionEvent.class).setProjection(Property.forName(ProductionEvent.PRODUCT));
- List productPositions = ManagerContext.getDefaultSession().createCriteria(ProductPosition.class).add(
- Property.forName(ProductPosition.PRODUCT).in(subSelectProducts)).list();
+ List productPositions = ManagerContext
+ .getDefaultSession()
+ .createCriteria(ProductPosition.class)
+ .add(Property.forName(ProductPosition.PRODUCT).in(subSelectProducts))
+ .list();
// Create the table.
BidiMultiMap table = new BidiMultiHashMap();
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/TaskNonAvailabilityTable.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/TaskNonAvailabilityTable.java
index e9e1b32e5cb12b27529fdfc70cfad3ddcc34cac9..320e6000478aba012dd125da563d550ebd145ccf 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/TaskNonAvailabilityTable.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/TaskNonAvailabilityTable.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/TaskQualificationTable.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/TaskQualificationTable.java
index 622892ac251e98ade4abfd855008fc897f80f289..ab04d5d93bd197ea3bc39b5770645e4d6aeecfc9 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/TaskQualificationTable.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/TaskQualificationTable.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
@@ -25,8 +27,8 @@ import com.patrikdufresne.util.AbstractBidiMultiMap;
import com.patrikdufresne.util.BidiMultiMap;
/**
- * This class is used to represent the qualification of an employee. If the
- * employee is qualify to work on a task, an entry exists in this table.
+ * This class is used to represent the qualification of an employee. If the employee is qualify to work on a task, an
+ * entry exists in this table.
*
* @author Patrik Dufresne
*
@@ -50,8 +52,7 @@ public class TaskQualificationTable extends AbstractBidiMultiMap
}
/**
- * This implementation does a cross product between the known employees
- * and known tasks.
+ * This implementation does a cross product between the known employees and known tasks.
*/
@Override
public Iterator> iterator() {
@@ -84,8 +85,7 @@ public class TaskQualificationTable extends AbstractBidiMultiMap
}
/**
- * This implementation always throw
- * UnsupportedOperationException.
+ * This implementation always throw UnsupportedOperationException.
*/
@Override
public void remove() {
@@ -164,8 +164,7 @@ public class TaskQualificationTable extends AbstractBidiMultiMap
}
/**
- * This implementation check if the entry exists using the qualification
- * table.
+ * This implementation check if the entry exists using the qualification table.
*/
@Override
public boolean containsEntry(Object key, Object value) {
@@ -176,8 +175,7 @@ public class TaskQualificationTable extends AbstractBidiMultiMap
}
/**
- * This implementation check if the key exists using the qualification
- * table.
+ * This implementation check if the key exists using the qualification table.
*/
@Override
public boolean containsKey(Object key) {
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Team.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Team.java
index dc4201f84937088c51a7df8e95353c76ca4e163a..3bb4927b214e569636c11ade2be56f122bf9e592 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Team.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/Team.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/TeamManager.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/TeamManager.java
index fff88af7773d1be802c0c9de6eafea77523af924..7021036d6d237603ccbfc07f6becc750ab63f4e3 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/TeamManager.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/TeamManager.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/TimeRange.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/TimeRange.java
index 97b5089de4887a220fe5874921990400683fd364..bf081c5fe6ade7618bfc014d21ea5de05c2a6794 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/TimeRange.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/TimeRange.java
@@ -1,25 +1,26 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
import java.util.Date;
/**
- * Concrete implementation of a time range define with a start date and a end
- * date. This implementation is immutable.
+ * Concrete implementation of a time range define with a start date and a end date. This implementation is immutable.
*
* @author Patrik Dufresne
*
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/TimeRanges.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/TimeRanges.java
index 6e6355be2880eccb556068bf69c3106f7b685b9d..76da7e0c6b0044bc6d4cd01e68809e5ed77027c8 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/TimeRanges.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/TimeRanges.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core;
@@ -56,8 +58,7 @@ public class TimeRanges {
}
/**
- * Check if the first time range constraint or is equals to the second time
- * range.
+ * Check if the first time range constraint or is equals to the second time range.
*
* @param s1
* @param e1
@@ -73,8 +74,7 @@ public class TimeRanges {
}
/**
- * Check if the first time range constraint or is equals to the second time
- * range.
+ * Check if the first time range constraint or is equals to the second time range.
*
* @param s1
* @param e1
@@ -87,8 +87,8 @@ public class TimeRanges {
}
/**
- * Check if the event e1
contains or is equals to the time
- * range specified by start
and end
.
+ * Check if the event e1
contains or is equals to the time range specified by start
and
+ * end
.
*
* @param e1
* the event
@@ -122,8 +122,8 @@ public class TimeRanges {
}
/**
- * Return the first days of the first week of the month. The first week of a
- * month is define by {@link Calendar#getMinimalDaysInFirstWeek()}.
+ * Return the first days of the first week of the month. The first week of a month is define by
+ * {@link Calendar#getMinimalDaysInFirstWeek()}.
*
* @param date
* The original date.
@@ -226,11 +226,9 @@ public class TimeRanges {
}
/**
- * This function is used to calculate the date value of a the time
- * specified.
+ * This function is used to calculate the date value of a the time specified.
*
- * This is used if you want the date value of a time (6:00 AM) but for a
- * specific week.
+ * This is used if you want the date value of a time (6:00 AM) but for a specific week.
*
* @param time
* the time value
@@ -314,8 +312,7 @@ public class TimeRanges {
}
/**
- * Check if the first time range happen before with the first time range and
- * intersect with it.
+ * Check if the first time range happen before with the first time range and intersect with it.
*
* @param s1
* the first time range
@@ -333,8 +330,7 @@ public class TimeRanges {
}
/**
- * Check if the first time range happen before with the first time range and
- * intersect with it.
+ * Check if the first time range happen before with the first time range and intersect with it.
*
* @param s1
* the first time range
@@ -359,8 +355,8 @@ public class TimeRanges {
}
/**
- * Check if the first time range intersect, contains or equals the second
- * time range. Return true if and only if s2 < e1 And s1 < e2
+ * Check if the first time range intersect, contains or equals the second time range. Return true if and only if
+ * s2 < e1 And s1 < e2
*
* @param s1
* @param e1
@@ -376,8 +372,8 @@ public class TimeRanges {
}
/**
- * Check if the first time range intersect, contains or equals the second
- * time range. Return true if and only if s2 < e1 And s1 < e2
+ * Check if the first time range intersect, contains or equals the second time range. Return true if and only if
+ * s2 < e1 And s1 < e2
*
* @param s1
* @param e1
@@ -390,8 +386,8 @@ public class TimeRanges {
}
/**
- * Check if the event intersect, constains, or equals the time range. Return
- * true if and only if start < event.end And event.start < end
+ * Check if the event intersect, constains, or equals the time range. Return true if and only if
+ * start < event.end And event.start < end
*
* @param event
* @param start
@@ -403,8 +399,7 @@ public class TimeRanges {
}
/**
- * Check if the first events intersect, contains, or equals the second time
- * range. Return true if and only if
+ * Check if the first events intersect, contains, or equals the second time range. Return true if and only if
* e2.start < e1.end And e1.start < e2.end
*
* @param e1
@@ -416,8 +411,8 @@ public class TimeRanges {
}
/**
- * Check if two time range are intersecting. Two time range are intersecting
- * if and only if s1 < s2 < e1 < e2 OR s2 < s1 < e2 < e1
+ * Check if two time range are intersecting. Two time range are intersecting if and only if
+ * s1 < s2 < e1 < e2 OR s2 < s1 < e2 < e1
*
* @param s1
* @param e1
@@ -433,8 +428,8 @@ public class TimeRanges {
}
/**
- * Check if two time range are intersecting. Two time range are intersecting
- * if and only if s1 < s2 < e1 < e2 OR s2 < s1 < e2 < e1
+ * Check if two time range are intersecting. Two time range are intersecting if and only if
+ * s1 < s2 < e1 < e2 OR s2 < s1 < e2 < e1
*
* @param s1
* @param e1
@@ -447,8 +442,7 @@ public class TimeRanges {
}
/**
- * Check if the given calendar event intersect with the the start and end
- * date.
+ * Check if the given calendar event intersect with the the start and end date.
*
* @param event
* @param start
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/EmployeeComparators.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/EmployeeComparators.java
index 6dccf4488834ca9cefa9033d840d812b364fe056..2d0ab4844da0f70662df1ffe7ac78794251cc04d 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/EmployeeComparators.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/EmployeeComparators.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.comparators;
@@ -29,41 +31,44 @@ import com.planimod.core.Employee;
public class EmployeeComparators {
/**
- * Seniority comparator. It use the hireDate and employee's name for
- * comparison. The smaller hireDate is first. A null hireDate is last.
+ * Seniority comparator. It use the hireDate and employee's name for comparison. The smaller hireDate is first. A
+ * null hireDate is last.
*
- * When used to sort, this comparator will sort the employee by increasing
- * hire date. Meaning the first employee is the most senior.
+ * When used to sort, this comparator will sort the employee by increasing hire date. Meaning the first employee is
+ * the most senior.
*
* @return
*/
// TODO This comparator should be removed
public static Comparator bySeniority() {
ComparatorChain chain = new ComparatorChain();
- chain.addComparator(ComparatorUtils.nullHighComparator(ComparatorUtils.transformedComparator(ComparatorUtils.nullHighComparator(ComparatorUtils
- .naturalComparator()), new Transformer() {
+ chain.addComparator(ComparatorUtils.nullHighComparator(ComparatorUtils.transformedComparator(
+ ComparatorUtils.nullHighComparator(ComparatorUtils.naturalComparator()),
+ new Transformer() {
- @Override
- public Object transform(Object arg0) {
- return ((Employee) arg0).getHireDate();
- }
- })));
- chain.addComparator(ComparatorUtils.nullHighComparator(ComparatorUtils.transformedComparator(ComparatorUtils.nullHighComparator(ComparatorUtils
- .naturalComparator()), new Transformer() {
+ @Override
+ public Object transform(Object arg0) {
+ return ((Employee) arg0).getHireDate();
+ }
+ })));
+ chain.addComparator(ComparatorUtils.nullHighComparator(ComparatorUtils.transformedComparator(
+ ComparatorUtils.nullHighComparator(ComparatorUtils.naturalComparator()),
+ new Transformer() {
- @Override
- public Object transform(Object arg0) {
- return ((Employee) arg0).getFirstname();
- }
- })));
- chain.addComparator(ComparatorUtils.nullHighComparator(ComparatorUtils.transformedComparator(ComparatorUtils.nullHighComparator(ComparatorUtils
- .naturalComparator()), new Transformer() {
+ @Override
+ public Object transform(Object arg0) {
+ return ((Employee) arg0).getFirstname();
+ }
+ })));
+ chain.addComparator(ComparatorUtils.nullHighComparator(ComparatorUtils.transformedComparator(
+ ComparatorUtils.nullHighComparator(ComparatorUtils.naturalComparator()),
+ new Transformer() {
- @Override
- public Object transform(Object arg0) {
- return ((Employee) arg0).getLastname();
- }
- })));
+ @Override
+ public Object transform(Object arg0) {
+ return ((Employee) arg0).getLastname();
+ }
+ })));
return chain;
}
@@ -74,22 +79,24 @@ public class EmployeeComparators {
*/
public static Comparator byName() {
ComparatorChain chain = new ComparatorChain();
- chain.addComparator(ComparatorUtils.nullHighComparator(ComparatorUtils.transformedComparator(ComparatorUtils.nullLowComparator(ComparatorUtils
- .nullHighComparator(ComparatorUtils.naturalComparator())), new Transformer() {
+ chain.addComparator(ComparatorUtils.nullHighComparator(ComparatorUtils.transformedComparator(
+ ComparatorUtils.nullLowComparator(ComparatorUtils.nullHighComparator(ComparatorUtils.naturalComparator())),
+ new Transformer() {
- @Override
- public Object transform(Object arg0) {
- return ((Employee) arg0).getFirstname();
- }
- })));
- chain.addComparator(ComparatorUtils.nullHighComparator(ComparatorUtils.transformedComparator(ComparatorUtils.nullHighComparator(ComparatorUtils
- .naturalComparator()), new Transformer() {
+ @Override
+ public Object transform(Object arg0) {
+ return ((Employee) arg0).getFirstname();
+ }
+ })));
+ chain.addComparator(ComparatorUtils.nullHighComparator(ComparatorUtils.transformedComparator(
+ ComparatorUtils.nullHighComparator(ComparatorUtils.naturalComparator()),
+ new Transformer() {
- @Override
- public Object transform(Object arg0) {
- return ((Employee) arg0).getLastname();
- }
- })));
+ @Override
+ public Object transform(Object arg0) {
+ return ((Employee) arg0).getLastname();
+ }
+ })));
return chain;
}
}
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/EmployeePreferenceComparators.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/EmployeePreferenceComparators.java
index 5552cd6ecdcdb1c2f520ab7874f365159825b9ad..896aba7b9aecdd651e7d911c8e5932ae267e4e77 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/EmployeePreferenceComparators.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/EmployeePreferenceComparators.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.comparators;
@@ -48,8 +50,8 @@ public class EmployeePreferenceComparators {
}
/**
- * Comparator to sort employee by section and then by seniority. This
- * comparator doesn't consider the field preferencialSeniority.
+ * Comparator to sort employee by section and then by seniority. This comparator doesn't consider the field
+ * preferencialSeniority.
*
* @return
*/
@@ -105,11 +107,11 @@ public class EmployeePreferenceComparators {
}
/**
- * Seniority comparator. It use the hireDate and employee's name for
- * comparison. The smaller hireDate is first. A null hireDate is last.
+ * Seniority comparator. It use the hireDate and employee's name for comparison. The smaller hireDate is first. A
+ * null hireDate is last.
*
- * When used to sort, this comparator will sort the employee by increasing
- * hire date. Meaning the first employee is the most senior.
+ * When used to sort, this comparator will sort the employee by increasing hire date. Meaning the first employee is
+ * the most senior.
*
* @return
*/
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/HumanNaturalComparator.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/HumanNaturalComparator.java
index 8154c3768fc5d553609bf6b1e6eb5df08e2b8bd6..76d7d773a311236b4b882411bbd34905a02da89d 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/HumanNaturalComparator.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/HumanNaturalComparator.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
/*
NaturalOrderComparator.java -- Perform 'natural order' comparisons of strings in Java.
@@ -62,9 +64,8 @@ public class HumanNaturalComparator implements Comparator {
/**
* Gets the singleton instance of a HumanNaturalComparator.
*
- * Developers are encouraged to use the comparator returned from this method
- * instead of constructing a new instance to reduce allocation and GC
- * overhead when multiple comparable comparators may be used in the same VM.
+ * Developers are encouraged to use the comparator returned from this method instead of constructing a new instance
+ * to reduce allocation and GC overhead when multiple comparable comparators may be used in the same VM.
*
* @return the singleton HumanNaturalComparator
*/
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/NonAvailabilityComparators.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/NonAvailabilityComparators.java
index 302d9d6fee2733e6138bef34fa5b95931face02f..c83a6e911dc511a0d88c14f6b568a12929f3f154 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/NonAvailabilityComparators.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/NonAvailabilityComparators.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.comparators;
@@ -42,21 +44,23 @@ public class NonAvailabilityComparators {
ComparatorChain chain = new ComparatorChain();
- chain.addComparator(ComparatorUtils.nullHighComparator(ComparatorUtils.transformedComparator(ComparatorUtils.nullLowComparator(ComparatorUtils
- .naturalComparator()), new Transformer() {
- @Override
- public Object transform(Object arg0) {
- return ((AbstractCalendarEvent) arg0).getStartDate();
- }
- })));
+ chain.addComparator(ComparatorUtils.nullHighComparator(ComparatorUtils.transformedComparator(
+ ComparatorUtils.nullLowComparator(ComparatorUtils.naturalComparator()),
+ new Transformer() {
+ @Override
+ public Object transform(Object arg0) {
+ return ((AbstractCalendarEvent) arg0).getStartDate();
+ }
+ })));
- chain.addComparator(ComparatorUtils.nullHighComparator(ComparatorUtils.transformedComparator(ComparatorUtils.nullLowComparator(EmployeeComparators
- .byName()), new Transformer() {
- @Override
- public Object transform(Object arg0) {
- return ((NonAvailability) arg0).getEmployee();
- }
- })));
+ chain.addComparator(ComparatorUtils.nullHighComparator(ComparatorUtils.transformedComparator(
+ ComparatorUtils.nullLowComparator(EmployeeComparators.byName()),
+ new Transformer() {
+ @Override
+ public Object transform(Object arg0) {
+ return ((NonAvailability) arg0).getEmployee();
+ }
+ })));
return chain;
}
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/PositionComparators.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/PositionComparators.java
index 41c0a03531486299530d2935a409edd1bd7504b0..59928c5a2db80170be3dd5d31da5ccad6f56b1f8 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/PositionComparators.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/PositionComparators.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.comparators;
@@ -65,8 +67,7 @@ public class PositionComparators {
}
/**
- * Comparator to sort Position by classified position (first) and then by
- * name.
+ * Comparator to sort Position by classified position (first) and then by name.
*
* @return
*/
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/ProductComparators.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/ProductComparators.java
index 2723b2254ce5cd957b1b18f1c4f7a1568fd746c5..bc9472101008e8171f13d5808ebc1b149c8e2b2b 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/ProductComparators.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/ProductComparators.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.comparators;
@@ -47,30 +49,33 @@ public class ProductComparators {
public static Comparator super Product> byRefIdFamilyName() {
ComparatorChain chain = new ComparatorChain();
- chain.addComparator(ComparatorUtils.nullHighComparator(ComparatorUtils.transformedComparator(ComparatorUtils.nullHighComparator(HumanNaturalComparator
- .getInstance()), new Transformer() {
- @Override
- public Object transform(Object arg0) {
- String refId = ((Product) arg0).getRefId();
- return refId == null || refId.isEmpty() ? null : refId;
- }
- })));
+ chain.addComparator(ComparatorUtils.nullHighComparator(ComparatorUtils.transformedComparator(
+ ComparatorUtils.nullHighComparator(HumanNaturalComparator.getInstance()),
+ new Transformer() {
+ @Override
+ public Object transform(Object arg0) {
+ String refId = ((Product) arg0).getRefId();
+ return refId == null || refId.isEmpty() ? null : refId;
+ }
+ })));
- chain.addComparator(ComparatorUtils.nullHighComparator(ComparatorUtils.transformedComparator(ComparatorUtils.nullHighComparator(ComparatorUtils
- .naturalComparator()), new Transformer() {
- @Override
- public Object transform(Object arg0) {
- return ((Product) arg0).getFamily();
- }
- })));
+ chain.addComparator(ComparatorUtils.nullHighComparator(ComparatorUtils.transformedComparator(
+ ComparatorUtils.nullHighComparator(ComparatorUtils.naturalComparator()),
+ new Transformer() {
+ @Override
+ public Object transform(Object arg0) {
+ return ((Product) arg0).getFamily();
+ }
+ })));
- chain.addComparator(ComparatorUtils.nullHighComparator(ComparatorUtils.transformedComparator(ComparatorUtils.nullHighComparator(ComparatorUtils
- .naturalComparator()), new Transformer() {
- @Override
- public Object transform(Object arg0) {
- return ((Product) arg0).getName();
- }
- })));
+ chain.addComparator(ComparatorUtils.nullHighComparator(ComparatorUtils.transformedComparator(
+ ComparatorUtils.nullHighComparator(ComparatorUtils.naturalComparator()),
+ new Transformer() {
+ @Override
+ public Object transform(Object arg0) {
+ return ((Product) arg0).getName();
+ }
+ })));
return chain;
}
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/ProductionEventComparators.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/ProductionEventComparators.java
index 60f46f8393b6a18e976bfd4a2adf0192f230c22c..e8b83c1f4253b0e929020f54aa974fb053e2ebc2 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/ProductionEventComparators.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/ProductionEventComparators.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.comparators;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/SectionComparators.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/SectionComparators.java
index a0e18884645bf2c8c7c297e806ea699f2bc47234..58bab5e6fac1df44ef5bad6ad547fc9a195605f1 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/SectionComparators.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/SectionComparators.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.comparators;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/ShiftComparators.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/ShiftComparators.java
index 44e8ae45d0610e29edf3ddb2a721fae0c13fda45..f1226072a26ff1b3c6a5dcfbf3213483bfca815b 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/ShiftComparators.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/ShiftComparators.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.comparators;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/TaskComparators.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/TaskComparators.java
index e4b3b02d54736bf0ed5f0d130d0f7eb7636202e5..a3b06201955c55fb4282429a48ec6733c293feb2 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/TaskComparators.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/TaskComparators.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.comparators;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/TeamComparators.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/TeamComparators.java
index 79c37862f3368fe7d1163dc0ee359542a272aca3..ce651d3c12bb5bae447ad79f2b9f22e3c6bb7847 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/TeamComparators.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/TeamComparators.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.comparators;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/TimeRangeComparators.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/TimeRangeComparators.java
index e0b50a4e38d5a5f084834897a4522e21156b6961..5455be3e8869c33e3aa9140b3447f611cfd7ab43 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/TimeRangeComparators.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/comparators/TimeRangeComparators.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.comparators;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/AbstractConstraintRunnable.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/AbstractConstraintRunnable.java
index f61de9a62c8569f4e452604b52f9059cba10faa0..b00c5bcbfb3e820bc92d870b3b20dba5b91eb0b5 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/AbstractConstraintRunnable.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/AbstractConstraintRunnable.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/CheckEmployeeNotWorking.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/CheckEmployeeNotWorking.java
index aac8d145d1ffea9fcdc43028ee4a0a85a3cdf231..b37b48598eebe23c7d47c9a3601d79262a84ec17 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/CheckEmployeeNotWorking.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/CheckEmployeeNotWorking.java
@@ -1,14 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/CheckFeasible.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/CheckFeasible.java
index 3edf294b77e0a0ba3d2e28e4537f018bd7a4d74b..7031bdec92b2cdf8c517404a3ab39a8f2fee8638 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/CheckFeasible.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/CheckFeasible.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/CheckPreferredTeam.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/CheckPreferredTeam.java
index 6019f168acac13ab3ca3a1587267431acfa8c52b..19d09e9e5e4b71be8c8aeb77a132571812fb3437 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/CheckPreferredTeam.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/CheckPreferredTeam.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/CheckSwappableTask.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/CheckSwappableTask.java
index 3a53eff44ab372fe258e15bb98ff061362ef124e..5b0162d54e930503c72ba0f83aa7297e6e280685 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/CheckSwappableTask.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/CheckSwappableTask.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/CheckTaskAssigned.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/CheckTaskAssigned.java
index 269ec55f6721d1fcfa3c71134613e36726b9c78b..a5de5b2840d09d4e99ee45f43c94fa7abe99b8b8 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/CheckTaskAssigned.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/CheckTaskAssigned.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/CoefficientList.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/CoefficientList.java
index 71db136bcb424c14de50c18066363fd63fa82c45..bc5049405305dc8ede3b49434e1564a775f97d7b 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/CoefficientList.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/CoefficientList.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/GeneratePlanifContext.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/GeneratePlanifContext.java
index b7afb8385e6e4ae321bdc9545e76b44b47c6e72d..0689dc46dafa6f3d0131c676ce26a14a12699fd2 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/GeneratePlanifContext.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/GeneratePlanifContext.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
@@ -57,14 +59,11 @@ import com.planimod.core.TimeRanges;
*
*
*
- * This class create a linear problem representing the employees, teams, and
- * tasks and solve it.
+ * This class create a linear problem representing the employees, teams, and tasks and solve it.
*
* - x[i] take the value 1 if and only if the employee i is working.
- * - x[i,j] take the value 1 if an only if the employee i is working on team
- * j.
- * - x[i,k] take the value 1 if an onl if the employee i is working on task k.
- *
+ * - x[i,j] take the value 1 if an only if the employee i is working on team j.
+ * - x[i,k] take the value 1 if an onl if the employee i is working on task k.
*
*
* @author Patrik Dufresne
@@ -121,8 +120,7 @@ public class GeneratePlanifContext {
public static final String WEEK = "week";
/**
- * Check if any object within the array matches the given planif and or time
- * range.
+ * Check if any object within the array matches the given planif and or time range.
*
* @param planif
* the planif to matches against
@@ -150,8 +148,8 @@ public class GeneratePlanifContext {
}
/**
- * This function is used as a SELECT statement to retrieve the list of
- * planification event related to a given event and position.
+ * This function is used as a SELECT statement to retrieve the list of planification event related to a given event
+ * and position.
*
* @param tasks
* the collection of planification event to filter.
@@ -193,9 +191,8 @@ public class GeneratePlanifContext {
/**
* Define the ending date of the planif.
*
- * This value is cached between search. It's used to avoid recomputing the
- * start date of the week. When null, this value can be recomputed using
- * {@link #computeTimeRange()}.
+ * This value is cached between search. It's used to avoid recomputing the start date of the week. When null, this
+ * value can be recomputed using {@link #computeTimeRange()}.
*/
Date end;
@@ -211,8 +208,7 @@ public class GeneratePlanifContext {
/**
* The non-availability table.
*
- * This map is cached between search. It's used to compute the proposed
- * task.
+ * This map is cached between search. It's used to compute the proposed task.
*/
TaskNonAvailabilityTable nonAvailabilityTable;
@@ -233,17 +229,15 @@ public class GeneratePlanifContext {
/**
* The qualification table.
*
- * This map is cached between search. It's used to provide fast access to
- * different list.
+ * This map is cached between search. It's used to provide fast access to different list.
*/
TaskQualificationTable qualificationTable;
/**
* The starting date of this planif context.
*
- * This value is cached between search. It's used to avoid recomputing the
- * start date of the week. When null, this value can be recomputed using
- * {@link #computeTimeRange()}.
+ * This value is cached between search. It's used to avoid recomputing the start date of the week. When null, this
+ * value can be recomputed using {@link #computeTimeRange()}.
*/
Date start;
@@ -302,8 +296,7 @@ public class GeneratePlanifContext {
}
/**
- * Check the context state. This function throw an exception is it's
- * disposed.
+ * Check the context state. This function throw an exception is it's disposed.
*
* @throws ManagerException
*/
@@ -365,8 +358,7 @@ public class GeneratePlanifContext {
List taskAddeds = new ArrayList();
/*
- * From the production events list, we need to create (or find) planif
- * events for each position.
+ * From the production events list, we need to create (or find) planif events for each position.
*/
for (ProductionEvent productionEvent : originalProductionEvents) {
// The list of position required to produce the product
@@ -380,42 +372,42 @@ public class GeneratePlanifContext {
// event.
List relatedTasks = selectTasksMatchingProduction(taskObsolets, productionEvent, null);
- // if (splitedEvents.size() > 1 && relatedTasks.size() > 0) {
- // // In case the original production event is split, the
- // // associated task may required to be split too. Otherwise, the
- // // tasks may not be recycle properly and the locking information
- // // may be lost.
- // List splitedTasks = new ArrayList();
- // for (Task t : relatedTasks) {
- // // Check if the task start and end is matching the original
- // // shift's start and end.
- // if (!t.getStartDate().equals(
- // productionEvent.getShift().getStartDate())
- // || !t.getEndDate().equals(
- // productionEvent.getShift().getEndDate())) {
- // continue;
- // }
- // // Since it's matches, duplicate the task
- // for (int i = 0; i < splitedEvents.size(); i++) {
- // Task t2;
- // if (i == 0) {
- // t2 = t;
- // } else {
- // t2 = new Task();
- // t2.setEmployee(t.getEmployee());
- // t2.setLocked(t.getLocked());
- // t2.setPosition(t.getPosition());
- // t2.setProductionEvent(productionEvent);
- // splitedTasks.add(t2);
- // }
- // t.setStartDate(splitedEvents.get(i).getStartDate());
- // t.setEndDate(splitedEvents.get(i).getEndDate());
- // }
- // }
- // relatedTasks.addAll(splitedTasks);
- // }
-
- // for (Shift splited : splitedEvents) {
+ // if (splitedEvents.size() > 1 && relatedTasks.size() > 0) {
+ // // In case the original production event is split, the
+ // // associated task may required to be split too. Otherwise, the
+ // // tasks may not be recycle properly and the locking information
+ // // may be lost.
+ // List splitedTasks = new ArrayList();
+ // for (Task t : relatedTasks) {
+ // // Check if the task start and end is matching the original
+ // // shift's start and end.
+ // if (!t.getStartDate().equals(
+ // productionEvent.getShift().getStartDate())
+ // || !t.getEndDate().equals(
+ // productionEvent.getShift().getEndDate())) {
+ // continue;
+ // }
+ // // Since it's matches, duplicate the task
+ // for (int i = 0; i < splitedEvents.size(); i++) {
+ // Task t2;
+ // if (i == 0) {
+ // t2 = t;
+ // } else {
+ // t2 = new Task();
+ // t2.setEmployee(t.getEmployee());
+ // t2.setLocked(t.getLocked());
+ // t2.setPosition(t.getPosition());
+ // t2.setProductionEvent(productionEvent);
+ // splitedTasks.add(t2);
+ // }
+ // t.setStartDate(splitedEvents.get(i).getStartDate());
+ // t.setEndDate(splitedEvents.get(i).getEndDate());
+ // }
+ // }
+ // relatedTasks.addAll(splitedTasks);
+ // }
+
+ // for (Shift splited : splitedEvents) {
for (ProductPosition productPosition : productPositions) {
Position position = productPosition.getPosition();
@@ -447,7 +439,7 @@ public class GeneratePlanifContext {
task.setPosition(position);
}
}
- // }
+ // }
}
// Any remaining planif event in the list should be remove
@@ -459,8 +451,7 @@ public class GeneratePlanifContext {
}
/**
- * Calculate the planif time range (start date and ending date) according to
- * application settings.
+ * Calculate the planif time range (start date and ending date) according to application settings.
*
* This function does nothing if the week date it not set.
*
@@ -500,8 +491,7 @@ public class GeneratePlanifContext {
}
/**
- * This function remove all the observer previously attach by
- * {@link #attachObservers()}.
+ * This function remove all the observer previously attach by {@link #attachObservers()}.
*/
private void detachObservers() {
this.managers.removeObserver(ManagerEvent.ALL, Qualification.class, this.observer);
@@ -548,8 +538,7 @@ public class GeneratePlanifContext {
}
/**
- * For the current planif and week, return a list of task offer to the given
- * employee.
+ * For the current planif and week, return a list of task offer to the given employee.
*
* @param employee
* the employee
@@ -702,11 +691,9 @@ public class GeneratePlanifContext {
}
/**
- * Check if this context is dirty. This context become dirty whenever the
- * state of the planif event doesn't match the state of the database. To
- * clear this context, the function
- * {@link #searchSolution(IGeneratePlanifProgressMonitor)} should be called
- * to compute the optimal solution.
+ * Check if this context is dirty. This context become dirty whenever the state of the planif event doesn't match
+ * the state of the database. To clear this context, the function
+ * {@link #searchSolution(IGeneratePlanifProgressMonitor)} should be called to compute the optimal solution.
*
* @return True if this context is dirty
*/
@@ -764,8 +751,7 @@ public class GeneratePlanifContext {
}
/**
- * For the current planif and week, return a list of employee available and
- * qualify at least for one task.
+ * For the current planif and week, return a list of employee available and qualify at least for one task.
*
* @return list of employee
* @throws ManagerException
@@ -811,8 +797,7 @@ public class GeneratePlanifContext {
}
/**
- * For the current planif and week date, return a list of tasks currently in
- * database.
+ * For the current planif and week date, return a list of tasks currently in database.
*
* @return the tasks
* @throws ManagerException
@@ -838,8 +823,7 @@ public class GeneratePlanifContext {
}
/**
- * For the current planif and week date, return a list of tasks assigned to
- * the given employee.
+ * For the current planif and week date, return a list of tasks assigned to the given employee.
*
* @param employee
* the employee
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/GeneratePlanifException.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/GeneratePlanifException.java
index 48e4ef04b1e87c9e720872721abcba68d1b6f5f0..e2f32a81a7e08f2bcace21333847892c4a01c1aa 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/GeneratePlanifException.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/GeneratePlanifException.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
@@ -21,8 +23,7 @@ import com.planimod.core.Task;
import com.planimod.core.Team;
/**
- * Exception raised when an handle error occurred within the generate planif
- * process.
+ * Exception raised when an handle error occurred within the generate planif process.
*
* @author Patrik Dufresne
*/
@@ -34,9 +35,8 @@ public class GeneratePlanifException extends ManagerException {
public static final int CANCEL_BY_USER = 2;
/**
- * Reason code to identify an employee being locked on a task for which he
- * is not qualied or available. The employee must be unlocked to generate a
- * planif.
+ * Reason code to identify an employee being locked on a task for which he is not qualied or available. The employee
+ * must be unlocked to generate a planif.
*
* Should be raised with an employee and a task.
*/
@@ -48,8 +48,8 @@ public class GeneratePlanifException extends ManagerException {
private static final long serialVersionUID = 1L;
/**
- * Reason code raised when the problem is not feasible from the start. This
- * is most probably due to an employee locked on conflicting task or team.
+ * Reason code raised when the problem is not feasible from the start. This is most probably due to an employee
+ * locked on conflicting task or team.
*/
public static final int STARTING_UNFEASIBLE = 5;
@@ -73,10 +73,14 @@ public class GeneratePlanifException extends ManagerException {
/**
* Create a new exception with the reason specified.
*
- * @param message the detail message.
- * @param reason the reason.
- * @param employee the related employee or null
- * @param task the related task or null
+ * @param message
+ * the detail message.
+ * @param reason
+ * the reason.
+ * @param employee
+ * the related employee or null
+ * @param task
+ * the related task or null
*/
public GeneratePlanifException(String message, int reason, Employee employee, Task task) {
this(message, reason, employee, task, null);
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/GeneratePlanifProgressMonitorStep.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/GeneratePlanifProgressMonitorStep.java
index fb8ced976278635c5f593a7788f9c380c966204f..e5826bb8eecd46d784a511209261a89be91cca97 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/GeneratePlanifProgressMonitorStep.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/GeneratePlanifProgressMonitorStep.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/HasSeniorityToWorkOnPreferedTeamWarning.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/HasSeniorityToWorkOnPreferedTeamWarning.java
index d97565a1e3e2e1645ed2d4ab7f586e60fb2c2f36..c9a50dcedf1b84d7a2b3cb8facc3c229264fb570 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/HasSeniorityToWorkOnPreferedTeamWarning.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/HasSeniorityToWorkOnPreferedTeamWarning.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/ICallbackReason.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/ICallbackReason.java
index e881806e756733ed4d4a335aa873dbe0e512449e..56e6edef87a3fa8444bc644847c3568f8e12ba02 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/ICallbackReason.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/ICallbackReason.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/IGeneratePlanifProgressMonitor.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/IGeneratePlanifProgressMonitor.java
index 13551862df79bcd25f7f4fe6ec706af2b2387a0e..6a855dab4bb4041e37e2765a025522f942bee5ab 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/IGeneratePlanifProgressMonitor.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/IGeneratePlanifProgressMonitor.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxAllTaskAssigned.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxAllTaskAssigned.java
index b190ccb2848b18d6ce74a106ce758dbe3a445e34..16b4f28d16350935e6c0415b5445174d1ad284d2 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxAllTaskAssigned.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxAllTaskAssigned.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxEmployeePreferences.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxEmployeePreferences.java
index eec12730f1de971d4d53e6e7b67a1a333bb28c44..fee500e5961afa0084ceb8b687b069148715a642 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxEmployeePreferences.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxEmployeePreferences.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxImportantTaskAssigned.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxImportantTaskAssigned.java
index b0651c705e00d7fca73c67aeff77045fae02c2b8..4ba40dcb26a87419167ef321b66e35e2cc1bf2c4 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxImportantTaskAssigned.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxImportantTaskAssigned.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxPreferredPosition.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxPreferredPosition.java
index e7196a60fad31538d1773a501adbc47c95242ec5..675e86f28825ddda84eb38eb6007d9569a7bea99 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxPreferredPosition.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxPreferredPosition.java
@@ -1,14 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxPreferredSection.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxPreferredSection.java
index dd37774ccf4c59173c34203fe08b3989a18e9bba..bf3afa6014ee4e6c7e789cd1131f3fcf0d9f32bc 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxPreferredSection.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxPreferredSection.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxPreferredSeniorities.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxPreferredSeniorities.java
index 480db54dfd02825c170bc969950ba2e5a257085d..27a6d8f2cedcd856c23eafa4f800e05cd9fe6b62 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxPreferredSeniorities.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxPreferredSeniorities.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxPreferredSeniority.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxPreferredSeniority.java
index c04309897ef4ed257cf3c982f02b87f73ba5a7e5..14f821ae769459470e5c7cd1ca7c6f57c921f7b2 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxPreferredSeniority.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxPreferredSeniority.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
@@ -77,7 +79,7 @@ public class MaxPreferredSeniority extends SolveRunnable {
*
* @param i
* the employee
- *
+ *
* @return The preferred team of the employee i or null if the employee has no team.
*/
private Team getFirstPreferredTeam() {
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxPreferredTeams.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxPreferredTeams.java
index f94d6e59ea7cddf598f9460f72c9df1ea98aa30c..a113fb37d7fc9b1ff7dea2020fa7d4325937bf5a 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxPreferredTeams.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxPreferredTeams.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxSeniorEmployee.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxSeniorEmployee.java
index e30074279d4d90f1378e5b5ecd580672895db891..a9b257f99462bfa037102d58e29b01a846ed689d 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxSeniorEmployee.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxSeniorEmployee.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxTaskAssigned.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxTaskAssigned.java
index 634b43d79d1e629f0c9affb118434d636a5c2070..f3d2453ab7093dcacc88a93c0937866df884233a 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxTaskAssigned.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MaxTaskAssigned.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MinAllSwappableTask.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MinAllSwappableTask.java
index f931e53f88350a44067244f45e2c93404ae1f8ee..0da3f3b05bfff16cfc8c8ad598203423511914c5 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MinAllSwappableTask.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MinAllSwappableTask.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MinEmployeeAssigned.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MinEmployeeAssigned.java
index 4c8ab21817ac5054172bde8b344f2bf9b5d1f89c..8ceebddace1d388acbf558367b1ce91abc79e482 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MinEmployeeAssigned.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MinEmployeeAssigned.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MinSwappableTask.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MinSwappableTask.java
index 585f917c0349164cc3aa84d2d2a145584e4b38b7..0f609ca2544d3535d6346abb6811272a0e1ddf1f 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MinSwappableTask.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/MinSwappableTask.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/PreferedSeniorityCallbackReason.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/PreferedSeniorityCallbackReason.java
index 2bbea67ecc2012bc80e59142b55a7ce07dbe532b..b84185083340cd7845dfa59067cdbe21f88c2715 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/PreferedSeniorityCallbackReason.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/PreferedSeniorityCallbackReason.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/PreferedSeniorityWithoutPrefTeamCallbackReason.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/PreferedSeniorityWithoutPrefTeamCallbackReason.java
index 326110bcd92a35fbdbfd8b77e57f01548f14dee7..734d8cee8fd5293f8bd4f52402d3732e87c06109 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/PreferedSeniorityWithoutPrefTeamCallbackReason.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/PreferedSeniorityWithoutPrefTeamCallbackReason.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/ProblemBuilder.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/ProblemBuilder.java
index 1d19040fb409cb4e930fdcec42d6752e60ff9a08..533eb5d4f61f9965b4bb12890c60d0a7f55bc93b 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/ProblemBuilder.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/ProblemBuilder.java
@@ -1,12 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
- * applicable law or agreed to in writing, software distributed under the
- * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
- * OF ANY KIND, either express or implied. See the License for the specific
- * language governing permissions and limitations under the License.
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/ProposedTasks.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/ProposedTasks.java
index 37ed11e80532fff4977815866ebdd1fe7094fb45..f8828a10b66b58cf0a24810879a8ee8a2f1bf187 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/ProposedTasks.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/ProposedTasks.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/ProposedWarning.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/ProposedWarning.java
index b5884fb51b84309bd07c55268f53952c7547ee71..9890f62a94c9de8e7353d1ce075485d447fa62e1 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/ProposedWarning.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/ProposedWarning.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
@@ -33,7 +35,8 @@ public abstract class ProposedWarning {
/**
*
- * @param the employee who is the target of the warning
+ * @param the
+ * employee who is the target of the warning
*/
public ProposedWarning(Employee employee) {
if (employee == null) {
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/SiTable.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/SiTable.java
index 90de4cf010a3aa74c32b11c55ae502ac6c81d421..4ab3bb92e8a79aefcad08f2f5e0a3651feed9844 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/SiTable.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/SiTable.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/SolveRunnable.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/SolveRunnable.java
index f3e211032b6479212322dc73ffe28b62617b6364..a1f5f85db2e79c8ff3606b4a8b6956ce6dee9f37 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/SolveRunnable.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/SolveRunnable.java
@@ -1,14 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/Table.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/Table.java
index 54dae18a2d447ee6b0edf1bb4ad0486424c0446d..79dc41f17159daf2dd5954a39c6b6853181b5a88 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/Table.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/Table.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
@@ -232,8 +234,8 @@ class Table {
}
/**
- * This function return a view on the Gl table. Each entry in this table represent one Gl. An entry is a
- * coefficient list (zero or one) defining if a task is part of the Gl.
+ * This function return a view on the Gl table. Each entry in this table represent one Gl. An entry is a coefficient
+ * list (zero or one) defining if a task is part of the Gl.
*
* @return the Gl table.
*/
@@ -254,8 +256,8 @@ class Table {
}
/**
- * Return every Gl intersecting with the task k
specified. The integer list correspond to a
- * coefficient list for the tasks.
+ * Return every Gl intersecting with the task k
specified. The integer list correspond to a coefficient
+ * list for the tasks.
*
* @param k
* the task
@@ -397,8 +399,7 @@ class Table {
* This function return a view on the Tj table. Each entry in this table represent one team. An entry is a
* coefficient list (zero or one) defining if the task is part of the team.
*
- * If a task k
is part of the team j
, then tj().get(j)[k] equals ONE, otherwise it's
- * null.
+ * If a task k
is part of the team j
, then tj().get(j)[k] equals ONE, otherwise it's null.
*
* @return the Tj table
*/
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/UnassignedTaskCallbackReason.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/UnassignedTaskCallbackReason.java
index 944d2af7746c75d1eef58d841600c8769c0f235d..64ec7ae811e99d94fce0b5dd2c9a65827e715c99 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/UnassignedTaskCallbackReason.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/core/planif/UnassignedTaskCallbackReason.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.core.planif;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/ApplicationSettingPreferenceStore.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/ApplicationSettingPreferenceStore.java
index 939a45f7eff9914a9bc31c3382dc3a8c481fb741..0727e0ab802c545bb7f4b2db48af408662b6ee2c 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/ApplicationSettingPreferenceStore.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/ApplicationSettingPreferenceStore.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.ui;
@@ -33,9 +35,8 @@ import com.planimod.core.ApplicationSettingManager;
import com.planimod.core.PlanimodManagers;
/**
- * This implementation of of the {@link PreferenceStore} replace the persistence
- * functions to load and save the data using the
- * {@link ApplicationSettingManager}
+ * This implementation of of the {@link PreferenceStore} replace the persistence functions to load and save the data
+ * using the {@link ApplicationSettingManager}
*
* @author Patrik Dufresne
*/
@@ -64,8 +65,10 @@ public class ApplicationSettingPreferenceStore extends EventManager implements I
/**
* Create a new preference store from the managers.
*
- * @param managers the managers.
- * @throws ManagerException in case of error querying the database.
+ * @param managers
+ * the managers.
+ * @throws ManagerException
+ * in case of error querying the database.
*/
public ApplicationSettingPreferenceStore(PlanimodManagers managers) throws ManagerException {
if (managers == null) {
@@ -126,8 +129,7 @@ public class ApplicationSettingPreferenceStore extends EventManager implements I
}
/**
- * Get the value for the given name either from the local cache or from the
- * manager.
+ * Get the value for the given name either from the local cache or from the manager.
*
* @param name
* @return
@@ -293,8 +295,8 @@ public class ApplicationSettingPreferenceStore extends EventManager implements I
}
/**
- * Sets the value in the property cache and in application setting. This
- * function should generate an event and fire a property change.
+ * Sets the value in the property cache and in application setting. This function should generate an event and fire
+ * a property change.
*
* @param p
* @param name
@@ -359,8 +361,7 @@ public class ApplicationSettingPreferenceStore extends EventManager implements I
}
/**
- * This implementation sets the setting to null. The application manager
- * should handle the default value.
+ * This implementation sets the setting to null. The application manager should handle the default value.
*/
@Override
public void setToDefault(String name) {
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/DatabaseSelectorDialog.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/DatabaseSelectorDialog.java
index 04947e81ee4e8e1ff950a8c007ba7e41dc4a2ffc..2dba8871293268c62cef74a391ff8cf532ce99d2 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/DatabaseSelectorDialog.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/DatabaseSelectorDialog.java
@@ -1,14 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.ui;
@@ -75,8 +80,11 @@ public class DatabaseSelectorDialog extends TitleAreaDialog {
private static Image getTitleImage() {
Image image = JFaceResources.getImage(TITLE_IMAGE);
if (image == null) {
- OverlayImageDescriptor icon = new OverlayImageDescriptor(JFaceResources.getImageRegistry().getDescriptor(DLG_IMG_TITLE_BANNER), Resources
- .getImageDescriptor(Resources.APP_ICON_48), SWT.LEFT, SWT.CENTER);
+ OverlayImageDescriptor icon = new OverlayImageDescriptor(
+ JFaceResources.getImageRegistry().getDescriptor(DLG_IMG_TITLE_BANNER),
+ Resources.getImageDescriptor(Resources.APP_ICON_48),
+ SWT.LEFT,
+ SWT.CENTER);
JFaceResources.getImageRegistry().put(TITLE_IMAGE, icon);
image = JFaceResources.getImage(TITLE_IMAGE);
}
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/Localized.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/Localized.java
index 1931fc1eb0e60fcb53912b1cfb6f4d7e3aaea88d..afd6ef604fde4773e1f42dcab0b81370c60407e1 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/Localized.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/Localized.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.ui;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/Main.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/Main.java
index 2b827c80252babbab9c6714de6ee405b7de6a746..892f00c1e961fe714d88a842b017d82010cdf221 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/Main.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/Main.java
@@ -1,14 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.ui;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/PlanimodMainWindow.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/PlanimodMainWindow.java
index b63d8fd9a391feee9eb07ec604cafcce3b5430ab..3d1cf35204de380d38b54b003c6c4b97d5dcc136 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/PlanimodMainWindow.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/PlanimodMainWindow.java
@@ -1,14 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.ui;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/PlanimodPolicy.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/PlanimodPolicy.java
index 535cf8dff2e10461370bb1d4cd3e1ef11a843952..8c934831aa3ccffbc7a8274976e5bd6a0a990bbc 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/PlanimodPolicy.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/PlanimodPolicy.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.ui;
@@ -25,8 +27,7 @@ import org.eclipse.jface.util.Policy;
public class PlanimodPolicy {
/**
- * This function should be used when an operation want to display an
- * unexpected runtime error.
+ * This function should be used when an operation want to display an unexpected runtime error.
*
* This implementation use the JFace {@link Policy} class to show the error.
*
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/databinding/BeanComputedValueProperty.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/databinding/BeanComputedValueProperty.java
index dfd316626da1074a27e28b61b2456355704c9146..a707c75bbbcf7daf03d3f362e9292335d0428067 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/databinding/BeanComputedValueProperty.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/databinding/BeanComputedValueProperty.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel
+ * Copyright (C) 2019 Patrik Dufresne Service Logiciel
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * This program 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
+ * Lesser General Public License for more details.
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package com.planimod.ui.databinding;
diff --git a/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/databinding/ComputedObservableTimeRange.java b/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/databinding/ComputedObservableTimeRange.java
index d9e61bbaaa8e7f9fa93a85590a6ea9304e70aafc..9c15b377a45383cd409356a96ab604276c88e858 100644
--- a/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/databinding/ComputedObservableTimeRange.java
+++ b/com.patrikdufresne.planimod/src/main/java/com/planimod/ui/databinding/ComputedObservableTimeRange.java
@@ -1,17 +1,19 @@
/**
- * Copyright(C) 2013 Patrik Dufresne Service Logiciel