/portal-kernel/src/com/liferay/portal/kernel/model/UserModel.java

https://github.com/danielreuther/liferay-portal · Java · 769 lines · 144 code · 106 blank · 519 comment · 0 complexity · 8b17bfdfc88532fd290905bb558b5b37 MD5 · raw file

  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.portal.kernel.model;
  15. import com.liferay.portal.kernel.bean.AutoEscape;
  16. import com.liferay.portal.kernel.model.change.tracking.CTModel;
  17. import java.util.Date;
  18. import org.osgi.annotation.versioning.ProviderType;
  19. /**
  20. * The base model interface for the User service. Represents a row in the "User_" database table, with each column mapped to a property of this class.
  21. *
  22. * <p>
  23. * This interface and its corresponding implementation <code>com.liferay.portal.model.impl.UserModelImpl</code> exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in <code>com.liferay.portal.model.impl.UserImpl</code>.
  24. * </p>
  25. *
  26. * @author Brian Wing Shun Chan
  27. * @see User
  28. * @generated
  29. */
  30. @ProviderType
  31. public interface UserModel
  32. extends BaseModel<User>, CTModel<User>, MVCCModel, ShardedModel,
  33. StagedModel {
  34. /*
  35. * NOTE FOR DEVELOPERS:
  36. *
  37. * Never modify or reference this interface directly. All methods that expect a user model instance should use the {@link User} interface instead.
  38. */
  39. /**
  40. * Returns the primary key of this user.
  41. *
  42. * @return the primary key of this user
  43. */
  44. @Override
  45. public long getPrimaryKey();
  46. /**
  47. * Sets the primary key of this user.
  48. *
  49. * @param primaryKey the primary key of this user
  50. */
  51. @Override
  52. public void setPrimaryKey(long primaryKey);
  53. /**
  54. * Returns the mvcc version of this user.
  55. *
  56. * @return the mvcc version of this user
  57. */
  58. @Override
  59. public long getMvccVersion();
  60. /**
  61. * Sets the mvcc version of this user.
  62. *
  63. * @param mvccVersion the mvcc version of this user
  64. */
  65. @Override
  66. public void setMvccVersion(long mvccVersion);
  67. /**
  68. * Returns the ct collection ID of this user.
  69. *
  70. * @return the ct collection ID of this user
  71. */
  72. @Override
  73. public long getCtCollectionId();
  74. /**
  75. * Sets the ct collection ID of this user.
  76. *
  77. * @param ctCollectionId the ct collection ID of this user
  78. */
  79. @Override
  80. public void setCtCollectionId(long ctCollectionId);
  81. /**
  82. * Returns the uuid of this user.
  83. *
  84. * @return the uuid of this user
  85. */
  86. @AutoEscape
  87. @Override
  88. public String getUuid();
  89. /**
  90. * Sets the uuid of this user.
  91. *
  92. * @param uuid the uuid of this user
  93. */
  94. @Override
  95. public void setUuid(String uuid);
  96. /**
  97. * Returns the external reference code of this user.
  98. *
  99. * @return the external reference code of this user
  100. */
  101. @AutoEscape
  102. public String getExternalReferenceCode();
  103. /**
  104. * Sets the external reference code of this user.
  105. *
  106. * @param externalReferenceCode the external reference code of this user
  107. */
  108. public void setExternalReferenceCode(String externalReferenceCode);
  109. /**
  110. * Returns the user ID of this user.
  111. *
  112. * @return the user ID of this user
  113. */
  114. public long getUserId();
  115. /**
  116. * Sets the user ID of this user.
  117. *
  118. * @param userId the user ID of this user
  119. */
  120. public void setUserId(long userId);
  121. /**
  122. * Returns the user uuid of this user.
  123. *
  124. * @return the user uuid of this user
  125. */
  126. public String getUserUuid();
  127. /**
  128. * Sets the user uuid of this user.
  129. *
  130. * @param userUuid the user uuid of this user
  131. */
  132. public void setUserUuid(String userUuid);
  133. /**
  134. * Returns the company ID of this user.
  135. *
  136. * @return the company ID of this user
  137. */
  138. @Override
  139. public long getCompanyId();
  140. /**
  141. * Sets the company ID of this user.
  142. *
  143. * @param companyId the company ID of this user
  144. */
  145. @Override
  146. public void setCompanyId(long companyId);
  147. /**
  148. * Returns the create date of this user.
  149. *
  150. * @return the create date of this user
  151. */
  152. @Override
  153. public Date getCreateDate();
  154. /**
  155. * Sets the create date of this user.
  156. *
  157. * @param createDate the create date of this user
  158. */
  159. @Override
  160. public void setCreateDate(Date createDate);
  161. /**
  162. * Returns the modified date of this user.
  163. *
  164. * @return the modified date of this user
  165. */
  166. @Override
  167. public Date getModifiedDate();
  168. /**
  169. * Sets the modified date of this user.
  170. *
  171. * @param modifiedDate the modified date of this user
  172. */
  173. @Override
  174. public void setModifiedDate(Date modifiedDate);
  175. /**
  176. * Returns the default user of this user.
  177. *
  178. * @return the default user of this user
  179. */
  180. public boolean getDefaultUser();
  181. /**
  182. * Returns <code>true</code> if this user is default user.
  183. *
  184. * @return <code>true</code> if this user is default user; <code>false</code> otherwise
  185. */
  186. public boolean isDefaultUser();
  187. /**
  188. * Sets whether this user is default user.
  189. *
  190. * @param defaultUser the default user of this user
  191. */
  192. public void setDefaultUser(boolean defaultUser);
  193. /**
  194. * Returns the contact ID of this user.
  195. *
  196. * @return the contact ID of this user
  197. */
  198. public long getContactId();
  199. /**
  200. * Sets the contact ID of this user.
  201. *
  202. * @param contactId the contact ID of this user
  203. */
  204. public void setContactId(long contactId);
  205. /**
  206. * Returns the password of this user.
  207. *
  208. * @return the password of this user
  209. */
  210. @AutoEscape
  211. public String getPassword();
  212. /**
  213. * Sets the password of this user.
  214. *
  215. * @param password the password of this user
  216. */
  217. public void setPassword(String password);
  218. /**
  219. * Returns the password encrypted of this user.
  220. *
  221. * @return the password encrypted of this user
  222. */
  223. public boolean getPasswordEncrypted();
  224. /**
  225. * Returns <code>true</code> if this user is password encrypted.
  226. *
  227. * @return <code>true</code> if this user is password encrypted; <code>false</code> otherwise
  228. */
  229. public boolean isPasswordEncrypted();
  230. /**
  231. * Sets whether this user is password encrypted.
  232. *
  233. * @param passwordEncrypted the password encrypted of this user
  234. */
  235. public void setPasswordEncrypted(boolean passwordEncrypted);
  236. /**
  237. * Returns the password reset of this user.
  238. *
  239. * @return the password reset of this user
  240. */
  241. public boolean getPasswordReset();
  242. /**
  243. * Returns <code>true</code> if this user is password reset.
  244. *
  245. * @return <code>true</code> if this user is password reset; <code>false</code> otherwise
  246. */
  247. public boolean isPasswordReset();
  248. /**
  249. * Sets whether this user is password reset.
  250. *
  251. * @param passwordReset the password reset of this user
  252. */
  253. public void setPasswordReset(boolean passwordReset);
  254. /**
  255. * Returns the password modified date of this user.
  256. *
  257. * @return the password modified date of this user
  258. */
  259. public Date getPasswordModifiedDate();
  260. /**
  261. * Sets the password modified date of this user.
  262. *
  263. * @param passwordModifiedDate the password modified date of this user
  264. */
  265. public void setPasswordModifiedDate(Date passwordModifiedDate);
  266. /**
  267. * Returns the digest of this user.
  268. *
  269. * @return the digest of this user
  270. */
  271. @AutoEscape
  272. public String getDigest();
  273. /**
  274. * Sets the digest of this user.
  275. *
  276. * @param digest the digest of this user
  277. */
  278. public void setDigest(String digest);
  279. /**
  280. * Returns the reminder query question of this user.
  281. *
  282. * @return the reminder query question of this user
  283. */
  284. @AutoEscape
  285. public String getReminderQueryQuestion();
  286. /**
  287. * Sets the reminder query question of this user.
  288. *
  289. * @param reminderQueryQuestion the reminder query question of this user
  290. */
  291. public void setReminderQueryQuestion(String reminderQueryQuestion);
  292. /**
  293. * Returns the reminder query answer of this user.
  294. *
  295. * @return the reminder query answer of this user
  296. */
  297. @AutoEscape
  298. public String getReminderQueryAnswer();
  299. /**
  300. * Sets the reminder query answer of this user.
  301. *
  302. * @param reminderQueryAnswer the reminder query answer of this user
  303. */
  304. public void setReminderQueryAnswer(String reminderQueryAnswer);
  305. /**
  306. * Returns the grace login count of this user.
  307. *
  308. * @return the grace login count of this user
  309. */
  310. public int getGraceLoginCount();
  311. /**
  312. * Sets the grace login count of this user.
  313. *
  314. * @param graceLoginCount the grace login count of this user
  315. */
  316. public void setGraceLoginCount(int graceLoginCount);
  317. /**
  318. * Returns the screen name of this user.
  319. *
  320. * @return the screen name of this user
  321. */
  322. @AutoEscape
  323. public String getScreenName();
  324. /**
  325. * Sets the screen name of this user.
  326. *
  327. * @param screenName the screen name of this user
  328. */
  329. public void setScreenName(String screenName);
  330. /**
  331. * Returns the email address of this user.
  332. *
  333. * @return the email address of this user
  334. */
  335. @AutoEscape
  336. public String getEmailAddress();
  337. /**
  338. * Sets the email address of this user.
  339. *
  340. * @param emailAddress the email address of this user
  341. */
  342. public void setEmailAddress(String emailAddress);
  343. /**
  344. * Returns the facebook ID of this user.
  345. *
  346. * @return the facebook ID of this user
  347. */
  348. public long getFacebookId();
  349. /**
  350. * Sets the facebook ID of this user.
  351. *
  352. * @param facebookId the facebook ID of this user
  353. */
  354. public void setFacebookId(long facebookId);
  355. /**
  356. * Returns the google user ID of this user.
  357. *
  358. * @return the google user ID of this user
  359. */
  360. @AutoEscape
  361. public String getGoogleUserId();
  362. /**
  363. * Sets the google user ID of this user.
  364. *
  365. * @param googleUserId the google user ID of this user
  366. */
  367. public void setGoogleUserId(String googleUserId);
  368. /**
  369. * Returns the ldap server ID of this user.
  370. *
  371. * @return the ldap server ID of this user
  372. */
  373. public long getLdapServerId();
  374. /**
  375. * Sets the ldap server ID of this user.
  376. *
  377. * @param ldapServerId the ldap server ID of this user
  378. */
  379. public void setLdapServerId(long ldapServerId);
  380. /**
  381. * Returns the open ID of this user.
  382. *
  383. * @return the open ID of this user
  384. */
  385. @AutoEscape
  386. public String getOpenId();
  387. /**
  388. * Sets the open ID of this user.
  389. *
  390. * @param openId the open ID of this user
  391. */
  392. public void setOpenId(String openId);
  393. /**
  394. * Returns the portrait ID of this user.
  395. *
  396. * @return the portrait ID of this user
  397. */
  398. public long getPortraitId();
  399. /**
  400. * Sets the portrait ID of this user.
  401. *
  402. * @param portraitId the portrait ID of this user
  403. */
  404. public void setPortraitId(long portraitId);
  405. /**
  406. * Returns the language ID of this user.
  407. *
  408. * @return the language ID of this user
  409. */
  410. @AutoEscape
  411. public String getLanguageId();
  412. /**
  413. * Sets the language ID of this user.
  414. *
  415. * @param languageId the language ID of this user
  416. */
  417. public void setLanguageId(String languageId);
  418. /**
  419. * Returns the time zone ID of this user.
  420. *
  421. * @return the time zone ID of this user
  422. */
  423. @AutoEscape
  424. public String getTimeZoneId();
  425. /**
  426. * Sets the time zone ID of this user.
  427. *
  428. * @param timeZoneId the time zone ID of this user
  429. */
  430. public void setTimeZoneId(String timeZoneId);
  431. /**
  432. * Returns the greeting of this user.
  433. *
  434. * @return the greeting of this user
  435. */
  436. @AutoEscape
  437. public String getGreeting();
  438. /**
  439. * Sets the greeting of this user.
  440. *
  441. * @param greeting the greeting of this user
  442. */
  443. public void setGreeting(String greeting);
  444. /**
  445. * Returns the comments of this user.
  446. *
  447. * @return the comments of this user
  448. */
  449. @AutoEscape
  450. public String getComments();
  451. /**
  452. * Sets the comments of this user.
  453. *
  454. * @param comments the comments of this user
  455. */
  456. public void setComments(String comments);
  457. /**
  458. * Returns the first name of this user.
  459. *
  460. * @return the first name of this user
  461. */
  462. @AutoEscape
  463. public String getFirstName();
  464. /**
  465. * Sets the first name of this user.
  466. *
  467. * @param firstName the first name of this user
  468. */
  469. public void setFirstName(String firstName);
  470. /**
  471. * Returns the middle name of this user.
  472. *
  473. * @return the middle name of this user
  474. */
  475. @AutoEscape
  476. public String getMiddleName();
  477. /**
  478. * Sets the middle name of this user.
  479. *
  480. * @param middleName the middle name of this user
  481. */
  482. public void setMiddleName(String middleName);
  483. /**
  484. * Returns the last name of this user.
  485. *
  486. * @return the last name of this user
  487. */
  488. @AutoEscape
  489. public String getLastName();
  490. /**
  491. * Sets the last name of this user.
  492. *
  493. * @param lastName the last name of this user
  494. */
  495. public void setLastName(String lastName);
  496. /**
  497. * Returns the job title of this user.
  498. *
  499. * @return the job title of this user
  500. */
  501. @AutoEscape
  502. public String getJobTitle();
  503. /**
  504. * Sets the job title of this user.
  505. *
  506. * @param jobTitle the job title of this user
  507. */
  508. public void setJobTitle(String jobTitle);
  509. /**
  510. * Returns the login date of this user.
  511. *
  512. * @return the login date of this user
  513. */
  514. public Date getLoginDate();
  515. /**
  516. * Sets the login date of this user.
  517. *
  518. * @param loginDate the login date of this user
  519. */
  520. public void setLoginDate(Date loginDate);
  521. /**
  522. * Returns the login ip of this user.
  523. *
  524. * @return the login ip of this user
  525. */
  526. @AutoEscape
  527. public String getLoginIP();
  528. /**
  529. * Sets the login ip of this user.
  530. *
  531. * @param loginIP the login ip of this user
  532. */
  533. public void setLoginIP(String loginIP);
  534. /**
  535. * Returns the last login date of this user.
  536. *
  537. * @return the last login date of this user
  538. */
  539. public Date getLastLoginDate();
  540. /**
  541. * Sets the last login date of this user.
  542. *
  543. * @param lastLoginDate the last login date of this user
  544. */
  545. public void setLastLoginDate(Date lastLoginDate);
  546. /**
  547. * Returns the last login ip of this user.
  548. *
  549. * @return the last login ip of this user
  550. */
  551. @AutoEscape
  552. public String getLastLoginIP();
  553. /**
  554. * Sets the last login ip of this user.
  555. *
  556. * @param lastLoginIP the last login ip of this user
  557. */
  558. public void setLastLoginIP(String lastLoginIP);
  559. /**
  560. * Returns the last failed login date of this user.
  561. *
  562. * @return the last failed login date of this user
  563. */
  564. public Date getLastFailedLoginDate();
  565. /**
  566. * Sets the last failed login date of this user.
  567. *
  568. * @param lastFailedLoginDate the last failed login date of this user
  569. */
  570. public void setLastFailedLoginDate(Date lastFailedLoginDate);
  571. /**
  572. * Returns the failed login attempts of this user.
  573. *
  574. * @return the failed login attempts of this user
  575. */
  576. public int getFailedLoginAttempts();
  577. /**
  578. * Sets the failed login attempts of this user.
  579. *
  580. * @param failedLoginAttempts the failed login attempts of this user
  581. */
  582. public void setFailedLoginAttempts(int failedLoginAttempts);
  583. /**
  584. * Returns the lockout of this user.
  585. *
  586. * @return the lockout of this user
  587. */
  588. public boolean getLockout();
  589. /**
  590. * Returns <code>true</code> if this user is lockout.
  591. *
  592. * @return <code>true</code> if this user is lockout; <code>false</code> otherwise
  593. */
  594. public boolean isLockout();
  595. /**
  596. * Sets whether this user is lockout.
  597. *
  598. * @param lockout the lockout of this user
  599. */
  600. public void setLockout(boolean lockout);
  601. /**
  602. * Returns the lockout date of this user.
  603. *
  604. * @return the lockout date of this user
  605. */
  606. public Date getLockoutDate();
  607. /**
  608. * Sets the lockout date of this user.
  609. *
  610. * @param lockoutDate the lockout date of this user
  611. */
  612. public void setLockoutDate(Date lockoutDate);
  613. /**
  614. * Returns the agreed to terms of use of this user.
  615. *
  616. * @return the agreed to terms of use of this user
  617. */
  618. public boolean getAgreedToTermsOfUse();
  619. /**
  620. * Returns <code>true</code> if this user is agreed to terms of use.
  621. *
  622. * @return <code>true</code> if this user is agreed to terms of use; <code>false</code> otherwise
  623. */
  624. public boolean isAgreedToTermsOfUse();
  625. /**
  626. * Sets whether this user is agreed to terms of use.
  627. *
  628. * @param agreedToTermsOfUse the agreed to terms of use of this user
  629. */
  630. public void setAgreedToTermsOfUse(boolean agreedToTermsOfUse);
  631. /**
  632. * Returns the email address verified of this user.
  633. *
  634. * @return the email address verified of this user
  635. */
  636. public boolean getEmailAddressVerified();
  637. /**
  638. * Returns <code>true</code> if this user is email address verified.
  639. *
  640. * @return <code>true</code> if this user is email address verified; <code>false</code> otherwise
  641. */
  642. public boolean isEmailAddressVerified();
  643. /**
  644. * Sets whether this user is email address verified.
  645. *
  646. * @param emailAddressVerified the email address verified of this user
  647. */
  648. public void setEmailAddressVerified(boolean emailAddressVerified);
  649. /**
  650. * Returns the status of this user.
  651. *
  652. * @return the status of this user
  653. */
  654. public int getStatus();
  655. /**
  656. * Sets the status of this user.
  657. *
  658. * @param status the status of this user
  659. */
  660. public void setStatus(int status);
  661. @Override
  662. public User cloneWithOriginalValues();
  663. }