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            /**
196            * Returns the OSGi service identifier.
197            *
198            * @return the OSGi service identifier
199            */
200            @Override
201            public java.lang.String getOSGiServiceIdentifier() {
202                    return _userIdMapperLocalService.getOSGiServiceIdentifier();
203            }
204    
205            @Override
206            public com.liferay.portal.model.PersistedModel getPersistedModel(
207                    java.io.Serializable primaryKeyObj)
208                    throws com.liferay.portal.kernel.exception.PortalException {
209                    return _userIdMapperLocalService.getPersistedModel(primaryKeyObj);
210            }
211    
212            @Override
213            public com.liferay.portal.model.UserIdMapper getUserIdMapper(long userId,
214                    java.lang.String type)
215                    throws com.liferay.portal.kernel.exception.PortalException {
216                    return _userIdMapperLocalService.getUserIdMapper(userId, type);
217            }
218    
219            /**
220            * Returns the user ID mapper with the primary key.
221            *
222            * @param userIdMapperId the primary key of the user ID mapper
223            * @return the user ID mapper
224            * @throws PortalException if a user ID mapper with the primary key could not be found
225            */
226            @Override
227            public com.liferay.portal.model.UserIdMapper getUserIdMapper(
228                    long userIdMapperId)
229                    throws com.liferay.portal.kernel.exception.PortalException {
230                    return _userIdMapperLocalService.getUserIdMapper(userIdMapperId);
231            }
232    
233            @Override
234            public com.liferay.portal.model.UserIdMapper getUserIdMapperByExternalUserId(
235                    java.lang.String type, java.lang.String externalUserId)
236                    throws com.liferay.portal.kernel.exception.PortalException {
237                    return _userIdMapperLocalService.getUserIdMapperByExternalUserId(type,
238                            externalUserId);
239            }
240    
241            /**
242            * Returns a range of all the user ID mappers.
243            *
244            * <p>
245            * 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.
246            * </p>
247            *
248            * @param start the lower bound of the range of user ID mappers
249            * @param end the upper bound of the range of user ID mappers (not inclusive)
250            * @return the range of user ID mappers
251            */
252            @Override
253            public java.util.List<com.liferay.portal.model.UserIdMapper> getUserIdMappers(
254                    int start, int end) {
255                    return _userIdMapperLocalService.getUserIdMappers(start, end);
256            }
257    
258            @Override
259            public java.util.List<com.liferay.portal.model.UserIdMapper> getUserIdMappers(
260                    long userId) {
261                    return _userIdMapperLocalService.getUserIdMappers(userId);
262            }
263    
264            /**
265            * Returns the number of user ID mappers.
266            *
267            * @return the number of user ID mappers
268            */
269            @Override
270            public int getUserIdMappersCount() {
271                    return _userIdMapperLocalService.getUserIdMappersCount();
272            }
273    
274            @Override
275            public com.liferay.portal.model.UserIdMapper updateUserIdMapper(
276                    long userId, java.lang.String type, java.lang.String description,
277                    java.lang.String externalUserId) {
278                    return _userIdMapperLocalService.updateUserIdMapper(userId, type,
279                            description, externalUserId);
280            }
281    
282            /**
283            * Updates the user ID mapper in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
284            *
285            * @param userIdMapper the user ID mapper
286            * @return the user ID mapper that was updated
287            */
288            @Override
289            public com.liferay.portal.model.UserIdMapper updateUserIdMapper(
290                    com.liferay.portal.model.UserIdMapper userIdMapper) {
291                    return _userIdMapperLocalService.updateUserIdMapper(userIdMapper);
292            }
293    
294            /**
295             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
296             */
297            @Deprecated
298            public UserIdMapperLocalService getWrappedUserIdMapperLocalService() {
299                    return _userIdMapperLocalService;
300            }
301    
302            /**
303             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
304             */
305            @Deprecated
306            public void setWrappedUserIdMapperLocalService(
307                    UserIdMapperLocalService userIdMapperLocalService) {
308                    _userIdMapperLocalService = userIdMapperLocalService;
309            }
310    
311            @Override
312            public UserIdMapperLocalService getWrappedService() {
313                    return _userIdMapperLocalService;
314            }
315    
316            @Override
317            public void setWrappedService(
318                    UserIdMapperLocalService userIdMapperLocalService) {
319                    _userIdMapperLocalService = userIdMapperLocalService;
320            }
321    
322            private UserIdMapperLocalService _userIdMapperLocalService;
323    }