com.liferay.portal.kernel.model.ContactSoap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.portal.kernel Show documentation
Show all versions of com.liferay.portal.kernel Show documentation
Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portal.kernel.model;
import aQute.bnd.annotation.ProviderType;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* This class is used by SOAP remote services, specifically {@link com.liferay.portal.service.http.ContactServiceSoap}.
*
* @author Brian Wing Shun Chan
* @see com.liferay.portal.service.http.ContactServiceSoap
* @generated
*/
@ProviderType
public class ContactSoap implements Serializable {
public static ContactSoap toSoapModel(Contact model) {
ContactSoap soapModel = new ContactSoap();
soapModel.setMvccVersion(model.getMvccVersion());
soapModel.setContactId(model.getContactId());
soapModel.setCompanyId(model.getCompanyId());
soapModel.setUserId(model.getUserId());
soapModel.setUserName(model.getUserName());
soapModel.setCreateDate(model.getCreateDate());
soapModel.setModifiedDate(model.getModifiedDate());
soapModel.setClassNameId(model.getClassNameId());
soapModel.setClassPK(model.getClassPK());
soapModel.setAccountId(model.getAccountId());
soapModel.setParentContactId(model.getParentContactId());
soapModel.setEmailAddress(model.getEmailAddress());
soapModel.setFirstName(model.getFirstName());
soapModel.setMiddleName(model.getMiddleName());
soapModel.setLastName(model.getLastName());
soapModel.setPrefixId(model.getPrefixId());
soapModel.setSuffixId(model.getSuffixId());
soapModel.setMale(model.getMale());
soapModel.setBirthday(model.getBirthday());
soapModel.setSmsSn(model.getSmsSn());
soapModel.setFacebookSn(model.getFacebookSn());
soapModel.setJabberSn(model.getJabberSn());
soapModel.setSkypeSn(model.getSkypeSn());
soapModel.setTwitterSn(model.getTwitterSn());
soapModel.setEmployeeStatusId(model.getEmployeeStatusId());
soapModel.setEmployeeNumber(model.getEmployeeNumber());
soapModel.setJobTitle(model.getJobTitle());
soapModel.setJobClass(model.getJobClass());
soapModel.setHoursOfOperation(model.getHoursOfOperation());
return soapModel;
}
public static ContactSoap[] toSoapModels(Contact[] models) {
ContactSoap[] soapModels = new ContactSoap[models.length];
for (int i = 0; i < models.length; i++) {
soapModels[i] = toSoapModel(models[i]);
}
return soapModels;
}
public static ContactSoap[][] toSoapModels(Contact[][] models) {
ContactSoap[][] soapModels = null;
if (models.length > 0) {
soapModels = new ContactSoap[models.length][models[0].length];
}
else {
soapModels = new ContactSoap[0][0];
}
for (int i = 0; i < models.length; i++) {
soapModels[i] = toSoapModels(models[i]);
}
return soapModels;
}
public static ContactSoap[] toSoapModels(List models) {
List soapModels = new ArrayList(models.size());
for (Contact model : models) {
soapModels.add(toSoapModel(model));
}
return soapModels.toArray(new ContactSoap[soapModels.size()]);
}
public ContactSoap() {
}
public long getPrimaryKey() {
return _contactId;
}
public void setPrimaryKey(long pk) {
setContactId(pk);
}
public long getMvccVersion() {
return _mvccVersion;
}
public void setMvccVersion(long mvccVersion) {
_mvccVersion = mvccVersion;
}
public long getContactId() {
return _contactId;
}
public void setContactId(long contactId) {
_contactId = contactId;
}
public long getCompanyId() {
return _companyId;
}
public void setCompanyId(long companyId) {
_companyId = companyId;
}
public long getUserId() {
return _userId;
}
public void setUserId(long userId) {
_userId = userId;
}
public String getUserName() {
return _userName;
}
public void setUserName(String userName) {
_userName = userName;
}
public Date getCreateDate() {
return _createDate;
}
public void setCreateDate(Date createDate) {
_createDate = createDate;
}
public Date getModifiedDate() {
return _modifiedDate;
}
public void setModifiedDate(Date modifiedDate) {
_modifiedDate = modifiedDate;
}
public long getClassNameId() {
return _classNameId;
}
public void setClassNameId(long classNameId) {
_classNameId = classNameId;
}
public long getClassPK() {
return _classPK;
}
public void setClassPK(long classPK) {
_classPK = classPK;
}
public long getAccountId() {
return _accountId;
}
public void setAccountId(long accountId) {
_accountId = accountId;
}
public long getParentContactId() {
return _parentContactId;
}
public void setParentContactId(long parentContactId) {
_parentContactId = parentContactId;
}
public String getEmailAddress() {
return _emailAddress;
}
public void setEmailAddress(String emailAddress) {
_emailAddress = emailAddress;
}
public String getFirstName() {
return _firstName;
}
public void setFirstName(String firstName) {
_firstName = firstName;
}
public String getMiddleName() {
return _middleName;
}
public void setMiddleName(String middleName) {
_middleName = middleName;
}
public String getLastName() {
return _lastName;
}
public void setLastName(String lastName) {
_lastName = lastName;
}
public long getPrefixId() {
return _prefixId;
}
public void setPrefixId(long prefixId) {
_prefixId = prefixId;
}
public long getSuffixId() {
return _suffixId;
}
public void setSuffixId(long suffixId) {
_suffixId = suffixId;
}
public boolean getMale() {
return _male;
}
public boolean isMale() {
return _male;
}
public void setMale(boolean male) {
_male = male;
}
public Date getBirthday() {
return _birthday;
}
public void setBirthday(Date birthday) {
_birthday = birthday;
}
public String getSmsSn() {
return _smsSn;
}
public void setSmsSn(String smsSn) {
_smsSn = smsSn;
}
public String getFacebookSn() {
return _facebookSn;
}
public void setFacebookSn(String facebookSn) {
_facebookSn = facebookSn;
}
public String getJabberSn() {
return _jabberSn;
}
public void setJabberSn(String jabberSn) {
_jabberSn = jabberSn;
}
public String getSkypeSn() {
return _skypeSn;
}
public void setSkypeSn(String skypeSn) {
_skypeSn = skypeSn;
}
public String getTwitterSn() {
return _twitterSn;
}
public void setTwitterSn(String twitterSn) {
_twitterSn = twitterSn;
}
public String getEmployeeStatusId() {
return _employeeStatusId;
}
public void setEmployeeStatusId(String employeeStatusId) {
_employeeStatusId = employeeStatusId;
}
public String getEmployeeNumber() {
return _employeeNumber;
}
public void setEmployeeNumber(String employeeNumber) {
_employeeNumber = employeeNumber;
}
public String getJobTitle() {
return _jobTitle;
}
public void setJobTitle(String jobTitle) {
_jobTitle = jobTitle;
}
public String getJobClass() {
return _jobClass;
}
public void setJobClass(String jobClass) {
_jobClass = jobClass;
}
public String getHoursOfOperation() {
return _hoursOfOperation;
}
public void setHoursOfOperation(String hoursOfOperation) {
_hoursOfOperation = hoursOfOperation;
}
private long _mvccVersion;
private long _contactId;
private long _companyId;
private long _userId;
private String _userName;
private Date _createDate;
private Date _modifiedDate;
private long _classNameId;
private long _classPK;
private long _accountId;
private long _parentContactId;
private String _emailAddress;
private String _firstName;
private String _middleName;
private String _lastName;
private long _prefixId;
private long _suffixId;
private boolean _male;
private Date _birthday;
private String _smsSn;
private String _facebookSn;
private String _jabberSn;
private String _skypeSn;
private String _twitterSn;
private String _employeeStatusId;
private String _employeeNumber;
private String _jobTitle;
private String _jobClass;
private String _hoursOfOperation;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy