PageRenderTime 53ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/modules/dxp/apps/portal-reports-engine-console/portal-reports-engine-console-api/src/main/java/com/liferay/portal/reports/engine/console/model/EntryWrapper.java

http://github.com/liferay/liferay-portal
Java | 721 lines | 351 code | 108 blank | 262 comment | 42 complexity | 90ce32de2a7a564cd2fc74121e2e8c49 MD5 | raw file
Possible License(s): LGPL-2.0
  1. /**
  2. * Copyright (c) 2000-present 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. package com.liferay.portal.reports.engine.console.model;
  15. import com.liferay.portal.kernel.model.ModelWrapper;
  16. import com.liferay.portal.kernel.model.wrapper.BaseModelWrapper;
  17. import java.util.Date;
  18. import java.util.HashMap;
  19. import java.util.Map;
  20. /**
  21. * <p>
  22. * This class is a wrapper for {@link Entry}.
  23. * </p>
  24. *
  25. * @author Brian Wing Shun Chan
  26. * @see Entry
  27. * @generated
  28. */
  29. public class EntryWrapper
  30. extends BaseModelWrapper<Entry> implements Entry, ModelWrapper<Entry> {
  31. public EntryWrapper(Entry entry) {
  32. super(entry);
  33. }
  34. @Override
  35. public Map<String, Object> getModelAttributes() {
  36. Map<String, Object> attributes = new HashMap<String, Object>();
  37. attributes.put("entryId", getEntryId());
  38. attributes.put("groupId", getGroupId());
  39. attributes.put("companyId", getCompanyId());
  40. attributes.put("userId", getUserId());
  41. attributes.put("userName", getUserName());
  42. attributes.put("createDate", getCreateDate());
  43. attributes.put("modifiedDate", getModifiedDate());
  44. attributes.put("definitionId", getDefinitionId());
  45. attributes.put("format", getFormat());
  46. attributes.put("scheduleRequest", isScheduleRequest());
  47. attributes.put("startDate", getStartDate());
  48. attributes.put("endDate", getEndDate());
  49. attributes.put("repeating", isRepeating());
  50. attributes.put("recurrence", getRecurrence());
  51. attributes.put("emailNotifications", getEmailNotifications());
  52. attributes.put("emailDelivery", getEmailDelivery());
  53. attributes.put("portletId", getPortletId());
  54. attributes.put("pageURL", getPageURL());
  55. attributes.put("reportParameters", getReportParameters());
  56. attributes.put("errorMessage", getErrorMessage());
  57. attributes.put("status", getStatus());
  58. return attributes;
  59. }
  60. @Override
  61. public void setModelAttributes(Map<String, Object> attributes) {
  62. Long entryId = (Long)attributes.get("entryId");
  63. if (entryId != null) {
  64. setEntryId(entryId);
  65. }
  66. Long groupId = (Long)attributes.get("groupId");
  67. if (groupId != null) {
  68. setGroupId(groupId);
  69. }
  70. Long companyId = (Long)attributes.get("companyId");
  71. if (companyId != null) {
  72. setCompanyId(companyId);
  73. }
  74. Long userId = (Long)attributes.get("userId");
  75. if (userId != null) {
  76. setUserId(userId);
  77. }
  78. String userName = (String)attributes.get("userName");
  79. if (userName != null) {
  80. setUserName(userName);
  81. }
  82. Date createDate = (Date)attributes.get("createDate");
  83. if (createDate != null) {
  84. setCreateDate(createDate);
  85. }
  86. Date modifiedDate = (Date)attributes.get("modifiedDate");
  87. if (modifiedDate != null) {
  88. setModifiedDate(modifiedDate);
  89. }
  90. Long definitionId = (Long)attributes.get("definitionId");
  91. if (definitionId != null) {
  92. setDefinitionId(definitionId);
  93. }
  94. String format = (String)attributes.get("format");
  95. if (format != null) {
  96. setFormat(format);
  97. }
  98. Boolean scheduleRequest = (Boolean)attributes.get("scheduleRequest");
  99. if (scheduleRequest != null) {
  100. setScheduleRequest(scheduleRequest);
  101. }
  102. Date startDate = (Date)attributes.get("startDate");
  103. if (startDate != null) {
  104. setStartDate(startDate);
  105. }
  106. Date endDate = (Date)attributes.get("endDate");
  107. if (endDate != null) {
  108. setEndDate(endDate);
  109. }
  110. Boolean repeating = (Boolean)attributes.get("repeating");
  111. if (repeating != null) {
  112. setRepeating(repeating);
  113. }
  114. String recurrence = (String)attributes.get("recurrence");
  115. if (recurrence != null) {
  116. setRecurrence(recurrence);
  117. }
  118. String emailNotifications = (String)attributes.get(
  119. "emailNotifications");
  120. if (emailNotifications != null) {
  121. setEmailNotifications(emailNotifications);
  122. }
  123. String emailDelivery = (String)attributes.get("emailDelivery");
  124. if (emailDelivery != null) {
  125. setEmailDelivery(emailDelivery);
  126. }
  127. String portletId = (String)attributes.get("portletId");
  128. if (portletId != null) {
  129. setPortletId(portletId);
  130. }
  131. String pageURL = (String)attributes.get("pageURL");
  132. if (pageURL != null) {
  133. setPageURL(pageURL);
  134. }
  135. String reportParameters = (String)attributes.get("reportParameters");
  136. if (reportParameters != null) {
  137. setReportParameters(reportParameters);
  138. }
  139. String errorMessage = (String)attributes.get("errorMessage");
  140. if (errorMessage != null) {
  141. setErrorMessage(errorMessage);
  142. }
  143. String status = (String)attributes.get("status");
  144. if (status != null) {
  145. setStatus(status);
  146. }
  147. }
  148. @Override
  149. public Entry cloneWithOriginalValues() {
  150. return wrap(model.cloneWithOriginalValues());
  151. }
  152. @Override
  153. public String getAttachmentsDir() {
  154. return model.getAttachmentsDir();
  155. }
  156. @Override
  157. public String[] getAttachmentsFiles()
  158. throws com.liferay.portal.kernel.exception.PortalException {
  159. return model.getAttachmentsFiles();
  160. }
  161. /**
  162. * Returns the company ID of this entry.
  163. *
  164. * @return the company ID of this entry
  165. */
  166. @Override
  167. public long getCompanyId() {
  168. return model.getCompanyId();
  169. }
  170. /**
  171. * Returns the create date of this entry.
  172. *
  173. * @return the create date of this entry
  174. */
  175. @Override
  176. public Date getCreateDate() {
  177. return model.getCreateDate();
  178. }
  179. /**
  180. * Returns the definition ID of this entry.
  181. *
  182. * @return the definition ID of this entry
  183. */
  184. @Override
  185. public long getDefinitionId() {
  186. return model.getDefinitionId();
  187. }
  188. /**
  189. * Returns the email delivery of this entry.
  190. *
  191. * @return the email delivery of this entry
  192. */
  193. @Override
  194. public String getEmailDelivery() {
  195. return model.getEmailDelivery();
  196. }
  197. /**
  198. * Returns the email notifications of this entry.
  199. *
  200. * @return the email notifications of this entry
  201. */
  202. @Override
  203. public String getEmailNotifications() {
  204. return model.getEmailNotifications();
  205. }
  206. /**
  207. * Returns the end date of this entry.
  208. *
  209. * @return the end date of this entry
  210. */
  211. @Override
  212. public Date getEndDate() {
  213. return model.getEndDate();
  214. }
  215. /**
  216. * Returns the entry ID of this entry.
  217. *
  218. * @return the entry ID of this entry
  219. */
  220. @Override
  221. public long getEntryId() {
  222. return model.getEntryId();
  223. }
  224. /**
  225. * Returns the error message of this entry.
  226. *
  227. * @return the error message of this entry
  228. */
  229. @Override
  230. public String getErrorMessage() {
  231. return model.getErrorMessage();
  232. }
  233. /**
  234. * Returns the format of this entry.
  235. *
  236. * @return the format of this entry
  237. */
  238. @Override
  239. public String getFormat() {
  240. return model.getFormat();
  241. }
  242. /**
  243. * Returns the group ID of this entry.
  244. *
  245. * @return the group ID of this entry
  246. */
  247. @Override
  248. public long getGroupId() {
  249. return model.getGroupId();
  250. }
  251. @Override
  252. public String getJobName() {
  253. return model.getJobName();
  254. }
  255. /**
  256. * Returns the modified date of this entry.
  257. *
  258. * @return the modified date of this entry
  259. */
  260. @Override
  261. public Date getModifiedDate() {
  262. return model.getModifiedDate();
  263. }
  264. /**
  265. * Returns the page url of this entry.
  266. *
  267. * @return the page url of this entry
  268. */
  269. @Override
  270. public String getPageURL() {
  271. return model.getPageURL();
  272. }
  273. /**
  274. * Returns the portlet ID of this entry.
  275. *
  276. * @return the portlet ID of this entry
  277. */
  278. @Override
  279. public String getPortletId() {
  280. return model.getPortletId();
  281. }
  282. /**
  283. * Returns the primary key of this entry.
  284. *
  285. * @return the primary key of this entry
  286. */
  287. @Override
  288. public long getPrimaryKey() {
  289. return model.getPrimaryKey();
  290. }
  291. /**
  292. * Returns the recurrence of this entry.
  293. *
  294. * @return the recurrence of this entry
  295. */
  296. @Override
  297. public String getRecurrence() {
  298. return model.getRecurrence();
  299. }
  300. @Override
  301. public com.liferay.portal.kernel.cal.TZSRecurrence getRecurrenceObj() {
  302. return model.getRecurrenceObj();
  303. }
  304. /**
  305. * Returns the repeating of this entry.
  306. *
  307. * @return the repeating of this entry
  308. */
  309. @Override
  310. public boolean getRepeating() {
  311. return model.getRepeating();
  312. }
  313. /**
  314. * Returns the report parameters of this entry.
  315. *
  316. * @return the report parameters of this entry
  317. */
  318. @Override
  319. public String getReportParameters() {
  320. return model.getReportParameters();
  321. }
  322. /**
  323. * Returns the schedule request of this entry.
  324. *
  325. * @return the schedule request of this entry
  326. */
  327. @Override
  328. public boolean getScheduleRequest() {
  329. return model.getScheduleRequest();
  330. }
  331. @Override
  332. public String getSchedulerRequestName() {
  333. return model.getSchedulerRequestName();
  334. }
  335. /**
  336. * Returns the start date of this entry.
  337. *
  338. * @return the start date of this entry
  339. */
  340. @Override
  341. public Date getStartDate() {
  342. return model.getStartDate();
  343. }
  344. /**
  345. * Returns the status of this entry.
  346. *
  347. * @return the status of this entry
  348. */
  349. @Override
  350. public String getStatus() {
  351. return model.getStatus();
  352. }
  353. /**
  354. * Returns the user ID of this entry.
  355. *
  356. * @return the user ID of this entry
  357. */
  358. @Override
  359. public long getUserId() {
  360. return model.getUserId();
  361. }
  362. /**
  363. * Returns the user name of this entry.
  364. *
  365. * @return the user name of this entry
  366. */
  367. @Override
  368. public String getUserName() {
  369. return model.getUserName();
  370. }
  371. /**
  372. * Returns the user uuid of this entry.
  373. *
  374. * @return the user uuid of this entry
  375. */
  376. @Override
  377. public String getUserUuid() {
  378. return model.getUserUuid();
  379. }
  380. /**
  381. * Returns <code>true</code> if this entry is repeating.
  382. *
  383. * @return <code>true</code> if this entry is repeating; <code>false</code> otherwise
  384. */
  385. @Override
  386. public boolean isRepeating() {
  387. return model.isRepeating();
  388. }
  389. /**
  390. * Returns <code>true</code> if this entry is schedule request.
  391. *
  392. * @return <code>true</code> if this entry is schedule request; <code>false</code> otherwise
  393. */
  394. @Override
  395. public boolean isScheduleRequest() {
  396. return model.isScheduleRequest();
  397. }
  398. @Override
  399. public void persist() {
  400. model.persist();
  401. }
  402. /**
  403. * Sets the company ID of this entry.
  404. *
  405. * @param companyId the company ID of this entry
  406. */
  407. @Override
  408. public void setCompanyId(long companyId) {
  409. model.setCompanyId(companyId);
  410. }
  411. /**
  412. * Sets the create date of this entry.
  413. *
  414. * @param createDate the create date of this entry
  415. */
  416. @Override
  417. public void setCreateDate(Date createDate) {
  418. model.setCreateDate(createDate);
  419. }
  420. /**
  421. * Sets the definition ID of this entry.
  422. *
  423. * @param definitionId the definition ID of this entry
  424. */
  425. @Override
  426. public void setDefinitionId(long definitionId) {
  427. model.setDefinitionId(definitionId);
  428. }
  429. /**
  430. * Sets the email delivery of this entry.
  431. *
  432. * @param emailDelivery the email delivery of this entry
  433. */
  434. @Override
  435. public void setEmailDelivery(String emailDelivery) {
  436. model.setEmailDelivery(emailDelivery);
  437. }
  438. /**
  439. * Sets the email notifications of this entry.
  440. *
  441. * @param emailNotifications the email notifications of this entry
  442. */
  443. @Override
  444. public void setEmailNotifications(String emailNotifications) {
  445. model.setEmailNotifications(emailNotifications);
  446. }
  447. /**
  448. * Sets the end date of this entry.
  449. *
  450. * @param endDate the end date of this entry
  451. */
  452. @Override
  453. public void setEndDate(Date endDate) {
  454. model.setEndDate(endDate);
  455. }
  456. /**
  457. * Sets the entry ID of this entry.
  458. *
  459. * @param entryId the entry ID of this entry
  460. */
  461. @Override
  462. public void setEntryId(long entryId) {
  463. model.setEntryId(entryId);
  464. }
  465. /**
  466. * Sets the error message of this entry.
  467. *
  468. * @param errorMessage the error message of this entry
  469. */
  470. @Override
  471. public void setErrorMessage(String errorMessage) {
  472. model.setErrorMessage(errorMessage);
  473. }
  474. /**
  475. * Sets the format of this entry.
  476. *
  477. * @param format the format of this entry
  478. */
  479. @Override
  480. public void setFormat(String format) {
  481. model.setFormat(format);
  482. }
  483. /**
  484. * Sets the group ID of this entry.
  485. *
  486. * @param groupId the group ID of this entry
  487. */
  488. @Override
  489. public void setGroupId(long groupId) {
  490. model.setGroupId(groupId);
  491. }
  492. /**
  493. * Sets the modified date of this entry.
  494. *
  495. * @param modifiedDate the modified date of this entry
  496. */
  497. @Override
  498. public void setModifiedDate(Date modifiedDate) {
  499. model.setModifiedDate(modifiedDate);
  500. }
  501. /**
  502. * Sets the page url of this entry.
  503. *
  504. * @param pageURL the page url of this entry
  505. */
  506. @Override
  507. public void setPageURL(String pageURL) {
  508. model.setPageURL(pageURL);
  509. }
  510. /**
  511. * Sets the portlet ID of this entry.
  512. *
  513. * @param portletId the portlet ID of this entry
  514. */
  515. @Override
  516. public void setPortletId(String portletId) {
  517. model.setPortletId(portletId);
  518. }
  519. /**
  520. * Sets the primary key of this entry.
  521. *
  522. * @param primaryKey the primary key of this entry
  523. */
  524. @Override
  525. public void setPrimaryKey(long primaryKey) {
  526. model.setPrimaryKey(primaryKey);
  527. }
  528. /**
  529. * Sets the recurrence of this entry.
  530. *
  531. * @param recurrence the recurrence of this entry
  532. */
  533. @Override
  534. public void setRecurrence(String recurrence) {
  535. model.setRecurrence(recurrence);
  536. }
  537. /**
  538. * Sets whether this entry is repeating.
  539. *
  540. * @param repeating the repeating of this entry
  541. */
  542. @Override
  543. public void setRepeating(boolean repeating) {
  544. model.setRepeating(repeating);
  545. }
  546. /**
  547. * Sets the report parameters of this entry.
  548. *
  549. * @param reportParameters the report parameters of this entry
  550. */
  551. @Override
  552. public void setReportParameters(String reportParameters) {
  553. model.setReportParameters(reportParameters);
  554. }
  555. /**
  556. * Sets whether this entry is schedule request.
  557. *
  558. * @param scheduleRequest the schedule request of this entry
  559. */
  560. @Override
  561. public void setScheduleRequest(boolean scheduleRequest) {
  562. model.setScheduleRequest(scheduleRequest);
  563. }
  564. /**
  565. * Sets the start date of this entry.
  566. *
  567. * @param startDate the start date of this entry
  568. */
  569. @Override
  570. public void setStartDate(Date startDate) {
  571. model.setStartDate(startDate);
  572. }
  573. /**
  574. * Sets the status of this entry.
  575. *
  576. * @param status the status of this entry
  577. */
  578. @Override
  579. public void setStatus(String status) {
  580. model.setStatus(status);
  581. }
  582. /**
  583. * Sets the user ID of this entry.
  584. *
  585. * @param userId the user ID of this entry
  586. */
  587. @Override
  588. public void setUserId(long userId) {
  589. model.setUserId(userId);
  590. }
  591. /**
  592. * Sets the user name of this entry.
  593. *
  594. * @param userName the user name of this entry
  595. */
  596. @Override
  597. public void setUserName(String userName) {
  598. model.setUserName(userName);
  599. }
  600. /**
  601. * Sets the user uuid of this entry.
  602. *
  603. * @param userUuid the user uuid of this entry
  604. */
  605. @Override
  606. public void setUserUuid(String userUuid) {
  607. model.setUserUuid(userUuid);
  608. }
  609. @Override
  610. protected EntryWrapper wrap(Entry entry) {
  611. return new EntryWrapper(entry);
  612. }
  613. }