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    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the local service utility for UserTrackerPath. This utility wraps
024     * {@link com.liferay.portal.service.impl.UserTrackerPathLocalServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on the local server. Methods of this service will not have security checks
027     * based on the propagated JAAS credentials because this service can only be
028     * accessed from within the same VM.
029     *
030     * @author Brian Wing Shun Chan
031     * @see UserTrackerPathLocalService
032     * @see com.liferay.portal.service.base.UserTrackerPathLocalServiceBaseImpl
033     * @see com.liferay.portal.service.impl.UserTrackerPathLocalServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class UserTrackerPathLocalServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.UserTrackerPathLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043            public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
044                    return getService().getActionableDynamicQuery();
045            }
046    
047            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
048                    return getService().dynamicQuery();
049            }
050    
051            public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
052                    return getService().getIndexableActionableDynamicQuery();
053            }
054    
055            /**
056            * @throws PortalException
057            */
058            public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
059                    com.liferay.portal.kernel.model.PersistedModel persistedModel)
060                    throws com.liferay.portal.kernel.exception.PortalException {
061                    return getService().deletePersistedModel(persistedModel);
062            }
063    
064            public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
065                    java.io.Serializable primaryKeyObj)
066                    throws com.liferay.portal.kernel.exception.PortalException {
067                    return getService().getPersistedModel(primaryKeyObj);
068            }
069    
070            /**
071            * Adds the user tracker path to the database. Also notifies the appropriate model listeners.
072            *
073            * @param userTrackerPath the user tracker path
074            * @return the user tracker path that was added
075            */
076            public static com.liferay.portal.kernel.model.UserTrackerPath addUserTrackerPath(
077                    com.liferay.portal.kernel.model.UserTrackerPath userTrackerPath) {
078                    return getService().addUserTrackerPath(userTrackerPath);
079            }
080    
081            /**
082            * Creates a new user tracker path with the primary key. Does not add the user tracker path to the database.
083            *
084            * @param userTrackerPathId the primary key for the new user tracker path
085            * @return the new user tracker path
086            */
087            public static com.liferay.portal.kernel.model.UserTrackerPath createUserTrackerPath(
088                    long userTrackerPathId) {
089                    return getService().createUserTrackerPath(userTrackerPathId);
090            }
091    
092            /**
093            * Deletes the user tracker path from the database. Also notifies the appropriate model listeners.
094            *
095            * @param userTrackerPath the user tracker path
096            * @return the user tracker path that was removed
097            */
098            public static com.liferay.portal.kernel.model.UserTrackerPath deleteUserTrackerPath(
099                    com.liferay.portal.kernel.model.UserTrackerPath userTrackerPath) {
100                    return getService().deleteUserTrackerPath(userTrackerPath);
101            }
102    
103            /**
104            * Deletes the user tracker path with the primary key from the database. Also notifies the appropriate model listeners.
105            *
106            * @param userTrackerPathId the primary key of the user tracker path
107            * @return the user tracker path that was removed
108            * @throws PortalException if a user tracker path with the primary key could not be found
109            */
110            public static com.liferay.portal.kernel.model.UserTrackerPath deleteUserTrackerPath(
111                    long userTrackerPathId)
112                    throws com.liferay.portal.kernel.exception.PortalException {
113                    return getService().deleteUserTrackerPath(userTrackerPathId);
114            }
115    
116            public static com.liferay.portal.kernel.model.UserTrackerPath fetchUserTrackerPath(
117                    long userTrackerPathId) {
118                    return getService().fetchUserTrackerPath(userTrackerPathId);
119            }
120    
121            /**
122            * Returns the user tracker path with the primary key.
123            *
124            * @param userTrackerPathId the primary key of the user tracker path
125            * @return the user tracker path
126            * @throws PortalException if a user tracker path with the primary key could not be found
127            */
128            public static com.liferay.portal.kernel.model.UserTrackerPath getUserTrackerPath(
129                    long userTrackerPathId)
130                    throws com.liferay.portal.kernel.exception.PortalException {
131                    return getService().getUserTrackerPath(userTrackerPathId);
132            }
133    
134            /**
135            * Updates the user tracker path in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
136            *
137            * @param userTrackerPath the user tracker path
138            * @return the user tracker path that was updated
139            */
140            public static com.liferay.portal.kernel.model.UserTrackerPath updateUserTrackerPath(
141                    com.liferay.portal.kernel.model.UserTrackerPath userTrackerPath) {
142                    return getService().updateUserTrackerPath(userTrackerPath);
143            }
144    
145            /**
146            * Returns the number of user tracker paths.
147            *
148            * @return the number of user tracker paths
149            */
150            public static int getUserTrackerPathsCount() {
151                    return getService().getUserTrackerPathsCount();
152            }
153    
154            /**
155            * Returns the OSGi service identifier.
156            *
157            * @return the OSGi service identifier
158            */
159            public static java.lang.String getOSGiServiceIdentifier() {
160                    return getService().getOSGiServiceIdentifier();
161            }
162    
163            /**
164            * Performs a dynamic query on the database and returns the matching rows.
165            *
166            * @param dynamicQuery the dynamic query
167            * @return the matching rows
168            */
169            public static <T> java.util.List<T> dynamicQuery(
170                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
171                    return getService().dynamicQuery(dynamicQuery);
172            }
173    
174            /**
175            * Performs a dynamic query on the database and returns a range of the matching rows.
176            *
177            * <p>
178            * 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.UserTrackerPathModelImpl}. 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.
179            * </p>
180            *
181            * @param dynamicQuery the dynamic query
182            * @param start the lower bound of the range of model instances
183            * @param end the upper bound of the range of model instances (not inclusive)
184            * @return the range of matching rows
185            */
186            public static <T> java.util.List<T> dynamicQuery(
187                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
188                    int end) {
189                    return getService().dynamicQuery(dynamicQuery, start, end);
190            }
191    
192            /**
193            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
194            *
195            * <p>
196            * 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.UserTrackerPathModelImpl}. 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.
197            * </p>
198            *
199            * @param dynamicQuery the dynamic query
200            * @param start the lower bound of the range of model instances
201            * @param end the upper bound of the range of model instances (not inclusive)
202            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
203            * @return the ordered range of matching rows
204            */
205            public static <T> java.util.List<T> dynamicQuery(
206                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
207                    int end,
208                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
209                    return getService()
210                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
211            }
212    
213            /**
214            * Returns a range of all the user tracker paths.
215            *
216            * <p>
217            * 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.UserTrackerPathModelImpl}. 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.
218            * </p>
219            *
220            * @param start the lower bound of the range of user tracker paths
221            * @param end the upper bound of the range of user tracker paths (not inclusive)
222            * @return the range of user tracker paths
223            */
224            public static java.util.List<com.liferay.portal.kernel.model.UserTrackerPath> getUserTrackerPaths(
225                    int start, int end) {
226                    return getService().getUserTrackerPaths(start, end);
227            }
228    
229            public static java.util.List<com.liferay.portal.kernel.model.UserTrackerPath> getUserTrackerPaths(
230                    long userTrackerId, int start, int end) {
231                    return getService().getUserTrackerPaths(userTrackerId, start, end);
232            }
233    
234            /**
235            * Returns the number of rows matching the dynamic query.
236            *
237            * @param dynamicQuery the dynamic query
238            * @return the number of rows matching the dynamic query
239            */
240            public static long dynamicQueryCount(
241                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
242                    return getService().dynamicQueryCount(dynamicQuery);
243            }
244    
245            /**
246            * Returns the number of rows matching the dynamic query.
247            *
248            * @param dynamicQuery the dynamic query
249            * @param projection the projection to apply to the query
250            * @return the number of rows matching the dynamic query
251            */
252            public static long dynamicQueryCount(
253                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
254                    com.liferay.portal.kernel.dao.orm.Projection projection) {
255                    return getService().dynamicQueryCount(dynamicQuery, projection);
256            }
257    
258            public static UserTrackerPathLocalService getService() {
259                    if (_service == null) {
260                            _service = (UserTrackerPathLocalService)PortalBeanLocatorUtil.locate(UserTrackerPathLocalService.class.getName());
261    
262                            ReferenceRegistry.registerReference(UserTrackerPathLocalServiceUtil.class,
263                                    "_service");
264                    }
265    
266                    return _service;
267            }
268    
269            private static UserTrackerPathLocalService _service;
270    }