--- /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.certification;
+
+import java.util.Date;
+import java.util.Set;
+
+import com.pentila.evalcomp.domain.EObject;
+import com.pentila.evalcomp.domain.Message;
+import com.pentila.evalcomp.domain.User;
+
+/**
+ * The Class UserCertInstance.
+ */
+public class UserCertInstance extends EObject {
+
+ /** The id. */
+ Long id;
+
+ /** The type. */
+ Integer type;
+
+ /** The date. */
+ Date date;
+
+ /** The message. */
+ Message message;
+
+ /** The ressource certs. */
+ Set<RessourceCert> ressourceCerts;
+
+ /** The owner. */
+ User owner;
+
+ /** The officer. */
+ User officer;
+
+ /** The scenario inst cert. */
+ ScenarioInstCert scenarioInstCert;
+
+ /** The state. */
+ Integer state;
+
+ /** The Constant INITIAL. */
+ public static final Integer INITIAL = 0;
+
+ /** The Constant NONE. */
+ public static final Integer NONE = 1;
+
+ /** The Constant WAIT. */
+ public static final Integer WAIT = 2;
+
+ /** The Constant DONE. */
+ public static final Integer DONE = 3;
+
+ /** The Constant ATTESTATION. */
+ public static final Integer ATTESTATION = 0;
+
+ /** The Constant CERTIFICAT. */
+ public static final Integer CERTIFICAT = 1;
+
+ /**
+ * 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 type.
+ *
+ * @return the type
+ */
+ public Integer getType() {
+ return type;
+ }
+
+ /**
+ * Sets the type.
+ *
+ * @param type the new type
+ */
+ public void setType(Integer type) {
+ this.type = type;
+ }
+
+ /**
+ * Gets the date.
+ *
+ * @return the date
+ */
+ public Date getDate() {
+ return date;
+ }
+
+ /**
+ * Sets the date.
+ *
+ * @param date the new date
+ */
+ public void setDate(Date date) {
+ this.date = date;
+ }
+
+ /**
+ * Gets the message.
+ *
+ * @return the message
+ */
+ public Message getMessage() {
+ return message;
+ }
+
+ /**
+ * Sets the message.
+ *
+ * @param message the new message
+ */
+ public void setMessage(Message message) {
+ this.message = message;
+ }
+
+ /**
+ * Gets the ressource certs.
+ *
+ * @return the ressource certs
+ */
+ public Set<RessourceCert> getRessourceCerts() {
+ return ressourceCerts;
+ }
+
+ /**
+ * Sets the ressource certs.
+ *
+ * @param ressourceCerts the new ressource certs
+ */
+ public void setRessourceCerts(Set<RessourceCert> ressourceCerts) {
+ this.ressourceCerts = ressourceCerts;
+ }
+
+ /**
+ * Gets the owner.
+ *
+ * @return the owner
+ */
+ public User getOwner() {
+ return owner;
+ }
+
+ /**
+ * Sets the owner.
+ *
+ * @param owner the new owner
+ */
+ public void setOwner(User owner) {
+ this.owner = owner;
+ }
+
+ /**
+ * Gets the officer.
+ *
+ * @return the officer
+ */
+ public User getOfficer() {
+ return officer;
+ }
+
+ /**
+ * Sets the officer.
+ *
+ * @param officer the new officer
+ */
+ public void setOfficer(User officer) {
+ this.officer = officer;
+ }
+
+ /**
+ * Gets the scenario inst cert.
+ *
+ * @return the scenario inst cert
+ */
+ public ScenarioInstCert getScenarioInstCert() {
+ return scenarioInstCert;
+ }
+
+ /**
+ * Sets the scenario inst cert.
+ *
+ * @param scenarioInstCert the new scenario inst cert
+ */
+ public void setScenarioInstCert(ScenarioInstCert scenarioInstCert) {
+ this.scenarioInstCert = scenarioInstCert;
+ }
+
+ /**
+ * Gets the state.
+ *
+ * @return the state
+ */
+ public Integer getState() {
+ return state;
+ }
+
+ /**
+ * Sets the state.
+ *
+ * @param state the new state
+ */
+ public void setState(Integer state) {
+ this.state = state;
+ }
+
+}