001
014
015 package com.liferay.portlet.bookmarks.model;
016
017 import java.io.Serializable;
018
019 import java.util.ArrayList;
020 import java.util.Date;
021 import java.util.List;
022
023
030 public class BookmarksFolderSoap implements Serializable {
031 public static BookmarksFolderSoap toSoapModel(BookmarksFolder model) {
032 BookmarksFolderSoap soapModel = new BookmarksFolderSoap();
033
034 soapModel.setUuid(model.getUuid());
035 soapModel.setFolderId(model.getFolderId());
036 soapModel.setGroupId(model.getGroupId());
037 soapModel.setCompanyId(model.getCompanyId());
038 soapModel.setUserId(model.getUserId());
039 soapModel.setUserName(model.getUserName());
040 soapModel.setCreateDate(model.getCreateDate());
041 soapModel.setModifiedDate(model.getModifiedDate());
042 soapModel.setResourceBlockId(model.getResourceBlockId());
043 soapModel.setParentFolderId(model.getParentFolderId());
044 soapModel.setName(model.getName());
045 soapModel.setDescription(model.getDescription());
046
047 return soapModel;
048 }
049
050 public static BookmarksFolderSoap[] toSoapModels(BookmarksFolder[] models) {
051 BookmarksFolderSoap[] soapModels = new BookmarksFolderSoap[models.length];
052
053 for (int i = 0; i < models.length; i++) {
054 soapModels[i] = toSoapModel(models[i]);
055 }
056
057 return soapModels;
058 }
059
060 public static BookmarksFolderSoap[][] toSoapModels(
061 BookmarksFolder[][] models) {
062 BookmarksFolderSoap[][] soapModels = null;
063
064 if (models.length > 0) {
065 soapModels = new BookmarksFolderSoap[models.length][models[0].length];
066 }
067 else {
068 soapModels = new BookmarksFolderSoap[0][0];
069 }
070
071 for (int i = 0; i < models.length; i++) {
072 soapModels[i] = toSoapModels(models[i]);
073 }
074
075 return soapModels;
076 }
077
078 public static BookmarksFolderSoap[] toSoapModels(
079 List<BookmarksFolder> models) {
080 List<BookmarksFolderSoap> soapModels = new ArrayList<BookmarksFolderSoap>(models.size());
081
082 for (BookmarksFolder model : models) {
083 soapModels.add(toSoapModel(model));
084 }
085
086 return soapModels.toArray(new BookmarksFolderSoap[soapModels.size()]);
087 }
088
089 public BookmarksFolderSoap() {
090 }
091
092 public long getPrimaryKey() {
093 return _folderId;
094 }
095
096 public void setPrimaryKey(long pk) {
097 setFolderId(pk);
098 }
099
100 public String getUuid() {
101 return _uuid;
102 }
103
104 public void setUuid(String uuid) {
105 _uuid = uuid;
106 }
107
108 public long getFolderId() {
109 return _folderId;
110 }
111
112 public void setFolderId(long folderId) {
113 _folderId = folderId;
114 }
115
116 public long getGroupId() {
117 return _groupId;
118 }
119
120 public void setGroupId(long groupId) {
121 _groupId = groupId;
122 }
123
124 public long getCompanyId() {
125 return _companyId;
126 }
127
128 public void setCompanyId(long companyId) {
129 _companyId = companyId;
130 }
131
132 public long getUserId() {
133 return _userId;
134 }
135
136 public void setUserId(long userId) {
137 _userId = userId;
138 }
139
140 public String getUserName() {
141 return _userName;
142 }
143
144 public void setUserName(String userName) {
145 _userName = userName;
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 getResourceBlockId() {
165 return _resourceBlockId;
166 }
167
168 public void setResourceBlockId(long resourceBlockId) {
169 _resourceBlockId = resourceBlockId;
170 }
171
172 public long getParentFolderId() {
173 return _parentFolderId;
174 }
175
176 public void setParentFolderId(long parentFolderId) {
177 _parentFolderId = parentFolderId;
178 }
179
180 public String getName() {
181 return _name;
182 }
183
184 public void setName(String name) {
185 _name = name;
186 }
187
188 public String getDescription() {
189 return _description;
190 }
191
192 public void setDescription(String description) {
193 _description = description;
194 }
195
196 private String _uuid;
197 private long _folderId;
198 private long _groupId;
199 private long _companyId;
200 private long _userId;
201 private String _userName;
202 private Date _createDate;
203 private Date _modifiedDate;
204 private long _resourceBlockId;
205 private long _parentFolderId;
206 private String _name;
207 private String _description;
208 }