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 @Override 198 public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() { 199 return _passwordTrackerLocalService.getIndexableActionableDynamicQuery(); 200 } 201 202 /** 203 * Returns the OSGi service identifier. 204 * 205 * @return the OSGi service identifier 206 */ 207 @Override 208 public java.lang.String getOSGiServiceIdentifier() { 209 return _passwordTrackerLocalService.getOSGiServiceIdentifier(); 210 } 211 212 /** 213 * Returns the password tracker with the primary key. 214 * 215 * @param passwordTrackerId the primary key of the password tracker 216 * @return the password tracker 217 * @throws PortalException if a password tracker with the primary key could not be found 218 */ 219 @Override 220 public com.liferay.portal.model.PasswordTracker getPasswordTracker( 221 long passwordTrackerId) 222 throws com.liferay.portal.kernel.exception.PortalException { 223 return _passwordTrackerLocalService.getPasswordTracker(passwordTrackerId); 224 } 225 226 /** 227 * Returns a range of all the password trackers. 228 * 229 * <p> 230 * 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. 231 * </p> 232 * 233 * @param start the lower bound of the range of password trackers 234 * @param end the upper bound of the range of password trackers (not inclusive) 235 * @return the range of password trackers 236 */ 237 @Override 238 public java.util.List<com.liferay.portal.model.PasswordTracker> getPasswordTrackers( 239 int start, int end) { 240 return _passwordTrackerLocalService.getPasswordTrackers(start, end); 241 } 242 243 /** 244 * Returns the number of password trackers. 245 * 246 * @return the number of password trackers 247 */ 248 @Override 249 public int getPasswordTrackersCount() { 250 return _passwordTrackerLocalService.getPasswordTrackersCount(); 251 } 252 253 @Override 254 public com.liferay.portal.model.PersistedModel getPersistedModel( 255 java.io.Serializable primaryKeyObj) 256 throws com.liferay.portal.kernel.exception.PortalException { 257 return _passwordTrackerLocalService.getPersistedModel(primaryKeyObj); 258 } 259 260 @Override 261 public boolean isSameAsCurrentPassword(long userId, 262 java.lang.String newClearTextPwd) 263 throws com.liferay.portal.kernel.exception.PortalException { 264 return _passwordTrackerLocalService.isSameAsCurrentPassword(userId, 265 newClearTextPwd); 266 } 267 268 @Override 269 public boolean isValidPassword(long userId, java.lang.String newClearTextPwd) 270 throws com.liferay.portal.kernel.exception.PortalException { 271 return _passwordTrackerLocalService.isValidPassword(userId, 272 newClearTextPwd); 273 } 274 275 @Override 276 public void trackPassword(long userId, java.lang.String encPassword) 277 throws com.liferay.portal.kernel.exception.PortalException { 278 _passwordTrackerLocalService.trackPassword(userId, encPassword); 279 } 280 281 /** 282 * Updates the password tracker in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 283 * 284 * @param passwordTracker the password tracker 285 * @return the password tracker that was updated 286 */ 287 @Override 288 public com.liferay.portal.model.PasswordTracker updatePasswordTracker( 289 com.liferay.portal.model.PasswordTracker passwordTracker) { 290 return _passwordTrackerLocalService.updatePasswordTracker(passwordTracker); 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 }