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.portlet.imagegallery.model;
022:
023: import java.io.Serializable;
024:
025: import java.util.ArrayList;
026: import java.util.Date;
027: import java.util.List;
028:
029: /**
030: * <a href="IGFolderSoap.java.html"><b><i>View Source</i></b></a>
031: *
032: * <p>
033: * ServiceBuilder generated this class. Modifications in this class will be
034: * overwritten the next time is generated.
035: * </p>
036: *
037: * <p>
038: * This class is used by
039: * <code>com.liferay.portlet.imagegallery.service.http.IGFolderServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.imagegallery.service.http.IGFolderServiceSoap
045: *
046: */
047: public class IGFolderSoap implements Serializable {
048: public static IGFolderSoap toSoapModel(IGFolder model) {
049: IGFolderSoap soapModel = new IGFolderSoap();
050:
051: soapModel.setUuid(model.getUuid());
052: soapModel.setFolderId(model.getFolderId());
053: soapModel.setGroupId(model.getGroupId());
054: soapModel.setCompanyId(model.getCompanyId());
055: soapModel.setUserId(model.getUserId());
056: soapModel.setCreateDate(model.getCreateDate());
057: soapModel.setModifiedDate(model.getModifiedDate());
058: soapModel.setParentFolderId(model.getParentFolderId());
059: soapModel.setName(model.getName());
060: soapModel.setDescription(model.getDescription());
061:
062: return soapModel;
063: }
064:
065: public static IGFolderSoap[] toSoapModels(List models) {
066: List soapModels = new ArrayList(models.size());
067:
068: for (int i = 0; i < models.size(); i++) {
069: IGFolder model = (IGFolder) models.get(i);
070:
071: soapModels.add(toSoapModel(model));
072: }
073:
074: return (IGFolderSoap[]) soapModels.toArray(new IGFolderSoap[0]);
075: }
076:
077: public IGFolderSoap() {
078: }
079:
080: public long getPrimaryKey() {
081: return _folderId;
082: }
083:
084: public void setPrimaryKey(long pk) {
085: setFolderId(pk);
086: }
087:
088: public String getUuid() {
089: return _uuid;
090: }
091:
092: public void setUuid(String uuid) {
093: _uuid = uuid;
094: }
095:
096: public long getFolderId() {
097: return _folderId;
098: }
099:
100: public void setFolderId(long folderId) {
101: _folderId = folderId;
102: }
103:
104: public long getGroupId() {
105: return _groupId;
106: }
107:
108: public void setGroupId(long groupId) {
109: _groupId = groupId;
110: }
111:
112: public long getCompanyId() {
113: return _companyId;
114: }
115:
116: public void setCompanyId(long companyId) {
117: _companyId = companyId;
118: }
119:
120: public long getUserId() {
121: return _userId;
122: }
123:
124: public void setUserId(long userId) {
125: _userId = userId;
126: }
127:
128: public Date getCreateDate() {
129: return _createDate;
130: }
131:
132: public void setCreateDate(Date createDate) {
133: _createDate = createDate;
134: }
135:
136: public Date getModifiedDate() {
137: return _modifiedDate;
138: }
139:
140: public void setModifiedDate(Date modifiedDate) {
141: _modifiedDate = modifiedDate;
142: }
143:
144: public long getParentFolderId() {
145: return _parentFolderId;
146: }
147:
148: public void setParentFolderId(long parentFolderId) {
149: _parentFolderId = parentFolderId;
150: }
151:
152: public String getName() {
153: return _name;
154: }
155:
156: public void setName(String name) {
157: _name = name;
158: }
159:
160: public String getDescription() {
161: return _description;
162: }
163:
164: public void setDescription(String description) {
165: _description = description;
166: }
167:
168: private String _uuid;
169: private long _folderId;
170: private long _groupId;
171: private long _companyId;
172: private long _userId;
173: private Date _createDate;
174: private Date _modifiedDate;
175: private long _parentFolderId;
176: private String _name;
177: private String _description;
178: }
|