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 UserTrackerLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       UserTrackerLocalService
024     * @generated
025     */
026    public class UserTrackerLocalServiceWrapper implements UserTrackerLocalService,
027            ServiceWrapper<UserTrackerLocalService> {
028            public UserTrackerLocalServiceWrapper(
029                    UserTrackerLocalService userTrackerLocalService) {
030                    _userTrackerLocalService = userTrackerLocalService;
031            }
032    
033            /**
034            * Adds the user tracker to the database. Also notifies the appropriate model listeners.
035            *
036            * @param userTracker the user tracker
037            * @return the user tracker that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portal.model.UserTracker addUserTracker(
041                    com.liferay.portal.model.UserTracker userTracker)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _userTrackerLocalService.addUserTracker(userTracker);
044            }
045    
046            /**
047            * Creates a new user tracker with the primary key. Does not add the user tracker to the database.
048            *
049            * @param userTrackerId the primary key for the new user tracker
050            * @return the new user tracker
051            */
052            public com.liferay.portal.model.UserTracker createUserTracker(
053                    long userTrackerId) {
054                    return _userTrackerLocalService.createUserTracker(userTrackerId);
055            }
056    
057            /**
058            * Deletes the user tracker with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param userTrackerId the primary key of the user tracker
061            * @throws PortalException if a user tracker with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public void deleteUserTracker(long userTrackerId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    _userTrackerLocalService.deleteUserTracker(userTrackerId);
068            }
069    
070            /**
071            * Deletes the user tracker from the database. Also notifies the appropriate model listeners.
072            *
073            * @param userTracker the user tracker
074            * @throws SystemException if a system exception occurred
075            */
076            public void deleteUserTracker(
077                    com.liferay.portal.model.UserTracker userTracker)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    _userTrackerLocalService.deleteUserTracker(userTracker);
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 _userTrackerLocalService.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 _userTrackerLocalService.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 _userTrackerLocalService.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 _userTrackerLocalService.dynamicQueryCount(dynamicQuery);
151            }
152    
153            public com.liferay.portal.model.UserTracker fetchUserTracker(
154                    long userTrackerId)
155                    throws com.liferay.portal.kernel.exception.SystemException {
156                    return _userTrackerLocalService.fetchUserTracker(userTrackerId);
157            }
158    
159            /**
160            * Returns the user tracker with the primary key.
161            *
162            * @param userTrackerId the primary key of the user tracker
163            * @return the user tracker
164            * @throws PortalException if a user tracker with the primary key could not be found
165            * @throws SystemException if a system exception occurred
166            */
167            public com.liferay.portal.model.UserTracker getUserTracker(
168                    long userTrackerId)
169                    throws com.liferay.portal.kernel.exception.PortalException,
170                            com.liferay.portal.kernel.exception.SystemException {
171                    return _userTrackerLocalService.getUserTracker(userTrackerId);
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 _userTrackerLocalService.getPersistedModel(primaryKeyObj);
179            }
180    
181            /**
182            * Returns a range of all the user trackers.
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 trackers
189            * @param end the upper bound of the range of user trackers (not inclusive)
190            * @return the range of user trackers
191            * @throws SystemException if a system exception occurred
192            */
193            public java.util.List<com.liferay.portal.model.UserTracker> getUserTrackers(
194                    int start, int end)
195                    throws com.liferay.portal.kernel.exception.SystemException {
196                    return _userTrackerLocalService.getUserTrackers(start, end);
197            }
198    
199            /**
200            * Returns the number of user trackers.
201            *
202            * @return the number of user trackers
203            * @throws SystemException if a system exception occurred
204            */
205            public int getUserTrackersCount()
206                    throws com.liferay.portal.kernel.exception.SystemException {
207                    return _userTrackerLocalService.getUserTrackersCount();
208            }
209    
210            /**
211            * Updates the user tracker in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
212            *
213            * @param userTracker the user tracker
214            * @return the user tracker that was updated
215            * @throws SystemException if a system exception occurred
216            */
217            public com.liferay.portal.model.UserTracker updateUserTracker(
218                    com.liferay.portal.model.UserTracker userTracker)
219                    throws com.liferay.portal.kernel.exception.SystemException {
220                    return _userTrackerLocalService.updateUserTracker(userTracker);
221            }
222    
223            /**
224            * Updates the user tracker in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
225            *
226            * @param userTracker the user tracker
227            * @param merge whether to merge the user tracker 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 tracker that was updated
229            * @throws SystemException if a system exception occurred
230            */
231            public com.liferay.portal.model.UserTracker updateUserTracker(
232                    com.liferay.portal.model.UserTracker userTracker, boolean merge)
233                    throws com.liferay.portal.kernel.exception.SystemException {
234                    return _userTrackerLocalService.updateUserTracker(userTracker, 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 _userTrackerLocalService.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                    _userTrackerLocalService.setBeanIdentifier(beanIdentifier);
253            }
254    
255            public com.liferay.portal.model.UserTracker addUserTracker(long companyId,
256                    long userId, java.util.Date modifiedDate, java.lang.String sessionId,
257                    java.lang.String remoteAddr, java.lang.String remoteHost,
258                    java.lang.String userAgent,
259                    java.util.List<com.liferay.portal.model.UserTrackerPath> userTrackerPaths)
260                    throws com.liferay.portal.kernel.exception.SystemException {
261                    return _userTrackerLocalService.addUserTracker(companyId, userId,
262                            modifiedDate, sessionId, remoteAddr, remoteHost, userAgent,
263                            userTrackerPaths);
264            }
265    
266            public java.util.List<com.liferay.portal.model.UserTracker> getUserTrackers(
267                    long companyId, int start, int end)
268                    throws com.liferay.portal.kernel.exception.SystemException {
269                    return _userTrackerLocalService.getUserTrackers(companyId, start, end);
270            }
271    
272            /**
273             * @deprecated Renamed to {@link #getWrappedService}
274             */
275            public UserTrackerLocalService getWrappedUserTrackerLocalService() {
276                    return _userTrackerLocalService;
277            }
278    
279            /**
280             * @deprecated Renamed to {@link #setWrappedService}
281             */
282            public void setWrappedUserTrackerLocalService(
283                    UserTrackerLocalService userTrackerLocalService) {
284                    _userTrackerLocalService = userTrackerLocalService;
285            }
286    
287            public UserTrackerLocalService getWrappedService() {
288                    return _userTrackerLocalService;
289            }
290    
291            public void setWrappedService(
292                    UserTrackerLocalService userTrackerLocalService) {
293                    _userTrackerLocalService = userTrackerLocalService;
294            }
295    
296            private UserTrackerLocalService _userTrackerLocalService;
297    }