com.liferay.portal.model.CompanySoap 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.List;
/**
* This class is used by SOAP remote services, specifically {@link com.liferay.portal.service.http.CompanyServiceSoap}.
*
* @author Brian Wing Shun Chan
* @see com.liferay.portal.service.http.CompanyServiceSoap
* @generated
*/
public class CompanySoap implements Serializable {
public static CompanySoap toSoapModel(Company model) {
CompanySoap soapModel = new CompanySoap();
soapModel.setCompanyId(model.getCompanyId());
soapModel.setAccountId(model.getAccountId());
soapModel.setWebId(model.getWebId());
soapModel.setKey(model.getKey());
soapModel.setMx(model.getMx());
soapModel.setHomeURL(model.getHomeURL());
soapModel.setLogoId(model.getLogoId());
soapModel.setSystem(model.getSystem());
soapModel.setMaxUsers(model.getMaxUsers());
soapModel.setActive(model.getActive());
return soapModel;
}
public static CompanySoap[] toSoapModels(Company[] models) {
CompanySoap[] soapModels = new CompanySoap[models.length];
for (int i = 0; i < models.length; i++) {
soapModels[i] = toSoapModel(models[i]);
}
return soapModels;
}
public static CompanySoap[][] toSoapModels(Company[][] models) {
CompanySoap[][] soapModels = null;
if (models.length > 0) {
soapModels = new CompanySoap[models.length][models[0].length];
}
else {
soapModels = new CompanySoap[0][0];
}
for (int i = 0; i < models.length; i++) {
soapModels[i] = toSoapModels(models[i]);
}
return soapModels;
}
public static CompanySoap[] toSoapModels(List models) {
List soapModels = new ArrayList(models.size());
for (Company model : models) {
soapModels.add(toSoapModel(model));
}
return soapModels.toArray(new CompanySoap[soapModels.size()]);
}
public CompanySoap() {
}
public long getPrimaryKey() {
return _companyId;
}
public void setPrimaryKey(long pk) {
setCompanyId(pk);
}
public long getCompanyId() {
return _companyId;
}
public void setCompanyId(long companyId) {
_companyId = companyId;
}
public long getAccountId() {
return _accountId;
}
public void setAccountId(long accountId) {
_accountId = accountId;
}
public String getWebId() {
return _webId;
}
public void setWebId(String webId) {
_webId = webId;
}
public String getKey() {
return _key;
}
public void setKey(String key) {
_key = key;
}
public String getMx() {
return _mx;
}
public void setMx(String mx) {
_mx = mx;
}
public String getHomeURL() {
return _homeURL;
}
public void setHomeURL(String homeURL) {
_homeURL = homeURL;
}
public long getLogoId() {
return _logoId;
}
public void setLogoId(long logoId) {
_logoId = logoId;
}
public boolean getSystem() {
return _system;
}
public boolean isSystem() {
return _system;
}
public void setSystem(boolean system) {
_system = system;
}
public int getMaxUsers() {
return _maxUsers;
}
public void setMaxUsers(int maxUsers) {
_maxUsers = maxUsers;
}
public boolean getActive() {
return _active;
}
public boolean isActive() {
return _active;
}
public void setActive(boolean active) {
_active = active;
}
private long _companyId;
private long _accountId;
private String _webId;
private String _key;
private String _mx;
private String _homeURL;
private long _logoId;
private boolean _system;
private int _maxUsers;
private boolean _active;
}