001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.model;
022:
023: import java.io.Serializable;
024:
025: import java.util.ArrayList;
026: import java.util.List;
027:
028: /**
029: * <a href="OrganizationSoap.java.html"><b><i>View Source</i></b></a>
030: *
031: * <p>
032: * ServiceBuilder generated this class. Modifications in this class will be
033: * overwritten the next time is generated.
034: * </p>
035: *
036: * <p>
037: * This class is used by
038: * <code>com.liferay.portal.service.http.OrganizationServiceSoap</code>.
039: * </p>
040: *
041: * @author Brian Wing Shun Chan
042: *
043: * @see com.liferay.portal.service.http.OrganizationServiceSoap
044: *
045: */
046: public class OrganizationSoap implements Serializable {
047: public static OrganizationSoap toSoapModel(Organization model) {
048: OrganizationSoap soapModel = new OrganizationSoap();
049:
050: soapModel.setOrganizationId(model.getOrganizationId());
051: soapModel.setCompanyId(model.getCompanyId());
052: soapModel.setParentOrganizationId(model
053: .getParentOrganizationId());
054: soapModel.setName(model.getName());
055: soapModel.setLocation(model.getLocation());
056: soapModel.setRecursable(model.getRecursable());
057: soapModel.setRegionId(model.getRegionId());
058: soapModel.setCountryId(model.getCountryId());
059: soapModel.setStatusId(model.getStatusId());
060: soapModel.setComments(model.getComments());
061:
062: return soapModel;
063: }
064:
065: public static OrganizationSoap[] toSoapModels(List models) {
066: List soapModels = new ArrayList(models.size());
067:
068: for (int i = 0; i < models.size(); i++) {
069: Organization model = (Organization) models.get(i);
070:
071: soapModels.add(toSoapModel(model));
072: }
073:
074: return (OrganizationSoap[]) soapModels
075: .toArray(new OrganizationSoap[0]);
076: }
077:
078: public OrganizationSoap() {
079: }
080:
081: public long getPrimaryKey() {
082: return _organizationId;
083: }
084:
085: public void setPrimaryKey(long pk) {
086: setOrganizationId(pk);
087: }
088:
089: public long getOrganizationId() {
090: return _organizationId;
091: }
092:
093: public void setOrganizationId(long organizationId) {
094: _organizationId = organizationId;
095: }
096:
097: public long getCompanyId() {
098: return _companyId;
099: }
100:
101: public void setCompanyId(long companyId) {
102: _companyId = companyId;
103: }
104:
105: public long getParentOrganizationId() {
106: return _parentOrganizationId;
107: }
108:
109: public void setParentOrganizationId(long parentOrganizationId) {
110: _parentOrganizationId = parentOrganizationId;
111: }
112:
113: public String getName() {
114: return _name;
115: }
116:
117: public void setName(String name) {
118: _name = name;
119: }
120:
121: public boolean getLocation() {
122: return _location;
123: }
124:
125: public boolean isLocation() {
126: return _location;
127: }
128:
129: public void setLocation(boolean location) {
130: _location = location;
131: }
132:
133: public boolean getRecursable() {
134: return _recursable;
135: }
136:
137: public boolean isRecursable() {
138: return _recursable;
139: }
140:
141: public void setRecursable(boolean recursable) {
142: _recursable = recursable;
143: }
144:
145: public long getRegionId() {
146: return _regionId;
147: }
148:
149: public void setRegionId(long regionId) {
150: _regionId = regionId;
151: }
152:
153: public long getCountryId() {
154: return _countryId;
155: }
156:
157: public void setCountryId(long countryId) {
158: _countryId = countryId;
159: }
160:
161: public int getStatusId() {
162: return _statusId;
163: }
164:
165: public void setStatusId(int statusId) {
166: _statusId = statusId;
167: }
168:
169: public String getComments() {
170: return _comments;
171: }
172:
173: public void setComments(String comments) {
174: _comments = comments;
175: }
176:
177: private long _organizationId;
178: private long _companyId;
179: private long _parentOrganizationId;
180: private String _name;
181: private boolean _location;
182: private boolean _recursable;
183: private long _regionId;
184: private long _countryId;
185: private int _statusId;
186: private String _comments;
187: }
|