001: /*
002: * Copyright (c) 2004-2006, Jean-François Brazeau. All rights reserved.
003: *
004: * Redistribution and use in source and binary forms, with or without
005: * modification, are permitted provided that the following conditions are met:
006: *
007: * 1. Redistributions of source code must retain the above copyright notice,
008: * this list of conditions and the following disclaimer.
009: *
010: * 2. Redistributions in binary form must reproduce the above copyright
011: * notice, this list of conditions and the following disclaimer in the
012: * documentation and/or other materials provided with the distribution.
013: *
014: * 3. The name of the author may not be used to endorse or promote products
015: * derived from this software without specific prior written permission.
016: *
017: * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
018: * IMPLIEDWARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
019: * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
020: * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
021: * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
022: * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
023: * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
024: * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
025: * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
026: * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
027: */
028: package jfb.tools.activitymgr.core.beans;
029:
030: /**
031: * Collaborateur.
032: */
033: public class Collaborator extends SimpleIdentityBean {
034:
035: /** Index de l'attribut 'login' du collaborateur */
036: public static final int LOGIN_FIELD_IDX = 1;
037:
038: /** Index de l'attribut 'firstName' du collaborateur */
039: public static final int FIRST_NAME_FIELD_IDX = 2;
040:
041: /** Index de l'attribut 'lastName' du collaborateur */
042: public static final int LAST_NAME_FIELD_IDX = 3;
043:
044: /** Index de l'attribut 'isActive' du collaborateur */
045: public static final int IS_ACTIVE_FIELD_IDX = 4;
046:
047: /** Identifiant du collaborateur */
048: private String login;
049:
050: /** Nom */
051: private String firstName;
052:
053: /** Prénom */
054: private String lastName;
055:
056: /** Booléen indiquant si le collaborateur est actif ou non */
057: private boolean isActive = true;
058:
059: /**
060: * @return le prénom du collaborateur.
061: */
062: public String getFirstName() {
063: return firstName;
064: }
065:
066: /**
067: * Définit le prénom du collaborateur.
068: * @param firstName le nouveau prénom.
069: */
070: public void setFirstName(String firstName) {
071: this .firstName = firstName;
072: }
073:
074: /**
075: * @return le nom du collaborateur.
076: */
077: public String getLastName() {
078: return lastName;
079: }
080:
081: /**
082: * Définit le nom du collaborateur.
083: * @param lastName le nouveau nom.
084: */
085: public void setLastName(String lastName) {
086: this .lastName = lastName;
087: }
088:
089: /**
090: * @return l'identifiant du collaborateur.
091: */
092: public String getLogin() {
093: return login;
094: }
095:
096: /**
097: * Définit l'identifiant du collaborateur.
098: * @param login le nouvel identifiant.
099: */
100: public void setLogin(String login) {
101: this .login = login;
102: }
103:
104: /**
105: * Retourne un booléen indiquant si le collaborateur est actif ou non.
106: * @return un booléen indiquant si le collaborateur est actif ou non.
107: */
108: public boolean getIsActive() {
109: return isActive;
110: }
111:
112: /**
113: * Définit si le collaborateur est actif ou non.
114: * @param isActive un booléen indiquant si le collaborateur est actif ou non.
115: */
116: public void setIsActive(boolean isActive) {
117: this.isActive = isActive;
118: }
119: }
|