1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.bookmarks.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.Date;
21  import java.util.List;
22  
23  /**
24   * <a href="BookmarksFolderSoap.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This class is used by
33   * {@link com.liferay.portlet.bookmarks.service.http.BookmarksFolderServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portlet.bookmarks.service.http.BookmarksFolderServiceSoap
38   * @generated
39   */
40  public class BookmarksFolderSoap implements Serializable {
41      public static BookmarksFolderSoap toSoapModel(BookmarksFolder model) {
42          BookmarksFolderSoap soapModel = new BookmarksFolderSoap();
43  
44          soapModel.setUuid(model.getUuid());
45          soapModel.setFolderId(model.getFolderId());
46          soapModel.setGroupId(model.getGroupId());
47          soapModel.setCompanyId(model.getCompanyId());
48          soapModel.setUserId(model.getUserId());
49          soapModel.setCreateDate(model.getCreateDate());
50          soapModel.setModifiedDate(model.getModifiedDate());
51          soapModel.setParentFolderId(model.getParentFolderId());
52          soapModel.setName(model.getName());
53          soapModel.setDescription(model.getDescription());
54  
55          return soapModel;
56      }
57  
58      public static BookmarksFolderSoap[] toSoapModels(BookmarksFolder[] models) {
59          BookmarksFolderSoap[] soapModels = new BookmarksFolderSoap[models.length];
60  
61          for (int i = 0; i < models.length; i++) {
62              soapModels[i] = toSoapModel(models[i]);
63          }
64  
65          return soapModels;
66      }
67  
68      public static BookmarksFolderSoap[][] toSoapModels(
69          BookmarksFolder[][] models) {
70          BookmarksFolderSoap[][] soapModels = null;
71  
72          if (models.length > 0) {
73              soapModels = new BookmarksFolderSoap[models.length][models[0].length];
74          }
75          else {
76              soapModels = new BookmarksFolderSoap[0][0];
77          }
78  
79          for (int i = 0; i < models.length; i++) {
80              soapModels[i] = toSoapModels(models[i]);
81          }
82  
83          return soapModels;
84      }
85  
86      public static BookmarksFolderSoap[] toSoapModels(
87          List<BookmarksFolder> models) {
88          List<BookmarksFolderSoap> soapModels = new ArrayList<BookmarksFolderSoap>(models.size());
89  
90          for (BookmarksFolder model : models) {
91              soapModels.add(toSoapModel(model));
92          }
93  
94          return soapModels.toArray(new BookmarksFolderSoap[soapModels.size()]);
95      }
96  
97      public BookmarksFolderSoap() {
98      }
99  
100     public long getPrimaryKey() {
101         return _folderId;
102     }
103 
104     public void setPrimaryKey(long pk) {
105         setFolderId(pk);
106     }
107 
108     public String getUuid() {
109         return _uuid;
110     }
111 
112     public void setUuid(String uuid) {
113         _uuid = uuid;
114     }
115 
116     public long getFolderId() {
117         return _folderId;
118     }
119 
120     public void setFolderId(long folderId) {
121         _folderId = folderId;
122     }
123 
124     public long getGroupId() {
125         return _groupId;
126     }
127 
128     public void setGroupId(long groupId) {
129         _groupId = groupId;
130     }
131 
132     public long getCompanyId() {
133         return _companyId;
134     }
135 
136     public void setCompanyId(long companyId) {
137         _companyId = companyId;
138     }
139 
140     public long getUserId() {
141         return _userId;
142     }
143 
144     public void setUserId(long userId) {
145         _userId = userId;
146     }
147 
148     public Date getCreateDate() {
149         return _createDate;
150     }
151 
152     public void setCreateDate(Date createDate) {
153         _createDate = createDate;
154     }
155 
156     public Date getModifiedDate() {
157         return _modifiedDate;
158     }
159 
160     public void setModifiedDate(Date modifiedDate) {
161         _modifiedDate = modifiedDate;
162     }
163 
164     public long getParentFolderId() {
165         return _parentFolderId;
166     }
167 
168     public void setParentFolderId(long parentFolderId) {
169         _parentFolderId = parentFolderId;
170     }
171 
172     public String getName() {
173         return _name;
174     }
175 
176     public void setName(String name) {
177         _name = name;
178     }
179 
180     public String getDescription() {
181         return _description;
182     }
183 
184     public void setDescription(String description) {
185         _description = description;
186     }
187 
188     private String _uuid;
189     private long _folderId;
190     private long _groupId;
191     private long _companyId;
192     private long _userId;
193     private Date _createDate;
194     private Date _modifiedDate;
195     private long _parentFolderId;
196     private String _name;
197     private String _description;
198 }