--- /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 com.pentila.evalcomp.domain.EObject;
+import com.pentila.evalcomp.domain.User;
+import com.pentila.evalcomp.domain.definition.EvaluationObject;
+
+/**
+ * The Class UserValidationInstance.
+ */
+public class UserValidationInstance extends EObject {
+
+ /** The id. */
+ Long id;
+
+ /** The validation date. */
+ Date validationDate;
+
+ /** The state. */
+ Integer state;
+
+ /** The evaluation object. */
+ EvaluationObject evaluationObject;
+
+ /** The owner. */
+ User owner;
+
+ /** The officer. */
+ User officer;
+
+ /** The scenario inst cert. */
+ ScenarioInstCert scenarioInstCert;
+
+ /** The acquired. */
+ Boolean acquired = false;
+
+ String motivation;
+
+ /** The Constant WAIT. */
+ public static final Integer WAIT = 1;
+
+ /** The Constant DONE. */
+ public static final Integer DONE = 2;
+
+ /** The Constant DELETE. */
+ public static final Integer DELETE = 3;
+
+ /** The Constant INPROGRESS. */
+ public static final Integer INPROGRESS = 4;
+
+ /**
+ * 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 validation date.
+ *
+ * @return the validation date
+ */
+ public Date getValidationDate() {
+ return validationDate;
+ }
+
+ /**
+ * Sets the validation date.
+ *
+ * @param validationDate the new validation date
+ */
+ public void setValidationDate(Date validationDate) {
+ this.validationDate = validationDate;
+ }
+
+ /**
+ * 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;
+ }
+
+ /**
+ * Gets the evaluation object.
+ *
+ * @return the evaluation object
+ */
+ public EvaluationObject getEvaluationObject() {
+ return evaluationObject;
+ }
+
+ /**
+ * Sets the evaluation object.
+ *
+ * @param evaluationObject the new evaluation object
+ */
+ public void setEvaluationObject(EvaluationObject evaluationObject) {
+ this.evaluationObject = evaluationObject;
+ }
+
+ /**
+ * 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 acquired.
+ *
+ * @return the acquired
+ */
+ public Boolean getAcquired() {
+ return acquired;
+ }
+
+ /**
+ * Sets the acquired.
+ *
+ * @param acquired the new acquired
+ */
+ public void setAcquired(Boolean acquired) {
+ this.acquired = acquired;
+ }
+
+ /* (non-Javadoc)
+ * @see java.lang.Object#toString()
+ */
+ @Override
+ public String toString() {
+ return "UserValidationInstance [id=" + id + ", validationDate="
+ + validationDate + ", state=" + state + ", evaluationObject="
+ + evaluationObject + ", owner=" + owner + ", officer="
+ + officer + ", scenarioInstCert=" + scenarioInstCert
+ + ", acquired=" + acquired + "]";
+ }
+
+ public String getMotivation() {
+ return motivation;
+ }
+
+ public void setMotivation(String motivation) {
+ this.motivation = motivation;
+ }
+
+
+
+}