/portal-service/src/com/liferay/portal/service/PasswordTrackerLocalService.java

https://github.com/azzazzel/liferay-portal · Java · 257 lines · 82 code · 24 blank · 151 comment · 0 complexity · 6c8b1d7e24e4916cd02fd2bdfbbf7ff7 MD5 · raw file

  1. /**
  2. * Copyright (c) 2000-2012 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.service;
  15. import com.liferay.portal.kernel.exception.PortalException;
  16. import com.liferay.portal.kernel.exception.SystemException;
  17. import com.liferay.portal.kernel.transaction.Isolation;
  18. import com.liferay.portal.kernel.transaction.Propagation;
  19. import com.liferay.portal.kernel.transaction.Transactional;
  20. /**
  21. * The interface for the password tracker local service.
  22. *
  23. * <p>
  24. * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
  25. * </p>
  26. *
  27. * @author Brian Wing Shun Chan
  28. * @see PasswordTrackerLocalServiceUtil
  29. * @see com.liferay.portal.service.base.PasswordTrackerLocalServiceBaseImpl
  30. * @see com.liferay.portal.service.impl.PasswordTrackerLocalServiceImpl
  31. * @generated
  32. */
  33. @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
  34. PortalException.class, SystemException.class})
  35. public interface PasswordTrackerLocalService extends PersistedModelLocalService {
  36. /*
  37. * NOTE FOR DEVELOPERS:
  38. *
  39. * Never modify or reference this interface directly. Always use {@link PasswordTrackerLocalServiceUtil} to access the password tracker local service. Add custom service methods to {@link com.liferay.portal.service.impl.PasswordTrackerLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
  40. */
  41. /**
  42. * Adds the password tracker to the database. Also notifies the appropriate model listeners.
  43. *
  44. * @param passwordTracker the password tracker
  45. * @return the password tracker that was added
  46. * @throws SystemException if a system exception occurred
  47. */
  48. public com.liferay.portal.model.PasswordTracker addPasswordTracker(
  49. com.liferay.portal.model.PasswordTracker passwordTracker)
  50. throws com.liferay.portal.kernel.exception.SystemException;
  51. /**
  52. * Creates a new password tracker with the primary key. Does not add the password tracker to the database.
  53. *
  54. * @param passwordTrackerId the primary key for the new password tracker
  55. * @return the new password tracker
  56. */
  57. public com.liferay.portal.model.PasswordTracker createPasswordTracker(
  58. long passwordTrackerId);
  59. /**
  60. * Deletes the password tracker with the primary key from the database. Also notifies the appropriate model listeners.
  61. *
  62. * @param passwordTrackerId the primary key of the password tracker
  63. * @return the password tracker that was removed
  64. * @throws PortalException if a password tracker with the primary key could not be found
  65. * @throws SystemException if a system exception occurred
  66. */
  67. public com.liferay.portal.model.PasswordTracker deletePasswordTracker(
  68. long passwordTrackerId)
  69. throws com.liferay.portal.kernel.exception.PortalException,
  70. com.liferay.portal.kernel.exception.SystemException;
  71. /**
  72. * Deletes the password tracker from the database. Also notifies the appropriate model listeners.
  73. *
  74. * @param passwordTracker the password tracker
  75. * @return the password tracker that was removed
  76. * @throws SystemException if a system exception occurred
  77. */
  78. public com.liferay.portal.model.PasswordTracker deletePasswordTracker(
  79. com.liferay.portal.model.PasswordTracker passwordTracker)
  80. throws com.liferay.portal.kernel.exception.SystemException;
  81. /**
  82. * Performs a dynamic query on the database and returns the matching rows.
  83. *
  84. * @param dynamicQuery the dynamic query
  85. * @return the matching rows
  86. * @throws SystemException if a system exception occurred
  87. */
  88. @SuppressWarnings("rawtypes")
  89. public java.util.List dynamicQuery(
  90. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
  91. throws com.liferay.portal.kernel.exception.SystemException;
  92. /**
  93. * Performs a dynamic query on the database and returns a range of the matching rows.
  94. *
  95. * <p>
  96. * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
  97. * </p>
  98. *
  99. * @param dynamicQuery the dynamic query
  100. * @param start the lower bound of the range of model instances
  101. * @param end the upper bound of the range of model instances (not inclusive)
  102. * @return the range of matching rows
  103. * @throws SystemException if a system exception occurred
  104. */
  105. @SuppressWarnings("rawtypes")
  106. public java.util.List dynamicQuery(
  107. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
  108. int end) throws com.liferay.portal.kernel.exception.SystemException;
  109. /**
  110. * Performs a dynamic query on the database and returns an ordered range of the matching rows.
  111. *
  112. * <p>
  113. * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
  114. * </p>
  115. *
  116. * @param dynamicQuery the dynamic query
  117. * @param start the lower bound of the range of model instances
  118. * @param end the upper bound of the range of model instances (not inclusive)
  119. * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
  120. * @return the ordered range of matching rows
  121. * @throws SystemException if a system exception occurred
  122. */
  123. @SuppressWarnings("rawtypes")
  124. public java.util.List dynamicQuery(
  125. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
  126. int end,
  127. com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
  128. throws com.liferay.portal.kernel.exception.SystemException;
  129. /**
  130. * Returns the number of rows that match the dynamic query.
  131. *
  132. * @param dynamicQuery the dynamic query
  133. * @return the number of rows that match the dynamic query
  134. * @throws SystemException if a system exception occurred
  135. */
  136. public long dynamicQueryCount(
  137. com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
  138. throws com.liferay.portal.kernel.exception.SystemException;
  139. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  140. public com.liferay.portal.model.PasswordTracker fetchPasswordTracker(
  141. long passwordTrackerId)
  142. throws com.liferay.portal.kernel.exception.SystemException;
  143. /**
  144. * Returns the password tracker with the primary key.
  145. *
  146. * @param passwordTrackerId the primary key of the password tracker
  147. * @return the password tracker
  148. * @throws PortalException if a password tracker with the primary key could not be found
  149. * @throws SystemException if a system exception occurred
  150. */
  151. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  152. public com.liferay.portal.model.PasswordTracker getPasswordTracker(
  153. long passwordTrackerId)
  154. throws com.liferay.portal.kernel.exception.PortalException,
  155. com.liferay.portal.kernel.exception.SystemException;
  156. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  157. public com.liferay.portal.model.PersistedModel getPersistedModel(
  158. java.io.Serializable primaryKeyObj)
  159. throws com.liferay.portal.kernel.exception.PortalException,
  160. com.liferay.portal.kernel.exception.SystemException;
  161. /**
  162. * Returns a range of all the password trackers.
  163. *
  164. * <p>
  165. * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
  166. * </p>
  167. *
  168. * @param start the lower bound of the range of password trackers
  169. * @param end the upper bound of the range of password trackers (not inclusive)
  170. * @return the range of password trackers
  171. * @throws SystemException if a system exception occurred
  172. */
  173. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  174. public java.util.List<com.liferay.portal.model.PasswordTracker> getPasswordTrackers(
  175. int start, int end)
  176. throws com.liferay.portal.kernel.exception.SystemException;
  177. /**
  178. * Returns the number of password trackers.
  179. *
  180. * @return the number of password trackers
  181. * @throws SystemException if a system exception occurred
  182. */
  183. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  184. public int getPasswordTrackersCount()
  185. throws com.liferay.portal.kernel.exception.SystemException;
  186. /**
  187. * Updates the password tracker in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
  188. *
  189. * @param passwordTracker the password tracker
  190. * @return the password tracker that was updated
  191. * @throws SystemException if a system exception occurred
  192. */
  193. public com.liferay.portal.model.PasswordTracker updatePasswordTracker(
  194. com.liferay.portal.model.PasswordTracker passwordTracker)
  195. throws com.liferay.portal.kernel.exception.SystemException;
  196. /**
  197. * Updates the password tracker in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
  198. *
  199. * @param passwordTracker the password tracker
  200. * @param merge whether to merge the password tracker with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
  201. * @return the password tracker that was updated
  202. * @throws SystemException if a system exception occurred
  203. */
  204. public com.liferay.portal.model.PasswordTracker updatePasswordTracker(
  205. com.liferay.portal.model.PasswordTracker passwordTracker, boolean merge)
  206. throws com.liferay.portal.kernel.exception.SystemException;
  207. /**
  208. * Returns the Spring bean ID for this bean.
  209. *
  210. * @return the Spring bean ID for this bean
  211. */
  212. public java.lang.String getBeanIdentifier();
  213. /**
  214. * Sets the Spring bean ID for this bean.
  215. *
  216. * @param beanIdentifier the Spring bean ID for this bean
  217. */
  218. public void setBeanIdentifier(java.lang.String beanIdentifier);
  219. public void deletePasswordTrackers(long userId)
  220. throws com.liferay.portal.kernel.exception.SystemException;
  221. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  222. public boolean isSameAsCurrentPassword(long userId,
  223. java.lang.String newClearTextPwd)
  224. throws com.liferay.portal.kernel.exception.PortalException,
  225. com.liferay.portal.kernel.exception.SystemException;
  226. @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  227. public boolean isValidPassword(long userId, java.lang.String newClearTextPwd)
  228. throws com.liferay.portal.kernel.exception.PortalException,
  229. com.liferay.portal.kernel.exception.SystemException;
  230. public void trackPassword(long userId, java.lang.String encPassword)
  231. throws com.liferay.portal.kernel.exception.PortalException,
  232. com.liferay.portal.kernel.exception.SystemException;
  233. }