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