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