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.kernel.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 @Override 036 public boolean isSameAsCurrentPassword(long userId, 037 java.lang.String newClearTextPwd) 038 throws com.liferay.portal.kernel.exception.PortalException { 039 return _passwordTrackerLocalService.isSameAsCurrentPassword(userId, 040 newClearTextPwd); 041 } 042 043 @Override 044 public boolean isValidPassword(long userId, java.lang.String newClearTextPwd) 045 throws com.liferay.portal.kernel.exception.PortalException { 046 return _passwordTrackerLocalService.isValidPassword(userId, 047 newClearTextPwd); 048 } 049 050 @Override 051 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { 052 return _passwordTrackerLocalService.getActionableDynamicQuery(); 053 } 054 055 @Override 056 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 057 return _passwordTrackerLocalService.dynamicQuery(); 058 } 059 060 @Override 061 public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() { 062 return _passwordTrackerLocalService.getIndexableActionableDynamicQuery(); 063 } 064 065 /** 066 * Adds the password tracker to the database. Also notifies the appropriate model listeners. 067 * 068 * @param passwordTracker the password tracker 069 * @return the password tracker that was added 070 */ 071 @Override 072 public com.liferay.portal.kernel.model.PasswordTracker addPasswordTracker( 073 com.liferay.portal.kernel.model.PasswordTracker passwordTracker) { 074 return _passwordTrackerLocalService.addPasswordTracker(passwordTracker); 075 } 076 077 /** 078 * Creates a new password tracker with the primary key. Does not add the password tracker to the database. 079 * 080 * @param passwordTrackerId the primary key for the new password tracker 081 * @return the new password tracker 082 */ 083 @Override 084 public com.liferay.portal.kernel.model.PasswordTracker createPasswordTracker( 085 long passwordTrackerId) { 086 return _passwordTrackerLocalService.createPasswordTracker(passwordTrackerId); 087 } 088 089 /** 090 * Deletes the password tracker from the database. Also notifies the appropriate model listeners. 091 * 092 * @param passwordTracker the password tracker 093 * @return the password tracker that was removed 094 */ 095 @Override 096 public com.liferay.portal.kernel.model.PasswordTracker deletePasswordTracker( 097 com.liferay.portal.kernel.model.PasswordTracker passwordTracker) { 098 return _passwordTrackerLocalService.deletePasswordTracker(passwordTracker); 099 } 100 101 /** 102 * Deletes the password tracker with the primary key from the database. Also notifies the appropriate model listeners. 103 * 104 * @param passwordTrackerId the primary key of the password tracker 105 * @return the password tracker that was removed 106 * @throws PortalException if a password tracker with the primary key could not be found 107 */ 108 @Override 109 public com.liferay.portal.kernel.model.PasswordTracker deletePasswordTracker( 110 long passwordTrackerId) 111 throws com.liferay.portal.kernel.exception.PortalException { 112 return _passwordTrackerLocalService.deletePasswordTracker(passwordTrackerId); 113 } 114 115 @Override 116 public com.liferay.portal.kernel.model.PasswordTracker fetchPasswordTracker( 117 long passwordTrackerId) { 118 return _passwordTrackerLocalService.fetchPasswordTracker(passwordTrackerId); 119 } 120 121 /** 122 * Returns the password tracker with the primary key. 123 * 124 * @param passwordTrackerId the primary key of the password tracker 125 * @return the password tracker 126 * @throws PortalException if a password tracker with the primary key could not be found 127 */ 128 @Override 129 public com.liferay.portal.kernel.model.PasswordTracker getPasswordTracker( 130 long passwordTrackerId) 131 throws com.liferay.portal.kernel.exception.PortalException { 132 return _passwordTrackerLocalService.getPasswordTracker(passwordTrackerId); 133 } 134 135 /** 136 * Updates the password tracker in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 137 * 138 * @param passwordTracker the password tracker 139 * @return the password tracker that was updated 140 */ 141 @Override 142 public com.liferay.portal.kernel.model.PasswordTracker updatePasswordTracker( 143 com.liferay.portal.kernel.model.PasswordTracker passwordTracker) { 144 return _passwordTrackerLocalService.updatePasswordTracker(passwordTracker); 145 } 146 147 /** 148 * @throws PortalException 149 */ 150 @Override 151 public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel( 152 com.liferay.portal.kernel.model.PersistedModel persistedModel) 153 throws com.liferay.portal.kernel.exception.PortalException { 154 return _passwordTrackerLocalService.deletePersistedModel(persistedModel); 155 } 156 157 @Override 158 public com.liferay.portal.kernel.model.PersistedModel getPersistedModel( 159 java.io.Serializable primaryKeyObj) 160 throws com.liferay.portal.kernel.exception.PortalException { 161 return _passwordTrackerLocalService.getPersistedModel(primaryKeyObj); 162 } 163 164 /** 165 * Returns the number of password trackers. 166 * 167 * @return the number of password trackers 168 */ 169 @Override 170 public int getPasswordTrackersCount() { 171 return _passwordTrackerLocalService.getPasswordTrackersCount(); 172 } 173 174 /** 175 * Returns the OSGi service identifier. 176 * 177 * @return the OSGi service identifier 178 */ 179 @Override 180 public java.lang.String getOSGiServiceIdentifier() { 181 return _passwordTrackerLocalService.getOSGiServiceIdentifier(); 182 } 183 184 /** 185 * Performs a dynamic query on the database and returns the matching rows. 186 * 187 * @param dynamicQuery the dynamic query 188 * @return the matching rows 189 */ 190 @Override 191 public <T> java.util.List<T> dynamicQuery( 192 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 193 return _passwordTrackerLocalService.dynamicQuery(dynamicQuery); 194 } 195 196 /** 197 * Performs a dynamic query on the database and returns a range of the matching rows. 198 * 199 * <p> 200 * 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. 201 * </p> 202 * 203 * @param dynamicQuery the dynamic query 204 * @param start the lower bound of the range of model instances 205 * @param end the upper bound of the range of model instances (not inclusive) 206 * @return the range of matching rows 207 */ 208 @Override 209 public <T> java.util.List<T> dynamicQuery( 210 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 211 int end) { 212 return _passwordTrackerLocalService.dynamicQuery(dynamicQuery, start, 213 end); 214 } 215 216 /** 217 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 218 * 219 * <p> 220 * 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. 221 * </p> 222 * 223 * @param dynamicQuery the dynamic query 224 * @param start the lower bound of the range of model instances 225 * @param end the upper bound of the range of model instances (not inclusive) 226 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 227 * @return the ordered range of matching rows 228 */ 229 @Override 230 public <T> java.util.List<T> dynamicQuery( 231 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 232 int end, 233 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) { 234 return _passwordTrackerLocalService.dynamicQuery(dynamicQuery, start, 235 end, orderByComparator); 236 } 237 238 /** 239 * Returns a range of all the password trackers. 240 * 241 * <p> 242 * 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. 243 * </p> 244 * 245 * @param start the lower bound of the range of password trackers 246 * @param end the upper bound of the range of password trackers (not inclusive) 247 * @return the range of password trackers 248 */ 249 @Override 250 public java.util.List<com.liferay.portal.kernel.model.PasswordTracker> getPasswordTrackers( 251 int start, int end) { 252 return _passwordTrackerLocalService.getPasswordTrackers(start, end); 253 } 254 255 /** 256 * Returns the number of rows matching the dynamic query. 257 * 258 * @param dynamicQuery the dynamic query 259 * @return the number of rows matching the dynamic query 260 */ 261 @Override 262 public long dynamicQueryCount( 263 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 264 return _passwordTrackerLocalService.dynamicQueryCount(dynamicQuery); 265 } 266 267 /** 268 * Returns the number of rows matching the dynamic query. 269 * 270 * @param dynamicQuery the dynamic query 271 * @param projection the projection to apply to the query 272 * @return the number of rows matching the dynamic query 273 */ 274 @Override 275 public long dynamicQueryCount( 276 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 277 com.liferay.portal.kernel.dao.orm.Projection projection) { 278 return _passwordTrackerLocalService.dynamicQueryCount(dynamicQuery, 279 projection); 280 } 281 282 @Override 283 public void deletePasswordTrackers(long userId) { 284 _passwordTrackerLocalService.deletePasswordTrackers(userId); 285 } 286 287 @Override 288 public void trackPassword(long userId, java.lang.String encPassword) 289 throws com.liferay.portal.kernel.exception.PortalException { 290 _passwordTrackerLocalService.trackPassword(userId, encPassword); 291 } 292 293 @Override 294 public PasswordTrackerLocalService getWrappedService() { 295 return _passwordTrackerLocalService; 296 } 297 298 @Override 299 public void setWrappedService( 300 PasswordTrackerLocalService passwordTrackerLocalService) { 301 _passwordTrackerLocalService = passwordTrackerLocalService; 302 } 303 304 private PasswordTrackerLocalService _passwordTrackerLocalService; 305 }