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