/portlets/mail-portlet/docroot/WEB-INF/service/com/liferay/mail/model/AccountWrapper.java

https://github.com/l15k4/liferay-plugins · Java · 689 lines · 269 code · 89 blank · 331 comment · 0 complexity · 93d804d5956231660eaedbf2bf3dd06c MD5 · raw file

  1. /**
  2. * Copyright (c) 2000-2011 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.mail.model;
  15. import com.liferay.portal.model.ModelWrapper;
  16. /**
  17. * <p>
  18. * This class is a wrapper for {@link Account}.
  19. * </p>
  20. *
  21. * @author Brian Wing Shun Chan
  22. * @see Account
  23. * @generated
  24. */
  25. public class AccountWrapper implements Account, ModelWrapper<Account> {
  26. public AccountWrapper(Account account) {
  27. _account = account;
  28. }
  29. public Class<?> getModelClass() {
  30. return Account.class;
  31. }
  32. public String getModelClassName() {
  33. return Account.class.getName();
  34. }
  35. /**
  36. * Returns the primary key of this account.
  37. *
  38. * @return the primary key of this account
  39. */
  40. public long getPrimaryKey() {
  41. return _account.getPrimaryKey();
  42. }
  43. /**
  44. * Sets the primary key of this account.
  45. *
  46. * @param primaryKey the primary key of this account
  47. */
  48. public void setPrimaryKey(long primaryKey) {
  49. _account.setPrimaryKey(primaryKey);
  50. }
  51. /**
  52. * Returns the account ID of this account.
  53. *
  54. * @return the account ID of this account
  55. */
  56. public long getAccountId() {
  57. return _account.getAccountId();
  58. }
  59. /**
  60. * Sets the account ID of this account.
  61. *
  62. * @param accountId the account ID of this account
  63. */
  64. public void setAccountId(long accountId) {
  65. _account.setAccountId(accountId);
  66. }
  67. /**
  68. * Returns the company ID of this account.
  69. *
  70. * @return the company ID of this account
  71. */
  72. public long getCompanyId() {
  73. return _account.getCompanyId();
  74. }
  75. /**
  76. * Sets the company ID of this account.
  77. *
  78. * @param companyId the company ID of this account
  79. */
  80. public void setCompanyId(long companyId) {
  81. _account.setCompanyId(companyId);
  82. }
  83. /**
  84. * Returns the user ID of this account.
  85. *
  86. * @return the user ID of this account
  87. */
  88. public long getUserId() {
  89. return _account.getUserId();
  90. }
  91. /**
  92. * Sets the user ID of this account.
  93. *
  94. * @param userId the user ID of this account
  95. */
  96. public void setUserId(long userId) {
  97. _account.setUserId(userId);
  98. }
  99. /**
  100. * Returns the user uuid of this account.
  101. *
  102. * @return the user uuid of this account
  103. * @throws SystemException if a system exception occurred
  104. */
  105. public java.lang.String getUserUuid()
  106. throws com.liferay.portal.kernel.exception.SystemException {
  107. return _account.getUserUuid();
  108. }
  109. /**
  110. * Sets the user uuid of this account.
  111. *
  112. * @param userUuid the user uuid of this account
  113. */
  114. public void setUserUuid(java.lang.String userUuid) {
  115. _account.setUserUuid(userUuid);
  116. }
  117. /**
  118. * Returns the user name of this account.
  119. *
  120. * @return the user name of this account
  121. */
  122. public java.lang.String getUserName() {
  123. return _account.getUserName();
  124. }
  125. /**
  126. * Sets the user name of this account.
  127. *
  128. * @param userName the user name of this account
  129. */
  130. public void setUserName(java.lang.String userName) {
  131. _account.setUserName(userName);
  132. }
  133. /**
  134. * Returns the create date of this account.
  135. *
  136. * @return the create date of this account
  137. */
  138. public java.util.Date getCreateDate() {
  139. return _account.getCreateDate();
  140. }
  141. /**
  142. * Sets the create date of this account.
  143. *
  144. * @param createDate the create date of this account
  145. */
  146. public void setCreateDate(java.util.Date createDate) {
  147. _account.setCreateDate(createDate);
  148. }
  149. /**
  150. * Returns the modified date of this account.
  151. *
  152. * @return the modified date of this account
  153. */
  154. public java.util.Date getModifiedDate() {
  155. return _account.getModifiedDate();
  156. }
  157. /**
  158. * Sets the modified date of this account.
  159. *
  160. * @param modifiedDate the modified date of this account
  161. */
  162. public void setModifiedDate(java.util.Date modifiedDate) {
  163. _account.setModifiedDate(modifiedDate);
  164. }
  165. /**
  166. * Returns the address of this account.
  167. *
  168. * @return the address of this account
  169. */
  170. public java.lang.String getAddress() {
  171. return _account.getAddress();
  172. }
  173. /**
  174. * Sets the address of this account.
  175. *
  176. * @param address the address of this account
  177. */
  178. public void setAddress(java.lang.String address) {
  179. _account.setAddress(address);
  180. }
  181. /**
  182. * Returns the personal name of this account.
  183. *
  184. * @return the personal name of this account
  185. */
  186. public java.lang.String getPersonalName() {
  187. return _account.getPersonalName();
  188. }
  189. /**
  190. * Sets the personal name of this account.
  191. *
  192. * @param personalName the personal name of this account
  193. */
  194. public void setPersonalName(java.lang.String personalName) {
  195. _account.setPersonalName(personalName);
  196. }
  197. /**
  198. * Returns the protocol of this account.
  199. *
  200. * @return the protocol of this account
  201. */
  202. public java.lang.String getProtocol() {
  203. return _account.getProtocol();
  204. }
  205. /**
  206. * Sets the protocol of this account.
  207. *
  208. * @param protocol the protocol of this account
  209. */
  210. public void setProtocol(java.lang.String protocol) {
  211. _account.setProtocol(protocol);
  212. }
  213. /**
  214. * Returns the incoming host name of this account.
  215. *
  216. * @return the incoming host name of this account
  217. */
  218. public java.lang.String getIncomingHostName() {
  219. return _account.getIncomingHostName();
  220. }
  221. /**
  222. * Sets the incoming host name of this account.
  223. *
  224. * @param incomingHostName the incoming host name of this account
  225. */
  226. public void setIncomingHostName(java.lang.String incomingHostName) {
  227. _account.setIncomingHostName(incomingHostName);
  228. }
  229. /**
  230. * Returns the incoming port of this account.
  231. *
  232. * @return the incoming port of this account
  233. */
  234. public int getIncomingPort() {
  235. return _account.getIncomingPort();
  236. }
  237. /**
  238. * Sets the incoming port of this account.
  239. *
  240. * @param incomingPort the incoming port of this account
  241. */
  242. public void setIncomingPort(int incomingPort) {
  243. _account.setIncomingPort(incomingPort);
  244. }
  245. /**
  246. * Returns the incoming secure of this account.
  247. *
  248. * @return the incoming secure of this account
  249. */
  250. public boolean getIncomingSecure() {
  251. return _account.getIncomingSecure();
  252. }
  253. /**
  254. * Returns <code>true</code> if this account is incoming secure.
  255. *
  256. * @return <code>true</code> if this account is incoming secure; <code>false</code> otherwise
  257. */
  258. public boolean isIncomingSecure() {
  259. return _account.isIncomingSecure();
  260. }
  261. /**
  262. * Sets whether this account is incoming secure.
  263. *
  264. * @param incomingSecure the incoming secure of this account
  265. */
  266. public void setIncomingSecure(boolean incomingSecure) {
  267. _account.setIncomingSecure(incomingSecure);
  268. }
  269. /**
  270. * Returns the outgoing host name of this account.
  271. *
  272. * @return the outgoing host name of this account
  273. */
  274. public java.lang.String getOutgoingHostName() {
  275. return _account.getOutgoingHostName();
  276. }
  277. /**
  278. * Sets the outgoing host name of this account.
  279. *
  280. * @param outgoingHostName the outgoing host name of this account
  281. */
  282. public void setOutgoingHostName(java.lang.String outgoingHostName) {
  283. _account.setOutgoingHostName(outgoingHostName);
  284. }
  285. /**
  286. * Returns the outgoing port of this account.
  287. *
  288. * @return the outgoing port of this account
  289. */
  290. public int getOutgoingPort() {
  291. return _account.getOutgoingPort();
  292. }
  293. /**
  294. * Sets the outgoing port of this account.
  295. *
  296. * @param outgoingPort the outgoing port of this account
  297. */
  298. public void setOutgoingPort(int outgoingPort) {
  299. _account.setOutgoingPort(outgoingPort);
  300. }
  301. /**
  302. * Returns the outgoing secure of this account.
  303. *
  304. * @return the outgoing secure of this account
  305. */
  306. public boolean getOutgoingSecure() {
  307. return _account.getOutgoingSecure();
  308. }
  309. /**
  310. * Returns <code>true</code> if this account is outgoing secure.
  311. *
  312. * @return <code>true</code> if this account is outgoing secure; <code>false</code> otherwise
  313. */
  314. public boolean isOutgoingSecure() {
  315. return _account.isOutgoingSecure();
  316. }
  317. /**
  318. * Sets whether this account is outgoing secure.
  319. *
  320. * @param outgoingSecure the outgoing secure of this account
  321. */
  322. public void setOutgoingSecure(boolean outgoingSecure) {
  323. _account.setOutgoingSecure(outgoingSecure);
  324. }
  325. /**
  326. * Returns the login of this account.
  327. *
  328. * @return the login of this account
  329. */
  330. public java.lang.String getLogin() {
  331. return _account.getLogin();
  332. }
  333. /**
  334. * Sets the login of this account.
  335. *
  336. * @param login the login of this account
  337. */
  338. public void setLogin(java.lang.String login) {
  339. _account.setLogin(login);
  340. }
  341. /**
  342. * Returns the password of this account.
  343. *
  344. * @return the password of this account
  345. */
  346. public java.lang.String getPassword() {
  347. return _account.getPassword();
  348. }
  349. /**
  350. * Sets the password of this account.
  351. *
  352. * @param password the password of this account
  353. */
  354. public void setPassword(java.lang.String password) {
  355. _account.setPassword(password);
  356. }
  357. /**
  358. * Returns the save password of this account.
  359. *
  360. * @return the save password of this account
  361. */
  362. public boolean getSavePassword() {
  363. return _account.getSavePassword();
  364. }
  365. /**
  366. * Returns <code>true</code> if this account is save password.
  367. *
  368. * @return <code>true</code> if this account is save password; <code>false</code> otherwise
  369. */
  370. public boolean isSavePassword() {
  371. return _account.isSavePassword();
  372. }
  373. /**
  374. * Sets whether this account is save password.
  375. *
  376. * @param savePassword the save password of this account
  377. */
  378. public void setSavePassword(boolean savePassword) {
  379. _account.setSavePassword(savePassword);
  380. }
  381. /**
  382. * Returns the signature of this account.
  383. *
  384. * @return the signature of this account
  385. */
  386. public java.lang.String getSignature() {
  387. return _account.getSignature();
  388. }
  389. /**
  390. * Sets the signature of this account.
  391. *
  392. * @param signature the signature of this account
  393. */
  394. public void setSignature(java.lang.String signature) {
  395. _account.setSignature(signature);
  396. }
  397. /**
  398. * Returns the use signature of this account.
  399. *
  400. * @return the use signature of this account
  401. */
  402. public boolean getUseSignature() {
  403. return _account.getUseSignature();
  404. }
  405. /**
  406. * Returns <code>true</code> if this account is use signature.
  407. *
  408. * @return <code>true</code> if this account is use signature; <code>false</code> otherwise
  409. */
  410. public boolean isUseSignature() {
  411. return _account.isUseSignature();
  412. }
  413. /**
  414. * Sets whether this account is use signature.
  415. *
  416. * @param useSignature the use signature of this account
  417. */
  418. public void setUseSignature(boolean useSignature) {
  419. _account.setUseSignature(useSignature);
  420. }
  421. /**
  422. * Returns the folder prefix of this account.
  423. *
  424. * @return the folder prefix of this account
  425. */
  426. public java.lang.String getFolderPrefix() {
  427. return _account.getFolderPrefix();
  428. }
  429. /**
  430. * Sets the folder prefix of this account.
  431. *
  432. * @param folderPrefix the folder prefix of this account
  433. */
  434. public void setFolderPrefix(java.lang.String folderPrefix) {
  435. _account.setFolderPrefix(folderPrefix);
  436. }
  437. /**
  438. * Returns the inbox folder ID of this account.
  439. *
  440. * @return the inbox folder ID of this account
  441. */
  442. public long getInboxFolderId() {
  443. return _account.getInboxFolderId();
  444. }
  445. /**
  446. * Sets the inbox folder ID of this account.
  447. *
  448. * @param inboxFolderId the inbox folder ID of this account
  449. */
  450. public void setInboxFolderId(long inboxFolderId) {
  451. _account.setInboxFolderId(inboxFolderId);
  452. }
  453. /**
  454. * Returns the draft folder ID of this account.
  455. *
  456. * @return the draft folder ID of this account
  457. */
  458. public long getDraftFolderId() {
  459. return _account.getDraftFolderId();
  460. }
  461. /**
  462. * Sets the draft folder ID of this account.
  463. *
  464. * @param draftFolderId the draft folder ID of this account
  465. */
  466. public void setDraftFolderId(long draftFolderId) {
  467. _account.setDraftFolderId(draftFolderId);
  468. }
  469. /**
  470. * Returns the sent folder ID of this account.
  471. *
  472. * @return the sent folder ID of this account
  473. */
  474. public long getSentFolderId() {
  475. return _account.getSentFolderId();
  476. }
  477. /**
  478. * Sets the sent folder ID of this account.
  479. *
  480. * @param sentFolderId the sent folder ID of this account
  481. */
  482. public void setSentFolderId(long sentFolderId) {
  483. _account.setSentFolderId(sentFolderId);
  484. }
  485. /**
  486. * Returns the trash folder ID of this account.
  487. *
  488. * @return the trash folder ID of this account
  489. */
  490. public long getTrashFolderId() {
  491. return _account.getTrashFolderId();
  492. }
  493. /**
  494. * Sets the trash folder ID of this account.
  495. *
  496. * @param trashFolderId the trash folder ID of this account
  497. */
  498. public void setTrashFolderId(long trashFolderId) {
  499. _account.setTrashFolderId(trashFolderId);
  500. }
  501. /**
  502. * Returns the default sender of this account.
  503. *
  504. * @return the default sender of this account
  505. */
  506. public boolean getDefaultSender() {
  507. return _account.getDefaultSender();
  508. }
  509. /**
  510. * Returns <code>true</code> if this account is default sender.
  511. *
  512. * @return <code>true</code> if this account is default sender; <code>false</code> otherwise
  513. */
  514. public boolean isDefaultSender() {
  515. return _account.isDefaultSender();
  516. }
  517. /**
  518. * Sets whether this account is default sender.
  519. *
  520. * @param defaultSender the default sender of this account
  521. */
  522. public void setDefaultSender(boolean defaultSender) {
  523. _account.setDefaultSender(defaultSender);
  524. }
  525. public boolean isNew() {
  526. return _account.isNew();
  527. }
  528. public void setNew(boolean n) {
  529. _account.setNew(n);
  530. }
  531. public boolean isCachedModel() {
  532. return _account.isCachedModel();
  533. }
  534. public void setCachedModel(boolean cachedModel) {
  535. _account.setCachedModel(cachedModel);
  536. }
  537. public boolean isEscapedModel() {
  538. return _account.isEscapedModel();
  539. }
  540. public java.io.Serializable getPrimaryKeyObj() {
  541. return _account.getPrimaryKeyObj();
  542. }
  543. public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
  544. _account.setPrimaryKeyObj(primaryKeyObj);
  545. }
  546. public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
  547. return _account.getExpandoBridge();
  548. }
  549. public void setExpandoBridgeAttributes(
  550. com.liferay.portal.service.ServiceContext serviceContext) {
  551. _account.setExpandoBridgeAttributes(serviceContext);
  552. }
  553. @Override
  554. public java.lang.Object clone() {
  555. return new AccountWrapper((Account)_account.clone());
  556. }
  557. public int compareTo(com.liferay.mail.model.Account account) {
  558. return _account.compareTo(account);
  559. }
  560. @Override
  561. public int hashCode() {
  562. return _account.hashCode();
  563. }
  564. public com.liferay.portal.model.CacheModel<com.liferay.mail.model.Account> toCacheModel() {
  565. return _account.toCacheModel();
  566. }
  567. public com.liferay.mail.model.Account toEscapedModel() {
  568. return new AccountWrapper(_account.toEscapedModel());
  569. }
  570. @Override
  571. public java.lang.String toString() {
  572. return _account.toString();
  573. }
  574. public java.lang.String toXmlString() {
  575. return _account.toXmlString();
  576. }
  577. public void persist()
  578. throws com.liferay.portal.kernel.exception.SystemException {
  579. _account.persist();
  580. }
  581. public java.lang.String getPasswordDecrypted() {
  582. return _account.getPasswordDecrypted();
  583. }
  584. public void setPasswordDecrypted(java.lang.String unencryptedPassword) {
  585. _account.setPasswordDecrypted(unencryptedPassword);
  586. }
  587. /**
  588. * @deprecated Renamed to {@link #getWrappedModel}
  589. */
  590. public Account getWrappedAccount() {
  591. return _account;
  592. }
  593. public Account getWrappedModel() {
  594. return _account;
  595. }
  596. public void resetOriginalValues() {
  597. _account.resetOriginalValues();
  598. }
  599. private Account _account;
  600. }