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