com.liferay.portal.model.AccountSoap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of portal-service Show documentation
Show all versions of portal-service 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-2013 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.model;
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.AccountServiceSoap}.
*
* @author Brian Wing Shun Chan
* @see com.liferay.portal.service.http.AccountServiceSoap
* @generated
*/
public class AccountSoap implements Serializable {
public static AccountSoap toSoapModel(Account model) {
AccountSoap soapModel = new AccountSoap();
soapModel.setAccountId(model.getAccountId());
soapModel.setCompanyId(model.getCompanyId());
soapModel.setUserId(model.getUserId());
soapModel.setUserName(model.getUserName());
soapModel.setCreateDate(model.getCreateDate());
soapModel.setModifiedDate(model.getModifiedDate());
soapModel.setParentAccountId(model.getParentAccountId());
soapModel.setName(model.getName());
soapModel.setLegalName(model.getLegalName());
soapModel.setLegalId(model.getLegalId());
soapModel.setLegalType(model.getLegalType());
soapModel.setSicCode(model.getSicCode());
soapModel.setTickerSymbol(model.getTickerSymbol());
soapModel.setIndustry(model.getIndustry());
soapModel.setType(model.getType());
soapModel.setSize(model.getSize());
return soapModel;
}
public static AccountSoap[] toSoapModels(Account[] models) {
AccountSoap[] soapModels = new AccountSoap[models.length];
for (int i = 0; i < models.length; i++) {
soapModels[i] = toSoapModel(models[i]);
}
return soapModels;
}
public static AccountSoap[][] toSoapModels(Account[][] models) {
AccountSoap[][] soapModels = null;
if (models.length > 0) {
soapModels = new AccountSoap[models.length][models[0].length];
}
else {
soapModels = new AccountSoap[0][0];
}
for (int i = 0; i < models.length; i++) {
soapModels[i] = toSoapModels(models[i]);
}
return soapModels;
}
public static AccountSoap[] toSoapModels(List models) {
List soapModels = new ArrayList(models.size());
for (Account model : models) {
soapModels.add(toSoapModel(model));
}
return soapModels.toArray(new AccountSoap[soapModels.size()]);
}
public AccountSoap() {
}
public long getPrimaryKey() {
return _accountId;
}
public void setPrimaryKey(long pk) {
setAccountId(pk);
}
public long getAccountId() {
return _accountId;
}
public void setAccountId(long accountId) {
_accountId = accountId;
}
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 getParentAccountId() {
return _parentAccountId;
}
public void setParentAccountId(long parentAccountId) {
_parentAccountId = parentAccountId;
}
public String getName() {
return _name;
}
public void setName(String name) {
_name = name;
}
public String getLegalName() {
return _legalName;
}
public void setLegalName(String legalName) {
_legalName = legalName;
}
public String getLegalId() {
return _legalId;
}
public void setLegalId(String legalId) {
_legalId = legalId;
}
public String getLegalType() {
return _legalType;
}
public void setLegalType(String legalType) {
_legalType = legalType;
}
public String getSicCode() {
return _sicCode;
}
public void setSicCode(String sicCode) {
_sicCode = sicCode;
}
public String getTickerSymbol() {
return _tickerSymbol;
}
public void setTickerSymbol(String tickerSymbol) {
_tickerSymbol = tickerSymbol;
}
public String getIndustry() {
return _industry;
}
public void setIndustry(String industry) {
_industry = industry;
}
public String getType() {
return _type;
}
public void setType(String type) {
_type = type;
}
public String getSize() {
return _size;
}
public void setSize(String size) {
_size = size;
}
private long _accountId;
private long _companyId;
private long _userId;
private String _userName;
private Date _createDate;
private Date _modifiedDate;
private long _parentAccountId;
private String _name;
private String _legalName;
private String _legalId;
private String _legalType;
private String _sicCode;
private String _tickerSymbol;
private String _industry;
private String _type;
private String _size;
}