1
22
23 package com.liferay.portlet.blogs.model;
24
25 import java.io.Serializable;
26
27 import java.util.ArrayList;
28 import java.util.Date;
29 import java.util.List;
30
31
49 public class BlogsEntrySoap implements Serializable {
50 public static BlogsEntrySoap toSoapModel(BlogsEntry model) {
51 BlogsEntrySoap soapModel = new BlogsEntrySoap();
52
53 soapModel.setUuid(model.getUuid());
54 soapModel.setEntryId(model.getEntryId());
55 soapModel.setGroupId(model.getGroupId());
56 soapModel.setCompanyId(model.getCompanyId());
57 soapModel.setUserId(model.getUserId());
58 soapModel.setUserName(model.getUserName());
59 soapModel.setCreateDate(model.getCreateDate());
60 soapModel.setModifiedDate(model.getModifiedDate());
61 soapModel.setTitle(model.getTitle());
62 soapModel.setUrlTitle(model.getUrlTitle());
63 soapModel.setContent(model.getContent());
64 soapModel.setDisplayDate(model.getDisplayDate());
65
66 return soapModel;
67 }
68
69 public static BlogsEntrySoap[] toSoapModels(List models) {
70 List soapModels = new ArrayList(models.size());
71
72 for (int i = 0; i < models.size(); i++) {
73 BlogsEntry model = (BlogsEntry)models.get(i);
74
75 soapModels.add(toSoapModel(model));
76 }
77
78 return (BlogsEntrySoap[])soapModels.toArray(new BlogsEntrySoap[0]);
79 }
80
81 public BlogsEntrySoap() {
82 }
83
84 public long getPrimaryKey() {
85 return _entryId;
86 }
87
88 public void setPrimaryKey(long pk) {
89 setEntryId(pk);
90 }
91
92 public String getUuid() {
93 return _uuid;
94 }
95
96 public void setUuid(String uuid) {
97 _uuid = uuid;
98 }
99
100 public long getEntryId() {
101 return _entryId;
102 }
103
104 public void setEntryId(long entryId) {
105 _entryId = entryId;
106 }
107
108 public long getGroupId() {
109 return _groupId;
110 }
111
112 public void setGroupId(long groupId) {
113 _groupId = groupId;
114 }
115
116 public long getCompanyId() {
117 return _companyId;
118 }
119
120 public void setCompanyId(long companyId) {
121 _companyId = companyId;
122 }
123
124 public long getUserId() {
125 return _userId;
126 }
127
128 public void setUserId(long userId) {
129 _userId = userId;
130 }
131
132 public String getUserName() {
133 return _userName;
134 }
135
136 public void setUserName(String userName) {
137 _userName = userName;
138 }
139
140 public Date getCreateDate() {
141 return _createDate;
142 }
143
144 public void setCreateDate(Date createDate) {
145 _createDate = createDate;
146 }
147
148 public Date getModifiedDate() {
149 return _modifiedDate;
150 }
151
152 public void setModifiedDate(Date modifiedDate) {
153 _modifiedDate = modifiedDate;
154 }
155
156 public String getTitle() {
157 return _title;
158 }
159
160 public void setTitle(String title) {
161 _title = title;
162 }
163
164 public String getUrlTitle() {
165 return _urlTitle;
166 }
167
168 public void setUrlTitle(String urlTitle) {
169 _urlTitle = urlTitle;
170 }
171
172 public String getContent() {
173 return _content;
174 }
175
176 public void setContent(String content) {
177 _content = content;
178 }
179
180 public Date getDisplayDate() {
181 return _displayDate;
182 }
183
184 public void setDisplayDate(Date displayDate) {
185 _displayDate = displayDate;
186 }
187
188 private String _uuid;
189 private long _entryId;
190 private long _groupId;
191 private long _companyId;
192 private long _userId;
193 private String _userName;
194 private Date _createDate;
195 private Date _modifiedDate;
196 private String _title;
197 private String _urlTitle;
198 private String _content;
199 private Date _displayDate;
200 }