PageRenderTime 45ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/modules/apps/web-experience/journal/journal-api/src/main/java/com/liferay/journal/model/JournalArticleSoap.java

http://github.com/liferay/liferay-portal
Java | 427 lines | 318 code | 89 blank | 20 comment | 5 complexity | f43516fc393874352fc0fd47ff2b971d MD5 | raw file
Possible License(s): LGPL-2.0
  1. /**
  2. * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
  3. *
  4. * This library is free software; you can redistribute it and/or modify it under
  5. * the terms of the GNU Lesser General Public License as published by the Free
  6. * Software Foundation; either version 2.1 of the License, or (at your option)
  7. * any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  11. * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
  12. * details.
  13. */
  14. package com.liferay.journal.model;
  15. import aQute.bnd.annotation.ProviderType;
  16. import java.io.Serializable;
  17. import java.util.ArrayList;
  18. import java.util.Date;
  19. import java.util.List;
  20. /**
  21. * This class is used by SOAP remote services, specifically {@link com.liferay.journal.service.http.JournalArticleServiceSoap}.
  22. *
  23. * @author Brian Wing Shun Chan
  24. * @see com.liferay.journal.service.http.JournalArticleServiceSoap
  25. * @generated
  26. */
  27. @ProviderType
  28. public class JournalArticleSoap implements Serializable {
  29. public static JournalArticleSoap toSoapModel(JournalArticle model) {
  30. JournalArticleSoap soapModel = new JournalArticleSoap();
  31. soapModel.setUuid(model.getUuid());
  32. soapModel.setId(model.getId());
  33. soapModel.setResourcePrimKey(model.getResourcePrimKey());
  34. soapModel.setGroupId(model.getGroupId());
  35. soapModel.setCompanyId(model.getCompanyId());
  36. soapModel.setUserId(model.getUserId());
  37. soapModel.setUserName(model.getUserName());
  38. soapModel.setCreateDate(model.getCreateDate());
  39. soapModel.setModifiedDate(model.getModifiedDate());
  40. soapModel.setFolderId(model.getFolderId());
  41. soapModel.setClassNameId(model.getClassNameId());
  42. soapModel.setClassPK(model.getClassPK());
  43. soapModel.setTreePath(model.getTreePath());
  44. soapModel.setArticleId(model.getArticleId());
  45. soapModel.setVersion(model.getVersion());
  46. soapModel.setUrlTitle(model.getUrlTitle());
  47. soapModel.setContent(model.getContent());
  48. soapModel.setDDMStructureKey(model.getDDMStructureKey());
  49. soapModel.setDDMTemplateKey(model.getDDMTemplateKey());
  50. soapModel.setDefaultLanguageId(model.getDefaultLanguageId());
  51. soapModel.setLayoutUuid(model.getLayoutUuid());
  52. soapModel.setDisplayDate(model.getDisplayDate());
  53. soapModel.setExpirationDate(model.getExpirationDate());
  54. soapModel.setReviewDate(model.getReviewDate());
  55. soapModel.setIndexable(model.getIndexable());
  56. soapModel.setSmallImage(model.getSmallImage());
  57. soapModel.setSmallImageId(model.getSmallImageId());
  58. soapModel.setSmallImageURL(model.getSmallImageURL());
  59. soapModel.setLastPublishDate(model.getLastPublishDate());
  60. soapModel.setStatus(model.getStatus());
  61. soapModel.setStatusByUserId(model.getStatusByUserId());
  62. soapModel.setStatusByUserName(model.getStatusByUserName());
  63. soapModel.setStatusDate(model.getStatusDate());
  64. return soapModel;
  65. }
  66. public static JournalArticleSoap[] toSoapModels(JournalArticle[] models) {
  67. JournalArticleSoap[] soapModels = new JournalArticleSoap[models.length];
  68. for (int i = 0; i < models.length; i++) {
  69. soapModels[i] = toSoapModel(models[i]);
  70. }
  71. return soapModels;
  72. }
  73. public static JournalArticleSoap[][] toSoapModels(JournalArticle[][] models) {
  74. JournalArticleSoap[][] soapModels = null;
  75. if (models.length > 0) {
  76. soapModels = new JournalArticleSoap[models.length][models[0].length];
  77. }
  78. else {
  79. soapModels = new JournalArticleSoap[0][0];
  80. }
  81. for (int i = 0; i < models.length; i++) {
  82. soapModels[i] = toSoapModels(models[i]);
  83. }
  84. return soapModels;
  85. }
  86. public static JournalArticleSoap[] toSoapModels(List<JournalArticle> models) {
  87. List<JournalArticleSoap> soapModels = new ArrayList<JournalArticleSoap>(models.size());
  88. for (JournalArticle model : models) {
  89. soapModels.add(toSoapModel(model));
  90. }
  91. return soapModels.toArray(new JournalArticleSoap[soapModels.size()]);
  92. }
  93. public JournalArticleSoap() {
  94. }
  95. public long getPrimaryKey() {
  96. return _id;
  97. }
  98. public void setPrimaryKey(long pk) {
  99. setId(pk);
  100. }
  101. public String getUuid() {
  102. return _uuid;
  103. }
  104. public void setUuid(String uuid) {
  105. _uuid = uuid;
  106. }
  107. public long getId() {
  108. return _id;
  109. }
  110. public void setId(long id) {
  111. _id = id;
  112. }
  113. public long getResourcePrimKey() {
  114. return _resourcePrimKey;
  115. }
  116. public void setResourcePrimKey(long resourcePrimKey) {
  117. _resourcePrimKey = resourcePrimKey;
  118. }
  119. public long getGroupId() {
  120. return _groupId;
  121. }
  122. public void setGroupId(long groupId) {
  123. _groupId = groupId;
  124. }
  125. public long getCompanyId() {
  126. return _companyId;
  127. }
  128. public void setCompanyId(long companyId) {
  129. _companyId = companyId;
  130. }
  131. public long getUserId() {
  132. return _userId;
  133. }
  134. public void setUserId(long userId) {
  135. _userId = userId;
  136. }
  137. public String getUserName() {
  138. return _userName;
  139. }
  140. public void setUserName(String userName) {
  141. _userName = userName;
  142. }
  143. public Date getCreateDate() {
  144. return _createDate;
  145. }
  146. public void setCreateDate(Date createDate) {
  147. _createDate = createDate;
  148. }
  149. public Date getModifiedDate() {
  150. return _modifiedDate;
  151. }
  152. public void setModifiedDate(Date modifiedDate) {
  153. _modifiedDate = modifiedDate;
  154. }
  155. public long getFolderId() {
  156. return _folderId;
  157. }
  158. public void setFolderId(long folderId) {
  159. _folderId = folderId;
  160. }
  161. public long getClassNameId() {
  162. return _classNameId;
  163. }
  164. public void setClassNameId(long classNameId) {
  165. _classNameId = classNameId;
  166. }
  167. public long getClassPK() {
  168. return _classPK;
  169. }
  170. public void setClassPK(long classPK) {
  171. _classPK = classPK;
  172. }
  173. public String getTreePath() {
  174. return _treePath;
  175. }
  176. public void setTreePath(String treePath) {
  177. _treePath = treePath;
  178. }
  179. public String getArticleId() {
  180. return _articleId;
  181. }
  182. public void setArticleId(String articleId) {
  183. _articleId = articleId;
  184. }
  185. public double getVersion() {
  186. return _version;
  187. }
  188. public void setVersion(double version) {
  189. _version = version;
  190. }
  191. public String getUrlTitle() {
  192. return _urlTitle;
  193. }
  194. public void setUrlTitle(String urlTitle) {
  195. _urlTitle = urlTitle;
  196. }
  197. public String getContent() {
  198. return _content;
  199. }
  200. public void setContent(String content) {
  201. _content = content;
  202. }
  203. public String getDDMStructureKey() {
  204. return _DDMStructureKey;
  205. }
  206. public void setDDMStructureKey(String DDMStructureKey) {
  207. _DDMStructureKey = DDMStructureKey;
  208. }
  209. public String getDDMTemplateKey() {
  210. return _DDMTemplateKey;
  211. }
  212. public void setDDMTemplateKey(String DDMTemplateKey) {
  213. _DDMTemplateKey = DDMTemplateKey;
  214. }
  215. public String getDefaultLanguageId() {
  216. return _defaultLanguageId;
  217. }
  218. public void setDefaultLanguageId(String defaultLanguageId) {
  219. _defaultLanguageId = defaultLanguageId;
  220. }
  221. public String getLayoutUuid() {
  222. return _layoutUuid;
  223. }
  224. public void setLayoutUuid(String layoutUuid) {
  225. _layoutUuid = layoutUuid;
  226. }
  227. public Date getDisplayDate() {
  228. return _displayDate;
  229. }
  230. public void setDisplayDate(Date displayDate) {
  231. _displayDate = displayDate;
  232. }
  233. public Date getExpirationDate() {
  234. return _expirationDate;
  235. }
  236. public void setExpirationDate(Date expirationDate) {
  237. _expirationDate = expirationDate;
  238. }
  239. public Date getReviewDate() {
  240. return _reviewDate;
  241. }
  242. public void setReviewDate(Date reviewDate) {
  243. _reviewDate = reviewDate;
  244. }
  245. public boolean getIndexable() {
  246. return _indexable;
  247. }
  248. public boolean isIndexable() {
  249. return _indexable;
  250. }
  251. public void setIndexable(boolean indexable) {
  252. _indexable = indexable;
  253. }
  254. public boolean getSmallImage() {
  255. return _smallImage;
  256. }
  257. public boolean isSmallImage() {
  258. return _smallImage;
  259. }
  260. public void setSmallImage(boolean smallImage) {
  261. _smallImage = smallImage;
  262. }
  263. public long getSmallImageId() {
  264. return _smallImageId;
  265. }
  266. public void setSmallImageId(long smallImageId) {
  267. _smallImageId = smallImageId;
  268. }
  269. public String getSmallImageURL() {
  270. return _smallImageURL;
  271. }
  272. public void setSmallImageURL(String smallImageURL) {
  273. _smallImageURL = smallImageURL;
  274. }
  275. public Date getLastPublishDate() {
  276. return _lastPublishDate;
  277. }
  278. public void setLastPublishDate(Date lastPublishDate) {
  279. _lastPublishDate = lastPublishDate;
  280. }
  281. public int getStatus() {
  282. return _status;
  283. }
  284. public void setStatus(int status) {
  285. _status = status;
  286. }
  287. public long getStatusByUserId() {
  288. return _statusByUserId;
  289. }
  290. public void setStatusByUserId(long statusByUserId) {
  291. _statusByUserId = statusByUserId;
  292. }
  293. public String getStatusByUserName() {
  294. return _statusByUserName;
  295. }
  296. public void setStatusByUserName(String statusByUserName) {
  297. _statusByUserName = statusByUserName;
  298. }
  299. public Date getStatusDate() {
  300. return _statusDate;
  301. }
  302. public void setStatusDate(Date statusDate) {
  303. _statusDate = statusDate;
  304. }
  305. private String _uuid;
  306. private long _id;
  307. private long _resourcePrimKey;
  308. private long _groupId;
  309. private long _companyId;
  310. private long _userId;
  311. private String _userName;
  312. private Date _createDate;
  313. private Date _modifiedDate;
  314. private long _folderId;
  315. private long _classNameId;
  316. private long _classPK;
  317. private String _treePath;
  318. private String _articleId;
  319. private double _version;
  320. private String _urlTitle;
  321. private String _content;
  322. private String _DDMStructureKey;
  323. private String _DDMTemplateKey;
  324. private String _defaultLanguageId;
  325. private String _layoutUuid;
  326. private Date _displayDate;
  327. private Date _expirationDate;
  328. private Date _reviewDate;
  329. private boolean _indexable;
  330. private boolean _smallImage;
  331. private long _smallImageId;
  332. private String _smallImageURL;
  333. private Date _lastPublishDate;
  334. private int _status;
  335. private long _statusByUserId;
  336. private String _statusByUserName;
  337. private Date _statusDate;
  338. }