001: /**
002: * $Id: Employee.java,v 1.3 2005/09/05 07:42:41 nk137934 Exp $
003: * Copyright 2005 Sun Microsystems, Inc. All
004: * rights reserved. Use of this product is subject
005: * to license terms. Federal Acquisitions:
006: * Commercial Software -- Government Users
007: * Subject to Standard License Terms and
008: * Conditions.
009: *
010: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
011: * are trademarks or registered trademarks of Sun Microsystems,
012: * Inc. in the United States and other countries.
013: */package com.sun.portal.sapportlet.employee;
014:
015: import com.sun.portal.sapportlet.stubs.employee.*;
016: import com.sun.portal.sapportlet.SAPPortletConstants;
017:
018: /**
019: * This class is representation of the Employee business
020: * object in the SAP system
021: *
022: * @author nk137934
023: */
024: public class Employee {
025:
026: private String employeeNumber;
027: private String firstName;
028: private String lastName;
029: private String birthDate;
030: private String startingDate;
031: private String terminationDate;
032: private String gender;
033: private String nationality;
034: private String homeAddress;
035: private String city;
036: private String zipcode;
037: private String country;
038: private String homephone;
039: private String photoURL;
040:
041: public Employee(BAPIP0002L input) {
042:
043: this .employeeNumber = input.getEMPLOYEENO();
044: this .firstName = input.getFIRSTNAME();
045: this .lastName = input.getLASTNAME();
046: this .birthDate = input.getDATEOFBIRTH();
047: this .startingDate = input.getVALIDBEGIN();
048: this .terminationDate = input.getVALIDEND();
049: this .gender = input.getGENDER();
050: this .nationality = input.getNATIONALITY();
051: this .homeAddress = input.getFORMOFADDRESS();
052:
053: }
054:
055: public String getEmployeeNumber() {
056: return employeeNumber;
057: }
058:
059: public void setEmployeeNumber(String employeeNumber) {
060: this .employeeNumber = employeeNumber;
061: }
062:
063: public String getFirstName() {
064: return firstName;
065: }
066:
067: public void setFirstName(String firstName) {
068: this .firstName = firstName;
069: }
070:
071: public String getLastName() {
072: return lastName;
073: }
074:
075: public void setLastName(String lastName) {
076: this .lastName = lastName;
077: }
078:
079: public String getBirthDate() {
080: return birthDate;
081: }
082:
083: public void setBirthDate(String birthDate) {
084: this .birthDate = birthDate;
085: }
086:
087: public String getStartingDate() {
088: return startingDate;
089: }
090:
091: public void setStartingDate(String startingDate) {
092: this .startingDate = startingDate;
093: }
094:
095: public String getTerminationDate() {
096: return terminationDate;
097: }
098:
099: public void setTerminationDate(String terminationDate) {
100: if (terminationDate
101: .equals(SAPPortletConstants.TIME_INTERVAL_HIGH)) {
102: this .terminationDate = "N/A";
103: } else {
104: this .terminationDate = terminationDate;
105: }
106: }
107:
108: public String getGender() {
109: return gender;
110: }
111:
112: public void setGender(String gender) {
113: this .gender = gender;
114: }
115:
116: public String getNationality() {
117: return nationality;
118: }
119:
120: public void setNationality(String nationality) {
121: this .nationality = nationality;
122: }
123:
124: public String getHomeAddress() {
125: return homeAddress;
126: }
127:
128: public void setHomeAddress(String homeAddress) {
129: this .homeAddress = homeAddress;
130: }
131:
132: public String getCity() {
133: return city;
134: }
135:
136: public void setCity(String city) {
137: this .city = city;
138: }
139:
140: public String getZipcode() {
141: return zipcode;
142: }
143:
144: public void setZipcode(String zipcode) {
145: this .zipcode = zipcode;
146: }
147:
148: public String getCountry() {
149: return country;
150: }
151:
152: public void setCountry(String country) {
153: this .country = country;
154: }
155:
156: public String getHomephone() {
157: return homephone;
158: }
159:
160: public void setHomephone(String homephone) {
161: this .homephone = homephone;
162: }
163:
164: public String getPhotoURL() {
165: return photoURL;
166: }
167:
168: public void setPhotoURL(String photoURL) {
169: this.photoURL = photoURL;
170: }
171:
172: }
|