--- /dev/null
+/*****************************************************************************
+ * Copyright Igor Barma, Eric Brun, Alexandre Desoubeaux, Christian Martel,
+ * (2 décembre 2008)
+ *
+ * Ce logiciel est un programme informatique servant à l'évaluation des
+ * compétences.
+ *
+ * Ce logiciel est régi par la licence CeCILL soumise au droit français et
+ * respectant les principes de diffusion des logiciels libres. Vous pouvez
+ * utiliser, modifier et/ou redistribuer ce programme sous les conditions
+ * de la licence CeCILL telle que diffusée par le CEA, le CNRS et l'INRIA
+ * sur le site "http://www.cecill.info".
+ *
+ * En contrepartie de l'accessibilité au code source et des droits de copie,
+ * de modification et de redistribution accordés par cette licence, il n'est
+ * offert aux utilisateurs qu'une garantie limitée. Pour les mêmes raisons,
+ * seule une responsabilité restreinte pèse sur l'auteur du programme, le
+ * titulaire des droits patrimoniaux et les concédants successifs.
+ *
+ * A cet égard l'attention de l'utilisateur est attirée sur les risques
+ * associés au chargement, à l'utilisation, à la modification et/ou au
+ * développement et à la reproduction du logiciel par l'utilisateur étant
+ * donné sa spécificité de logiciel libre, qui peut le rendre complexe à
+ * manipuler et qui le réserve donc à des développeurs et des professionnels
+ * avertis possédant des connaissances informatiques approfondies. Les
+ * utilisateurs sont donc invités à charger et tester l'adéquation du
+ * logiciel à leurs besoins dans des conditions permettant d'assurer la
+ * sécurité de leurs systèmes et ou de leurs données et, plus généralement,
+ * à l'utiliser et l'exploiter dans les mêmes conditions de sécurité.
+ *
+ * Le fait que vous puissiez accéder à cet en-tête signifie que vous avez
+ * pris connaissance de la licence CeCILL, et que vous en avez accepté les
+ * termes.
+ *******************************************************************************/
+package com.pentila.evalcomp.domain.transit;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+
+import com.pentila.evalcomp.domain.EObject;
+import com.pentila.evalcomp.domain.User;
+
+/**
+ * The Class Session.
+ */
+public class Session extends EObject {
+
+ /** The id. */
+ Long id;
+
+ /** The name. */
+ String name;
+
+ /** The action name. */
+ String actionName;
+
+ /** The actor name. */
+ String actorName;
+
+ /** The type. */
+ String type;
+
+ /** The eiid. */
+ private Long eiid;
+
+ /** The todos. */
+ List<Todo> todos = new ArrayList<Todo>();
+
+ /** The start date. */
+ Date startDate;
+
+ /** The end date. */
+ Date endDate;
+
+ /** The description. */
+ String description;
+
+ /**
+ * Gets the id.
+ *
+ * @return the id
+ */
+ public Long getId() {
+ return id;
+ }
+
+ /**
+ * Sets the id.
+ *
+ * @param id the new id
+ */
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ /**
+ * Gets the name.
+ *
+ * @return the name
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the name.
+ *
+ * @param name the new name
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ /**
+ * Gets the action name.
+ *
+ * @return the action name
+ */
+ public String getActionName() {
+ return actionName;
+ }
+
+ /**
+ * Sets the action name.
+ *
+ * @param actionName the new action name
+ */
+ public void setActionName(String actionName) {
+ this.actionName = actionName;
+ }
+
+ /**
+ * Gets the actor name.
+ *
+ * @return the actor name
+ */
+ public String getActorName() {
+ return actorName;
+ }
+
+ /**
+ * Sets the actor name.
+ *
+ * @param actorName the new actor name
+ */
+ public void setActorName(String actorName) {
+ this.actorName = actorName;
+ }
+
+ /**
+ * Gets the type.
+ *
+ * @return the type
+ */
+ public String getType() {
+ return type;
+ }
+
+ /**
+ * Sets the type.
+ *
+ * @param type the new type
+ */
+ public void setType(String type) {
+ this.type = type;
+ }
+
+ /**
+ * Gets the eiid.
+ *
+ * @return the eiid
+ */
+ public Long getEiid() {
+ return eiid;
+ }
+
+ /**
+ * Sets the eiid.
+ *
+ * @param eiid the new eiid
+ */
+ public void setEiid(Long eiid) {
+ this.eiid = eiid;
+ }
+
+ /**
+ * Gets the todos.
+ *
+ * @return the todos
+ */
+ public List<Todo> getTodos() {
+ return todos;
+ }
+
+ /**
+ * Sets the todos.
+ *
+ * @param todos the new todos
+ */
+ public void setTodos(List<Todo> todos) {
+ this.todos = todos;
+ }
+
+ /**
+ * Gets the related users.
+ *
+ * @return the related users
+ */
+ public Set<User> getRelatedUsers() {
+
+ Set<User> users = new HashSet<User>();
+
+ for (Todo t : getTodos()){
+ users.addAll(t.getRelatedUsers());
+ }
+
+ return users;
+
+
+ }
+
+ /**
+ * Gets the start date.
+ *
+ * @return the start date
+ */
+ public Date getStartDate() {
+ return startDate;
+ }
+
+ /**
+ * Sets the start date.
+ *
+ * @param startDate the new start date
+ */
+ public void setStartDate(Date startDate) {
+ this.startDate = startDate;
+ }
+
+ /**
+ * Gets the end date.
+ *
+ * @return the end date
+ */
+ public Date getEndDate() {
+ return endDate;
+ }
+
+ /**
+ * Sets the end date.
+ *
+ * @param endDate the new end date
+ */
+ public void setEndDate(Date endDate) {
+ this.endDate = endDate;
+ }
+
+ /**
+ * Gets the description.
+ *
+ * @return the description
+ */
+ public String getDescription() {
+ return description;
+ }
+
+ /**
+ * Sets the description.
+ *
+ * @param description the new description
+ */
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+
+
+
+
+
+
+}