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    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the local service utility for LayoutFriendlyURL. This utility wraps
024     * {@link com.liferay.portal.service.impl.LayoutFriendlyURLLocalServiceImpl} 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 LayoutFriendlyURLLocalService
032     * @see com.liferay.portal.service.base.LayoutFriendlyURLLocalServiceBaseImpl
033     * @see com.liferay.portal.service.impl.LayoutFriendlyURLLocalServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class LayoutFriendlyURLLocalServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.LayoutFriendlyURLLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043    
044            /**
045            * Adds the layout friendly u r l to the database. Also notifies the appropriate model listeners.
046            *
047            * @param layoutFriendlyURL the layout friendly u r l
048            * @return the layout friendly u r l that was added
049            */
050            public static com.liferay.portal.model.LayoutFriendlyURL addLayoutFriendlyURL(
051                    com.liferay.portal.model.LayoutFriendlyURL layoutFriendlyURL) {
052                    return getService().addLayoutFriendlyURL(layoutFriendlyURL);
053            }
054    
055            public static com.liferay.portal.model.LayoutFriendlyURL addLayoutFriendlyURL(
056                    long userId, long companyId, long groupId, long plid,
057                    boolean privateLayout, java.lang.String friendlyURL,
058                    java.lang.String languageId,
059                    com.liferay.portal.service.ServiceContext serviceContext)
060                    throws com.liferay.portal.kernel.exception.PortalException {
061                    return getService()
062                                       .addLayoutFriendlyURL(userId, companyId, groupId, plid,
063                            privateLayout, friendlyURL, languageId, serviceContext);
064            }
065    
066            public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> addLayoutFriendlyURLs(
067                    long userId, long companyId, long groupId, long plid,
068                    boolean privateLayout,
069                    java.util.Map<java.util.Locale, java.lang.String> friendlyURLMap,
070                    com.liferay.portal.service.ServiceContext serviceContext)
071                    throws com.liferay.portal.kernel.exception.PortalException {
072                    return getService()
073                                       .addLayoutFriendlyURLs(userId, companyId, groupId, plid,
074                            privateLayout, friendlyURLMap, serviceContext);
075            }
076    
077            /**
078            * Creates a new layout friendly u r l with the primary key. Does not add the layout friendly u r l to the database.
079            *
080            * @param layoutFriendlyURLId the primary key for the new layout friendly u r l
081            * @return the new layout friendly u r l
082            */
083            public static com.liferay.portal.model.LayoutFriendlyURL createLayoutFriendlyURL(
084                    long layoutFriendlyURLId) {
085                    return getService().createLayoutFriendlyURL(layoutFriendlyURLId);
086            }
087    
088            /**
089            * Deletes the layout friendly u r l from the database. Also notifies the appropriate model listeners.
090            *
091            * @param layoutFriendlyURL the layout friendly u r l
092            * @return the layout friendly u r l that was removed
093            */
094            public static com.liferay.portal.model.LayoutFriendlyURL deleteLayoutFriendlyURL(
095                    com.liferay.portal.model.LayoutFriendlyURL layoutFriendlyURL) {
096                    return getService().deleteLayoutFriendlyURL(layoutFriendlyURL);
097            }
098    
099            /**
100            * Deletes the layout friendly u r l with the primary key from the database. Also notifies the appropriate model listeners.
101            *
102            * @param layoutFriendlyURLId the primary key of the layout friendly u r l
103            * @return the layout friendly u r l that was removed
104            * @throws PortalException if a layout friendly u r l with the primary key could not be found
105            */
106            public static com.liferay.portal.model.LayoutFriendlyURL deleteLayoutFriendlyURL(
107                    long layoutFriendlyURLId)
108                    throws com.liferay.portal.kernel.exception.PortalException {
109                    return getService().deleteLayoutFriendlyURL(layoutFriendlyURLId);
110            }
111    
112            public static void deleteLayoutFriendlyURL(long plid,
113                    java.lang.String languageId) {
114                    getService().deleteLayoutFriendlyURL(plid, languageId);
115            }
116    
117            public static void deleteLayoutFriendlyURLs(long plid) {
118                    getService().deleteLayoutFriendlyURLs(plid);
119            }
120    
121            /**
122            * @throws PortalException
123            */
124            public static com.liferay.portal.model.PersistedModel deletePersistedModel(
125                    com.liferay.portal.model.PersistedModel persistedModel)
126                    throws com.liferay.portal.kernel.exception.PortalException {
127                    return getService().deletePersistedModel(persistedModel);
128            }
129    
130            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
131                    return getService().dynamicQuery();
132            }
133    
134            /**
135            * Performs a dynamic query on the database and returns the matching rows.
136            *
137            * @param dynamicQuery the dynamic query
138            * @return the matching rows
139            */
140            public static <T> java.util.List<T> dynamicQuery(
141                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
142                    return getService().dynamicQuery(dynamicQuery);
143            }
144    
145            /**
146            * Performs a dynamic query on the database and returns a range of the matching rows.
147            *
148            * <p>
149            * 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.LayoutFriendlyURLModelImpl}. 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.
150            * </p>
151            *
152            * @param dynamicQuery the dynamic query
153            * @param start the lower bound of the range of model instances
154            * @param end the upper bound of the range of model instances (not inclusive)
155            * @return the range of matching rows
156            */
157            public static <T> java.util.List<T> dynamicQuery(
158                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
159                    int end) {
160                    return getService().dynamicQuery(dynamicQuery, start, end);
161            }
162    
163            /**
164            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
165            *
166            * <p>
167            * 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.LayoutFriendlyURLModelImpl}. 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.
168            * </p>
169            *
170            * @param dynamicQuery the dynamic query
171            * @param start the lower bound of the range of model instances
172            * @param end the upper bound of the range of model instances (not inclusive)
173            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
174            * @return the ordered range of matching rows
175            */
176            public static <T> java.util.List<T> dynamicQuery(
177                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
178                    int end,
179                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
180                    return getService()
181                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
182            }
183    
184            /**
185            * Returns the number of rows matching the dynamic query.
186            *
187            * @param dynamicQuery the dynamic query
188            * @return the number of rows matching the dynamic query
189            */
190            public static long dynamicQueryCount(
191                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
192                    return getService().dynamicQueryCount(dynamicQuery);
193            }
194    
195            /**
196            * Returns the number of rows matching the dynamic query.
197            *
198            * @param dynamicQuery the dynamic query
199            * @param projection the projection to apply to the query
200            * @return the number of rows matching the dynamic query
201            */
202            public static long dynamicQueryCount(
203                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
204                    com.liferay.portal.kernel.dao.orm.Projection projection) {
205                    return getService().dynamicQueryCount(dynamicQuery, projection);
206            }
207    
208            public static com.liferay.portal.model.LayoutFriendlyURL fetchFirstLayoutFriendlyURL(
209                    long groupId, boolean privateLayout, java.lang.String friendlyURL) {
210                    return getService()
211                                       .fetchFirstLayoutFriendlyURL(groupId, privateLayout,
212                            friendlyURL);
213            }
214    
215            public static com.liferay.portal.model.LayoutFriendlyURL fetchLayoutFriendlyURL(
216                    long groupId, boolean privateLayout, java.lang.String friendlyURL,
217                    java.lang.String languageId) {
218                    return getService()
219                                       .fetchLayoutFriendlyURL(groupId, privateLayout, friendlyURL,
220                            languageId);
221            }
222    
223            public static com.liferay.portal.model.LayoutFriendlyURL fetchLayoutFriendlyURL(
224                    long layoutFriendlyURLId) {
225                    return getService().fetchLayoutFriendlyURL(layoutFriendlyURLId);
226            }
227    
228            public static com.liferay.portal.model.LayoutFriendlyURL fetchLayoutFriendlyURL(
229                    long plid, java.lang.String languageId) {
230                    return getService().fetchLayoutFriendlyURL(plid, languageId);
231            }
232    
233            public static com.liferay.portal.model.LayoutFriendlyURL fetchLayoutFriendlyURL(
234                    long plid, java.lang.String languageId, boolean useDefault) {
235                    return getService().fetchLayoutFriendlyURL(plid, languageId, useDefault);
236            }
237    
238            /**
239            * Returns the layout friendly u r l matching the UUID and group.
240            *
241            * @param uuid the layout friendly u r l's UUID
242            * @param groupId the primary key of the group
243            * @return the matching layout friendly u r l, or <code>null</code> if a matching layout friendly u r l could not be found
244            */
245            public static com.liferay.portal.model.LayoutFriendlyURL fetchLayoutFriendlyURLByUuidAndGroupId(
246                    java.lang.String uuid, long groupId) {
247                    return getService().fetchLayoutFriendlyURLByUuidAndGroupId(uuid, groupId);
248            }
249    
250            public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
251                    return getService().getActionableDynamicQuery();
252            }
253    
254            public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
255                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
256                    return getService().getExportActionableDynamicQuery(portletDataContext);
257            }
258    
259            public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
260                    return getService().getIndexableActionableDynamicQuery();
261            }
262    
263            /**
264            * Returns the layout friendly u r l with the primary key.
265            *
266            * @param layoutFriendlyURLId the primary key of the layout friendly u r l
267            * @return the layout friendly u r l
268            * @throws PortalException if a layout friendly u r l with the primary key could not be found
269            */
270            public static com.liferay.portal.model.LayoutFriendlyURL getLayoutFriendlyURL(
271                    long layoutFriendlyURLId)
272                    throws com.liferay.portal.kernel.exception.PortalException {
273                    return getService().getLayoutFriendlyURL(layoutFriendlyURLId);
274            }
275    
276            public static com.liferay.portal.model.LayoutFriendlyURL getLayoutFriendlyURL(
277                    long plid, java.lang.String languageId)
278                    throws com.liferay.portal.kernel.exception.PortalException {
279                    return getService().getLayoutFriendlyURL(plid, languageId);
280            }
281    
282            public static com.liferay.portal.model.LayoutFriendlyURL getLayoutFriendlyURL(
283                    long plid, java.lang.String languageId, boolean useDefault)
284                    throws com.liferay.portal.kernel.exception.PortalException {
285                    return getService().getLayoutFriendlyURL(plid, languageId, useDefault);
286            }
287    
288            /**
289            * Returns the layout friendly u r l matching the UUID and group.
290            *
291            * @param uuid the layout friendly u r l's UUID
292            * @param groupId the primary key of the group
293            * @return the matching layout friendly u r l
294            * @throws PortalException if a matching layout friendly u r l could not be found
295            */
296            public static com.liferay.portal.model.LayoutFriendlyURL getLayoutFriendlyURLByUuidAndGroupId(
297                    java.lang.String uuid, long groupId)
298                    throws com.liferay.portal.kernel.exception.PortalException {
299                    return getService().getLayoutFriendlyURLByUuidAndGroupId(uuid, groupId);
300            }
301    
302            public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> getLayoutFriendlyURLs(
303                    long plid) {
304                    return getService().getLayoutFriendlyURLs(plid);
305            }
306    
307            public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> getLayoutFriendlyURLs(
308                    long plid, java.lang.String friendlyURL, int start, int end) {
309                    return getService().getLayoutFriendlyURLs(plid, friendlyURL, start, end);
310            }
311    
312            /**
313            * Returns a range of all the layout friendly u r ls.
314            *
315            * <p>
316            * 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.LayoutFriendlyURLModelImpl}. 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.
317            * </p>
318            *
319            * @param start the lower bound of the range of layout friendly u r ls
320            * @param end the upper bound of the range of layout friendly u r ls (not inclusive)
321            * @return the range of layout friendly u r ls
322            */
323            public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> getLayoutFriendlyURLs(
324                    int start, int end) {
325                    return getService().getLayoutFriendlyURLs(start, end);
326            }
327    
328            /**
329            * Returns all the layout friendly u r ls matching the UUID and company.
330            *
331            * @param uuid the UUID of the layout friendly u r ls
332            * @param companyId the primary key of the company
333            * @return the matching layout friendly u r ls, or an empty list if no matches were found
334            */
335            public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> getLayoutFriendlyURLsByUuidAndCompanyId(
336                    java.lang.String uuid, long companyId) {
337                    return getService()
338                                       .getLayoutFriendlyURLsByUuidAndCompanyId(uuid, companyId);
339            }
340    
341            /**
342            * Returns a range of layout friendly u r ls matching the UUID and company.
343            *
344            * @param uuid the UUID of the layout friendly u r ls
345            * @param companyId the primary key of the company
346            * @param start the lower bound of the range of layout friendly u r ls
347            * @param end the upper bound of the range of layout friendly u r ls (not inclusive)
348            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
349            * @return the range of matching layout friendly u r ls, or an empty list if no matches were found
350            */
351            public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> getLayoutFriendlyURLsByUuidAndCompanyId(
352                    java.lang.String uuid, long companyId, int start, int end,
353                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutFriendlyURL> orderByComparator) {
354                    return getService()
355                                       .getLayoutFriendlyURLsByUuidAndCompanyId(uuid, companyId,
356                            start, end, orderByComparator);
357            }
358    
359            /**
360            * Returns the number of layout friendly u r ls.
361            *
362            * @return the number of layout friendly u r ls
363            */
364            public static int getLayoutFriendlyURLsCount() {
365                    return getService().getLayoutFriendlyURLsCount();
366            }
367    
368            /**
369            * Returns the OSGi service identifier.
370            *
371            * @return the OSGi service identifier
372            */
373            public static java.lang.String getOSGiServiceIdentifier() {
374                    return getService().getOSGiServiceIdentifier();
375            }
376    
377            public static com.liferay.portal.model.PersistedModel getPersistedModel(
378                    java.io.Serializable primaryKeyObj)
379                    throws com.liferay.portal.kernel.exception.PortalException {
380                    return getService().getPersistedModel(primaryKeyObj);
381            }
382    
383            /**
384            * Updates the layout friendly u r l in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
385            *
386            * @param layoutFriendlyURL the layout friendly u r l
387            * @return the layout friendly u r l that was updated
388            */
389            public static com.liferay.portal.model.LayoutFriendlyURL updateLayoutFriendlyURL(
390                    com.liferay.portal.model.LayoutFriendlyURL layoutFriendlyURL) {
391                    return getService().updateLayoutFriendlyURL(layoutFriendlyURL);
392            }
393    
394            public static com.liferay.portal.model.LayoutFriendlyURL updateLayoutFriendlyURL(
395                    long userId, long companyId, long groupId, long plid,
396                    boolean privateLayout, java.lang.String friendlyURL,
397                    java.lang.String languageId,
398                    com.liferay.portal.service.ServiceContext serviceContext)
399                    throws com.liferay.portal.kernel.exception.PortalException {
400                    return getService()
401                                       .updateLayoutFriendlyURL(userId, companyId, groupId, plid,
402                            privateLayout, friendlyURL, languageId, serviceContext);
403            }
404    
405            public static java.util.List<com.liferay.portal.model.LayoutFriendlyURL> updateLayoutFriendlyURLs(
406                    long userId, long companyId, long groupId, long plid,
407                    boolean privateLayout,
408                    java.util.Map<java.util.Locale, java.lang.String> friendlyURLMap,
409                    com.liferay.portal.service.ServiceContext serviceContext)
410                    throws com.liferay.portal.kernel.exception.PortalException {
411                    return getService()
412                                       .updateLayoutFriendlyURLs(userId, companyId, groupId, plid,
413                            privateLayout, friendlyURLMap, serviceContext);
414            }
415    
416            public static LayoutFriendlyURLLocalService getService() {
417                    if (_service == null) {
418                            _service = (LayoutFriendlyURLLocalService)PortalBeanLocatorUtil.locate(LayoutFriendlyURLLocalService.class.getName());
419    
420                            ReferenceRegistry.registerReference(LayoutFriendlyURLLocalServiceUtil.class,
421                                    "_service");
422                    }
423    
424                    return _service;
425            }
426    
427            private static LayoutFriendlyURLLocalService _service;
428    }