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

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