001 /** 002 * Copyright (c) 2000-present Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 /** 020 * Provides a wrapper for {@link PasswordTrackerLocalService}. 021 * 022 * @author Brian Wing Shun Chan 023 * @see PasswordTrackerLocalService 024 * @generated 025 */ 026 @ProviderType 027 public class PasswordTrackerLocalServiceWrapper 028 implements PasswordTrackerLocalService, 029 ServiceWrapper<PasswordTrackerLocalService> { 030 public PasswordTrackerLocalServiceWrapper( 031 PasswordTrackerLocalService passwordTrackerLocalService) { 032 _passwordTrackerLocalService = passwordTrackerLocalService; 033 } 034 035 /** 036 * Adds the password tracker to the database. Also notifies the appropriate model listeners. 037 * 038 * @param passwordTracker the password tracker 039 * @return the password tracker that was added 040 */ 041 @Override 042 public com.liferay.portal.model.PasswordTracker addPasswordTracker( 043 com.liferay.portal.model.PasswordTracker passwordTracker) { 044 return _passwordTrackerLocalService.addPasswordTracker(passwordTracker); 045 } 046 047 /** 048 * Creates a new password tracker with the primary key. Does not add the password tracker to the database. 049 * 050 * @param passwordTrackerId the primary key for the new password tracker 051 * @return the new password tracker 052 */ 053 @Override 054 public com.liferay.portal.model.PasswordTracker createPasswordTracker( 055 long passwordTrackerId) { 056 return _passwordTrackerLocalService.createPasswordTracker(passwordTrackerId); 057 } 058 059 /** 060 * Deletes the password tracker from the database. Also notifies the appropriate model listeners. 061 * 062 * @param passwordTracker the password tracker 063 * @return the password tracker that was removed 064 */ 065 @Override 066 public com.liferay.portal.model.PasswordTracker deletePasswordTracker( 067 com.liferay.portal.model.PasswordTracker passwordTracker) { 068 return _passwordTrackerLocalService.deletePasswordTracker(passwordTracker); 069 } 070 071 /** 072 * Deletes the password tracker with the primary key from the database. Also notifies the appropriate model listeners. 073 * 074 * @param passwordTrackerId the primary key of the password tracker 075 * @return the password tracker that was removed 076 * @throws PortalException if a password tracker with the primary key could not be found 077 */ 078 @Override 079 public com.liferay.portal.model.PasswordTracker deletePasswordTracker( 080 long passwordTrackerId) 081 throws com.liferay.portal.kernel.exception.PortalException { 082 return _passwordTrackerLocalService.deletePasswordTracker(passwordTrackerId); 083 } 084 085 @Override 086 public void deletePasswordTrackers(long userId) { 087 _passwordTrackerLocalService.deletePasswordTrackers(userId); 088 } 089 090 /** 091 * @throws PortalException 092 */ 093 @Override 094 public com.liferay.portal.model.PersistedModel deletePersistedModel( 095 com.liferay.portal.model.PersistedModel persistedModel) 096 throws com.liferay.portal.kernel.exception.PortalException { 097 return _passwordTrackerLocalService.deletePersistedModel(persistedModel); 098 } 099 100 @Override 101 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 102 return _passwordTrackerLocalService.dynamicQuery(); 103 } 104 105 /** 106 * Performs a dynamic query on the database and returns the matching rows. 107 * 108 * @param dynamicQuery the dynamic query 109 * @return the matching rows 110 */ 111 @Override 112 public <T> java.util.List<T> dynamicQuery( 113 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 114 return _passwordTrackerLocalService.dynamicQuery(dynamicQuery); 115 } 116 117 /** 118 * Performs a dynamic query on the database and returns a range of the matching rows. 119 * 120 * <p> 121 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PasswordTrackerModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 122 * </p> 123 * 124 * @param dynamicQuery the dynamic query 125 * @param start the lower bound of the range of model instances 126 * @param end the upper bound of the range of model instances (not inclusive) 127 * @return the range of matching rows 128 */ 129 @Override 130 public <T> java.util.List<T> dynamicQuery( 131 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 132 int end) { 133 return _passwordTrackerLocalService.dynamicQuery(dynamicQuery, start, 134 end); 135 } 136 137 /** 138 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 139 * 140 * <p> 141 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PasswordTrackerModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 142 * </p> 143 * 144 * @param dynamicQuery the dynamic query 145 * @param start the lower bound of the range of model instances 146 * @param end the upper bound of the range of model instances (not inclusive) 147 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 148 * @return the ordered range of matching rows 149 */ 150 @Override 151 public <T> java.util.List<T> dynamicQuery( 152 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 153 int end, 154 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) { 155 return _passwordTrackerLocalService.dynamicQuery(dynamicQuery, start, 156 end, orderByComparator); 157 } 158 159 /** 160 * Returns the number of rows matching the dynamic query. 161 * 162 * @param dynamicQuery the dynamic query 163 * @return the number of rows matching the dynamic query 164 */ 165 @Override 166 public long dynamicQueryCount( 167 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 168 return _passwordTrackerLocalService.dynamicQueryCount(dynamicQuery); 169 } 170 171 /** 172 * Returns the number of rows matching the dynamic query. 173 * 174 * @param dynamicQuery the dynamic query 175 * @param projection the projection to apply to the query 176 * @return the number of rows matching the dynamic query 177 */ 178 @Override 179 public long dynamicQueryCount( 180 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 181 com.liferay.portal.kernel.dao.orm.Projection projection) { 182 return _passwordTrackerLocalService.dynamicQueryCount(dynamicQuery, 183 projection); 184 } 185 186 @Override 187 public com.liferay.portal.model.PasswordTracker fetchPasswordTracker( 188 long passwordTrackerId) { 189 return _passwordTrackerLocalService.fetchPasswordTracker(passwordTrackerId); 190 } 191 192 @Override 193 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { 194 return _passwordTrackerLocalService.getActionableDynamicQuery(); 195 } 196 197 /** 198 * Returns the Spring bean ID for this bean. 199 * 200 * @return the Spring bean ID for this bean 201 */ 202 @Override 203 public java.lang.String getBeanIdentifier() { 204 return _passwordTrackerLocalService.getBeanIdentifier(); 205 } 206 207 /** 208 * Returns the password tracker with the primary key. 209 * 210 * @param passwordTrackerId the primary key of the password tracker 211 * @return the password tracker 212 * @throws PortalException if a password tracker with the primary key could not be found 213 */ 214 @Override 215 public com.liferay.portal.model.PasswordTracker getPasswordTracker( 216 long passwordTrackerId) 217 throws com.liferay.portal.kernel.exception.PortalException { 218 return _passwordTrackerLocalService.getPasswordTracker(passwordTrackerId); 219 } 220 221 /** 222 * Returns a range of all the password trackers. 223 * 224 * <p> 225 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PasswordTrackerModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 226 * </p> 227 * 228 * @param start the lower bound of the range of password trackers 229 * @param end the upper bound of the range of password trackers (not inclusive) 230 * @return the range of password trackers 231 */ 232 @Override 233 public java.util.List<com.liferay.portal.model.PasswordTracker> getPasswordTrackers( 234 int start, int end) { 235 return _passwordTrackerLocalService.getPasswordTrackers(start, end); 236 } 237 238 /** 239 * Returns the number of password trackers. 240 * 241 * @return the number of password trackers 242 */ 243 @Override 244 public int getPasswordTrackersCount() { 245 return _passwordTrackerLocalService.getPasswordTrackersCount(); 246 } 247 248 @Override 249 public com.liferay.portal.model.PersistedModel getPersistedModel( 250 java.io.Serializable primaryKeyObj) 251 throws com.liferay.portal.kernel.exception.PortalException { 252 return _passwordTrackerLocalService.getPersistedModel(primaryKeyObj); 253 } 254 255 @Override 256 public boolean isSameAsCurrentPassword(long userId, 257 java.lang.String newClearTextPwd) 258 throws com.liferay.portal.kernel.exception.PortalException { 259 return _passwordTrackerLocalService.isSameAsCurrentPassword(userId, 260 newClearTextPwd); 261 } 262 263 @Override 264 public boolean isValidPassword(long userId, java.lang.String newClearTextPwd) 265 throws com.liferay.portal.kernel.exception.PortalException { 266 return _passwordTrackerLocalService.isValidPassword(userId, 267 newClearTextPwd); 268 } 269 270 /** 271 * Sets the Spring bean ID for this bean. 272 * 273 * @param beanIdentifier the Spring bean ID for this bean 274 */ 275 @Override 276 public void setBeanIdentifier(java.lang.String beanIdentifier) { 277 _passwordTrackerLocalService.setBeanIdentifier(beanIdentifier); 278 } 279 280 @Override 281 public void trackPassword(long userId, java.lang.String encPassword) 282 throws com.liferay.portal.kernel.exception.PortalException { 283 _passwordTrackerLocalService.trackPassword(userId, encPassword); 284 } 285 286 /** 287 * Updates the password tracker in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 288 * 289 * @param passwordTracker the password tracker 290 * @return the password tracker that was updated 291 */ 292 @Override 293 public com.liferay.portal.model.PasswordTracker updatePasswordTracker( 294 com.liferay.portal.model.PasswordTracker passwordTracker) { 295 return _passwordTrackerLocalService.updatePasswordTracker(passwordTracker); 296 } 297 298 /** 299 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 300 */ 301 @Deprecated 302 public PasswordTrackerLocalService getWrappedPasswordTrackerLocalService() { 303 return _passwordTrackerLocalService; 304 } 305 306 /** 307 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 308 */ 309 @Deprecated 310 public void setWrappedPasswordTrackerLocalService( 311 PasswordTrackerLocalService passwordTrackerLocalService) { 312 _passwordTrackerLocalService = passwordTrackerLocalService; 313 } 314 315 @Override 316 public PasswordTrackerLocalService getWrappedService() { 317 return _passwordTrackerLocalService; 318 } 319 320 @Override 321 public void setWrappedService( 322 PasswordTrackerLocalService passwordTrackerLocalService) { 323 _passwordTrackerLocalService = passwordTrackerLocalService; 324 } 325 326 private PasswordTrackerLocalService _passwordTrackerLocalService; 327 }