001: /**
002: * $Id: PSFTEPIObject.java,v 1.4 2005/10/19 12:38:56 pg133018 Exp $
003: * Copyright 2004 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.psftportlet.epiportlet;
014:
015: import com.sun.portal.psftportlet.common.StreetAddress;
016:
017: /**
018: * This class defines the object used by PeopleSoft EPI portlet.
019: *
020: * @author Pradeep Gond
021: */
022:
023: public class PSFTEPIObject {
024: private String errorMessage = "";
025: private String employeeLastName = "";
026: private String employeeFirstName = "";
027: private String employeeNameRow = "1";
028: private StreetAddress homeAddress;
029: private StreetAddress mailAddress;
030: //private String homeAddress = "";
031: //private String mailAddress = "";
032: private String phoneNumber = "";
033: private String phoneNumberRow = "1";
034: private String emailID = "";
035: private String emailIDRow = "1";
036: private String maritalStatus = "";
037: private String maritalStatusRow = "1";
038: private String emergencyContact = "";
039: private String contactRelation = "";
040: private StreetAddress contactAddress;
041: //private String contactAddress = "";
042: private String contactPhone = "";
043: private String emergencyContactRow = "1";
044:
045: public PSFTEPIObject() {
046: }
047:
048: public PSFTEPIObject(
049: String employeeLastName,
050: String employeeFirstName,
051: StreetAddress homeAddress,
052: StreetAddress mailAddress,
053: //String homeAddress,
054: //String mailAddress,
055: String phoneNumber, String emailID, String maritalStatus,
056: String emergencyContact, String contactRelation,
057: StreetAddress contactAddress,
058: //String contactAddress,
059: String contactPhone) {
060: setEmployeeLastName(employeeLastName);
061: setEmployeeFirstName(employeeFirstName);
062: setHomeAddress(homeAddress);
063: setMailAddress(mailAddress);
064: setPhoneNumber(phoneNumber);
065: setEmailID(emailID);
066: setMaritalStatus(maritalStatus);
067: setEmergencyContact(emergencyContact);
068: setContactRelation(contactRelation);
069: setContactAddress(contactAddress);
070: setContactPhone(contactPhone);
071: }
072:
073: // public get methods
074:
075: public String getErrorMessage() {
076: return errorMessage;
077: }
078:
079: public String getEmployeeName() {
080: return employeeLastName + " " + employeeFirstName;
081: }
082:
083: public String getEmployeeLastName() {
084: return employeeLastName;
085: }
086:
087: public String getEmployeeFirstName() {
088: return employeeFirstName;
089: }
090:
091: public StreetAddress getHomeAddress() {
092: return homeAddress;
093: }
094:
095: public StreetAddress getMailAddress() {
096: return mailAddress;
097: }
098:
099: public String getPhoneNumber() {
100: return phoneNumber;
101: }
102:
103: public String getEmailID() {
104: return emailID;
105: }
106:
107: public String getMaritalStatus() {
108: return maritalStatus;
109: }
110:
111: public String getEmergencyContact() {
112: return emergencyContact;
113: }
114:
115: public String getContactRelation() {
116: return contactRelation;
117: }
118:
119: public StreetAddress getContactAddress() {
120: return contactAddress;
121: }
122:
123: public String getContactPhone() {
124: return contactPhone;
125: }
126:
127: public String getEmployeeNameRow() {
128: return employeeNameRow;
129: }
130:
131: public String getPhoneNumberRow() {
132: return phoneNumberRow;
133: }
134:
135: public String getEmailIDRow() {
136: return emailIDRow;
137: }
138:
139: public String getMaritalStatusRow() {
140: return maritalStatusRow;
141: }
142:
143: public String getEmergencyContactRow() {
144: return emergencyContactRow;
145: }
146:
147: // set methods
148:
149: void setErrorMessage(String errorMessage) {
150: this .errorMessage = errorMessage;
151: }
152:
153: void setEmployeeLastName(String employeeLastName) {
154: this .employeeLastName = employeeLastName;
155: }
156:
157: void setEmployeeFirstName(String employeeFirstName) {
158: this .employeeFirstName = employeeFirstName;
159: }
160:
161: void setHomeAddress(StreetAddress homeAddress) {
162: this .homeAddress = homeAddress;
163: }
164:
165: /*void setHomeAddress(String homeAddress) {
166: this.homeAddress = homeAddress;
167: }*/
168:
169: void setMailAddress(StreetAddress mailAddress) {
170: this .mailAddress = mailAddress;
171: }
172:
173: /*void setMailAddress(String mailAddress) {
174: this.mailAddress = mailAddress;
175: }*/
176:
177: void setPhoneNumber(String phoneNumber) {
178: this .phoneNumber = phoneNumber;
179: }
180:
181: void setEmailID(String emailID) {
182: this .emailID = emailID;
183: }
184:
185: void setMaritalStatus(String maritalStatus) {
186: this .maritalStatus = maritalStatus;
187: }
188:
189: void setEmergencyContact(String emergencyContact) {
190: this .emergencyContact = emergencyContact;
191: }
192:
193: void setContactRelation(String contactRelation) {
194: this .contactRelation = contactRelation;
195: }
196:
197: void setContactAddress(StreetAddress contactAddress) {
198: this .contactAddress = contactAddress;
199: }
200:
201: /*void setContactAddress (String contactAddress) {
202: this.contactAddress = contactAddress;
203: }*/
204:
205: void setContactPhone(String contactPhone) {
206: this .contactPhone = contactPhone;
207: }
208:
209: void setEmployeeNameRow(String employeeNameRow) {
210: this .employeeNameRow = employeeNameRow;
211: }
212:
213: void setPhoneNumberRow(String phoneNumberRow) {
214: this .phoneNumberRow = phoneNumberRow;
215: }
216:
217: void setEmailIDRow(String emailIDRow) {
218: this .emailIDRow = emailIDRow;
219: }
220:
221: void setMaritalStatusRow(String maritalStatusRow) {
222: this .maritalStatusRow = maritalStatusRow;
223: }
224:
225: void setEmergencyContactRow(String emergencyContactRow) {
226: this.emergencyContactRow = emergencyContactRow;
227: }
228: }
|