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
033 public class BookmarksEntrySoap implements Serializable {
034 public static BookmarksEntrySoap toSoapModel(BookmarksEntry model) {
035 BookmarksEntrySoap soapModel = new BookmarksEntrySoap();
036
037 soapModel.setUuid(model.getUuid());
038 soapModel.setEntryId(model.getEntryId());
039 soapModel.setGroupId(model.getGroupId());
040 soapModel.setCompanyId(model.getCompanyId());
041 soapModel.setUserId(model.getUserId());
042 soapModel.setCreateDate(model.getCreateDate());
043 soapModel.setModifiedDate(model.getModifiedDate());
044 soapModel.setFolderId(model.getFolderId());
045 soapModel.setName(model.getName());
046 soapModel.setUrl(model.getUrl());
047 soapModel.setComments(model.getComments());
048 soapModel.setVisits(model.getVisits());
049 soapModel.setPriority(model.getPriority());
050
051 return soapModel;
052 }
053
054 public static BookmarksEntrySoap[] toSoapModels(BookmarksEntry[] models) {
055 BookmarksEntrySoap[] soapModels = new BookmarksEntrySoap[models.length];
056
057 for (int i = 0; i < models.length; i++) {
058 soapModels[i] = toSoapModel(models[i]);
059 }
060
061 return soapModels;
062 }
063
064 public static BookmarksEntrySoap[][] toSoapModels(BookmarksEntry[][] models) {
065 BookmarksEntrySoap[][] soapModels = null;
066
067 if (models.length > 0) {
068 soapModels = new BookmarksEntrySoap[models.length][models[0].length];
069 }
070 else {
071 soapModels = new BookmarksEntrySoap[0][0];
072 }
073
074 for (int i = 0; i < models.length; i++) {
075 soapModels[i] = toSoapModels(models[i]);
076 }
077
078 return soapModels;
079 }
080
081 public static BookmarksEntrySoap[] toSoapModels(List<BookmarksEntry> models) {
082 List<BookmarksEntrySoap> soapModels = new ArrayList<BookmarksEntrySoap>(models.size());
083
084 for (BookmarksEntry model : models) {
085 soapModels.add(toSoapModel(model));
086 }
087
088 return soapModels.toArray(new BookmarksEntrySoap[soapModels.size()]);
089 }
090
091 public BookmarksEntrySoap() {
092 }
093
094 public long getPrimaryKey() {
095 return _entryId;
096 }
097
098 public void setPrimaryKey(long pk) {
099 setEntryId(pk);
100 }
101
102 public String getUuid() {
103 return _uuid;
104 }
105
106 public void setUuid(String uuid) {
107 _uuid = uuid;
108 }
109
110 public long getEntryId() {
111 return _entryId;
112 }
113
114 public void setEntryId(long entryId) {
115 _entryId = entryId;
116 }
117
118 public long getGroupId() {
119 return _groupId;
120 }
121
122 public void setGroupId(long groupId) {
123 _groupId = groupId;
124 }
125
126 public long getCompanyId() {
127 return _companyId;
128 }
129
130 public void setCompanyId(long companyId) {
131 _companyId = companyId;
132 }
133
134 public long getUserId() {
135 return _userId;
136 }
137
138 public void setUserId(long userId) {
139 _userId = userId;
140 }
141
142 public Date getCreateDate() {
143 return _createDate;
144 }
145
146 public void setCreateDate(Date createDate) {
147 _createDate = createDate;
148 }
149
150 public Date getModifiedDate() {
151 return _modifiedDate;
152 }
153
154 public void setModifiedDate(Date modifiedDate) {
155 _modifiedDate = modifiedDate;
156 }
157
158 public long getFolderId() {
159 return _folderId;
160 }
161
162 public void setFolderId(long folderId) {
163 _folderId = folderId;
164 }
165
166 public String getName() {
167 return _name;
168 }
169
170 public void setName(String name) {
171 _name = name;
172 }
173
174 public String getUrl() {
175 return _url;
176 }
177
178 public void setUrl(String url) {
179 _url = url;
180 }
181
182 public String getComments() {
183 return _comments;
184 }
185
186 public void setComments(String comments) {
187 _comments = comments;
188 }
189
190 public int getVisits() {
191 return _visits;
192 }
193
194 public void setVisits(int visits) {
195 _visits = visits;
196 }
197
198 public int getPriority() {
199 return _priority;
200 }
201
202 public void setPriority(int priority) {
203 _priority = priority;
204 }
205
206 private String _uuid;
207 private long _entryId;
208 private long _groupId;
209 private long _companyId;
210 private long _userId;
211 private Date _createDate;
212 private Date _modifiedDate;
213 private long _folderId;
214 private String _name;
215 private String _url;
216 private String _comments;
217 private int _visits;
218 private int _priority;
219 }