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.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link MDRRuleLocalService}.
023     *
024     * @author Edward C. Han
025     * @see MDRRuleLocalService
026     * @generated
027     */
028    @ProviderType
029    public class MDRRuleLocalServiceWrapper implements MDRRuleLocalService,
030            ServiceWrapper<MDRRuleLocalService> {
031            public MDRRuleLocalServiceWrapper(MDRRuleLocalService mdrRuleLocalService) {
032                    _mdrRuleLocalService = mdrRuleLocalService;
033            }
034    
035            /**
036            * Adds the m d r rule to the database. Also notifies the appropriate model listeners.
037            *
038            * @param mdrRule the m d r rule
039            * @return the m d r rule that was added
040            */
041            @Override
042            public com.liferay.portlet.mobiledevicerules.model.MDRRule addMDRRule(
043                    com.liferay.portlet.mobiledevicerules.model.MDRRule mdrRule) {
044                    return _mdrRuleLocalService.addMDRRule(mdrRule);
045            }
046    
047            @Override
048            public com.liferay.portlet.mobiledevicerules.model.MDRRule addRule(
049                    long ruleGroupId,
050                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
051                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
052                    java.lang.String type, java.lang.String typeSettings,
053                    com.liferay.portal.service.ServiceContext serviceContext)
054                    throws com.liferay.portal.kernel.exception.PortalException {
055                    return _mdrRuleLocalService.addRule(ruleGroupId, nameMap,
056                            descriptionMap, type, typeSettings, serviceContext);
057            }
058    
059            @Override
060            public com.liferay.portlet.mobiledevicerules.model.MDRRule addRule(
061                    long ruleGroupId,
062                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
063                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
064                    java.lang.String type,
065                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
066                    com.liferay.portal.service.ServiceContext serviceContext)
067                    throws com.liferay.portal.kernel.exception.PortalException {
068                    return _mdrRuleLocalService.addRule(ruleGroupId, nameMap,
069                            descriptionMap, type, typeSettingsProperties, serviceContext);
070            }
071    
072            @Override
073            public com.liferay.portlet.mobiledevicerules.model.MDRRule copyRule(
074                    com.liferay.portlet.mobiledevicerules.model.MDRRule rule,
075                    long ruleGroupId,
076                    com.liferay.portal.service.ServiceContext serviceContext)
077                    throws com.liferay.portal.kernel.exception.PortalException {
078                    return _mdrRuleLocalService.copyRule(rule, ruleGroupId, serviceContext);
079            }
080    
081            @Override
082            public com.liferay.portlet.mobiledevicerules.model.MDRRule copyRule(
083                    long ruleId, long ruleGroupId,
084                    com.liferay.portal.service.ServiceContext serviceContext)
085                    throws com.liferay.portal.kernel.exception.PortalException {
086                    return _mdrRuleLocalService.copyRule(ruleId, ruleGroupId, serviceContext);
087            }
088    
089            /**
090            * Creates a new m d r rule with the primary key. Does not add the m d r rule to the database.
091            *
092            * @param ruleId the primary key for the new m d r rule
093            * @return the new m d r rule
094            */
095            @Override
096            public com.liferay.portlet.mobiledevicerules.model.MDRRule createMDRRule(
097                    long ruleId) {
098                    return _mdrRuleLocalService.createMDRRule(ruleId);
099            }
100    
101            /**
102            * Deletes the m d r rule from the database. Also notifies the appropriate model listeners.
103            *
104            * @param mdrRule the m d r rule
105            * @return the m d r rule that was removed
106            */
107            @Override
108            public com.liferay.portlet.mobiledevicerules.model.MDRRule deleteMDRRule(
109                    com.liferay.portlet.mobiledevicerules.model.MDRRule mdrRule) {
110                    return _mdrRuleLocalService.deleteMDRRule(mdrRule);
111            }
112    
113            /**
114            * Deletes the m d r rule with the primary key from the database. Also notifies the appropriate model listeners.
115            *
116            * @param ruleId the primary key of the m d r rule
117            * @return the m d r rule that was removed
118            * @throws PortalException if a m d r rule with the primary key could not be found
119            */
120            @Override
121            public com.liferay.portlet.mobiledevicerules.model.MDRRule deleteMDRRule(
122                    long ruleId) throws com.liferay.portal.kernel.exception.PortalException {
123                    return _mdrRuleLocalService.deleteMDRRule(ruleId);
124            }
125    
126            /**
127            * @throws PortalException
128            */
129            @Override
130            public com.liferay.portal.model.PersistedModel deletePersistedModel(
131                    com.liferay.portal.model.PersistedModel persistedModel)
132                    throws com.liferay.portal.kernel.exception.PortalException {
133                    return _mdrRuleLocalService.deletePersistedModel(persistedModel);
134            }
135    
136            @Override
137            public void deleteRule(
138                    com.liferay.portlet.mobiledevicerules.model.MDRRule rule) {
139                    _mdrRuleLocalService.deleteRule(rule);
140            }
141    
142            @Override
143            public void deleteRule(long ruleId) {
144                    _mdrRuleLocalService.deleteRule(ruleId);
145            }
146    
147            @Override
148            public void deleteRules(long ruleGroupId) {
149                    _mdrRuleLocalService.deleteRules(ruleGroupId);
150            }
151    
152            @Override
153            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
154                    return _mdrRuleLocalService.dynamicQuery();
155            }
156    
157            /**
158            * Performs a dynamic query on the database and returns the matching rows.
159            *
160            * @param dynamicQuery the dynamic query
161            * @return the matching rows
162            */
163            @Override
164            public <T> java.util.List<T> dynamicQuery(
165                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
166                    return _mdrRuleLocalService.dynamicQuery(dynamicQuery);
167            }
168    
169            /**
170            * Performs a dynamic query on the database and returns a 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.MDRRuleModelImpl}. 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            * @return the range of matching rows
180            */
181            @Override
182            public <T> java.util.List<T> dynamicQuery(
183                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
184                    int end) {
185                    return _mdrRuleLocalService.dynamicQuery(dynamicQuery, start, end);
186            }
187    
188            /**
189            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
190            *
191            * <p>
192            * 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.MDRRuleModelImpl}. 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.
193            * </p>
194            *
195            * @param dynamicQuery the dynamic query
196            * @param start the lower bound of the range of model instances
197            * @param end the upper bound of the range of model instances (not inclusive)
198            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
199            * @return the ordered range of matching rows
200            */
201            @Override
202            public <T> java.util.List<T> dynamicQuery(
203                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
204                    int end,
205                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
206                    return _mdrRuleLocalService.dynamicQuery(dynamicQuery, start, end,
207                            orderByComparator);
208            }
209    
210            /**
211            * Returns the number of rows matching the dynamic query.
212            *
213            * @param dynamicQuery the dynamic query
214            * @return the number of rows matching the dynamic query
215            */
216            @Override
217            public long dynamicQueryCount(
218                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
219                    return _mdrRuleLocalService.dynamicQueryCount(dynamicQuery);
220            }
221    
222            /**
223            * Returns the number of rows matching the dynamic query.
224            *
225            * @param dynamicQuery the dynamic query
226            * @param projection the projection to apply to the query
227            * @return the number of rows matching the dynamic query
228            */
229            @Override
230            public long dynamicQueryCount(
231                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
232                    com.liferay.portal.kernel.dao.orm.Projection projection) {
233                    return _mdrRuleLocalService.dynamicQueryCount(dynamicQuery, projection);
234            }
235    
236            @Override
237            public com.liferay.portlet.mobiledevicerules.model.MDRRule fetchMDRRule(
238                    long ruleId) {
239                    return _mdrRuleLocalService.fetchMDRRule(ruleId);
240            }
241    
242            /**
243            * Returns the m d r rule matching the UUID and group.
244            *
245            * @param uuid the m d r rule's UUID
246            * @param groupId the primary key of the group
247            * @return the matching m d r rule, or <code>null</code> if a matching m d r rule could not be found
248            */
249            @Override
250            public com.liferay.portlet.mobiledevicerules.model.MDRRule fetchMDRRuleByUuidAndGroupId(
251                    java.lang.String uuid, long groupId) {
252                    return _mdrRuleLocalService.fetchMDRRuleByUuidAndGroupId(uuid, groupId);
253            }
254    
255            @Override
256            public com.liferay.portlet.mobiledevicerules.model.MDRRule fetchRule(
257                    long ruleId) {
258                    return _mdrRuleLocalService.fetchRule(ruleId);
259            }
260    
261            @Override
262            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
263                    return _mdrRuleLocalService.getActionableDynamicQuery();
264            }
265    
266            /**
267            * Returns the Spring bean ID for this bean.
268            *
269            * @return the Spring bean ID for this bean
270            */
271            @Override
272            public java.lang.String getBeanIdentifier() {
273                    return _mdrRuleLocalService.getBeanIdentifier();
274            }
275    
276            @Override
277            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
278                    com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) {
279                    return _mdrRuleLocalService.getExportActionableDynamicQuery(portletDataContext);
280            }
281    
282            /**
283            * Returns the m d r rule with the primary key.
284            *
285            * @param ruleId the primary key of the m d r rule
286            * @return the m d r rule
287            * @throws PortalException if a m d r rule with the primary key could not be found
288            */
289            @Override
290            public com.liferay.portlet.mobiledevicerules.model.MDRRule getMDRRule(
291                    long ruleId) throws com.liferay.portal.kernel.exception.PortalException {
292                    return _mdrRuleLocalService.getMDRRule(ruleId);
293            }
294    
295            /**
296            * Returns the m d r rule matching the UUID and group.
297            *
298            * @param uuid the m d r rule's UUID
299            * @param groupId the primary key of the group
300            * @return the matching m d r rule
301            * @throws PortalException if a matching m d r rule could not be found
302            */
303            @Override
304            public com.liferay.portlet.mobiledevicerules.model.MDRRule getMDRRuleByUuidAndGroupId(
305                    java.lang.String uuid, long groupId)
306                    throws com.liferay.portal.kernel.exception.PortalException {
307                    return _mdrRuleLocalService.getMDRRuleByUuidAndGroupId(uuid, groupId);
308            }
309    
310            /**
311            * Returns a range of all the m d r rules.
312            *
313            * <p>
314            * 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.MDRRuleModelImpl}. 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.
315            * </p>
316            *
317            * @param start the lower bound of the range of m d r rules
318            * @param end the upper bound of the range of m d r rules (not inclusive)
319            * @return the range of m d r rules
320            */
321            @Override
322            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> getMDRRules(
323                    int start, int end) {
324                    return _mdrRuleLocalService.getMDRRules(start, end);
325            }
326    
327            /**
328            * Returns all the m d r rules matching the UUID and company.
329            *
330            * @param uuid the UUID of the m d r rules
331            * @param companyId the primary key of the company
332            * @return the matching m d r rules, or an empty list if no matches were found
333            */
334            @Override
335            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> getMDRRulesByUuidAndCompanyId(
336                    java.lang.String uuid, long companyId) {
337                    return _mdrRuleLocalService.getMDRRulesByUuidAndCompanyId(uuid,
338                            companyId);
339            }
340    
341            /**
342            * Returns a range of m d r rules matching the UUID and company.
343            *
344            * @param uuid the UUID of the m d r rules
345            * @param companyId the primary key of the company
346            * @param start the lower bound of the range of m d r rules
347            * @param end the upper bound of the range of m d r rules (not inclusive)
348            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
349            * @return the range of matching m d r rules, or an empty list if no matches were found
350            */
351            @Override
352            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> getMDRRulesByUuidAndCompanyId(
353                    java.lang.String uuid, long companyId, int start, int end,
354                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRule> orderByComparator) {
355                    return _mdrRuleLocalService.getMDRRulesByUuidAndCompanyId(uuid,
356                            companyId, start, end, orderByComparator);
357            }
358    
359            /**
360            * Returns the number of m d r rules.
361            *
362            * @return the number of m d r rules
363            */
364            @Override
365            public int getMDRRulesCount() {
366                    return _mdrRuleLocalService.getMDRRulesCount();
367            }
368    
369            @Override
370            public com.liferay.portal.model.PersistedModel getPersistedModel(
371                    java.io.Serializable primaryKeyObj)
372                    throws com.liferay.portal.kernel.exception.PortalException {
373                    return _mdrRuleLocalService.getPersistedModel(primaryKeyObj);
374            }
375    
376            @Override
377            public com.liferay.portlet.mobiledevicerules.model.MDRRule getRule(
378                    long ruleId) throws com.liferay.portal.kernel.exception.PortalException {
379                    return _mdrRuleLocalService.getRule(ruleId);
380            }
381    
382            @Override
383            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> getRules(
384                    long ruleGroupId) {
385                    return _mdrRuleLocalService.getRules(ruleGroupId);
386            }
387    
388            @Override
389            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> getRules(
390                    long ruleGroupId, int start, int end) {
391                    return _mdrRuleLocalService.getRules(ruleGroupId, start, end);
392            }
393    
394            @Override
395            public int getRulesCount(long ruleGroupId) {
396                    return _mdrRuleLocalService.getRulesCount(ruleGroupId);
397            }
398    
399            /**
400            * Sets the Spring bean ID for this bean.
401            *
402            * @param beanIdentifier the Spring bean ID for this bean
403            */
404            @Override
405            public void setBeanIdentifier(java.lang.String beanIdentifier) {
406                    _mdrRuleLocalService.setBeanIdentifier(beanIdentifier);
407            }
408    
409            /**
410            * Updates the m d r rule in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
411            *
412            * @param mdrRule the m d r rule
413            * @return the m d r rule that was updated
414            */
415            @Override
416            public com.liferay.portlet.mobiledevicerules.model.MDRRule updateMDRRule(
417                    com.liferay.portlet.mobiledevicerules.model.MDRRule mdrRule) {
418                    return _mdrRuleLocalService.updateMDRRule(mdrRule);
419            }
420    
421            @Override
422            public com.liferay.portlet.mobiledevicerules.model.MDRRule updateRule(
423                    long ruleId, java.util.Map<java.util.Locale, java.lang.String> nameMap,
424                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
425                    java.lang.String type, java.lang.String typeSettings,
426                    com.liferay.portal.service.ServiceContext serviceContext)
427                    throws com.liferay.portal.kernel.exception.PortalException {
428                    return _mdrRuleLocalService.updateRule(ruleId, nameMap, descriptionMap,
429                            type, typeSettings, serviceContext);
430            }
431    
432            @Override
433            public com.liferay.portlet.mobiledevicerules.model.MDRRule updateRule(
434                    long ruleId, java.util.Map<java.util.Locale, java.lang.String> nameMap,
435                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
436                    java.lang.String type,
437                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
438                    com.liferay.portal.service.ServiceContext serviceContext)
439                    throws com.liferay.portal.kernel.exception.PortalException {
440                    return _mdrRuleLocalService.updateRule(ruleId, nameMap, descriptionMap,
441                            type, typeSettingsProperties, serviceContext);
442            }
443    
444            /**
445             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
446             */
447            @Deprecated
448            public MDRRuleLocalService getWrappedMDRRuleLocalService() {
449                    return _mdrRuleLocalService;
450            }
451    
452            /**
453             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
454             */
455            @Deprecated
456            public void setWrappedMDRRuleLocalService(
457                    MDRRuleLocalService mdrRuleLocalService) {
458                    _mdrRuleLocalService = mdrRuleLocalService;
459            }
460    
461            @Override
462            public MDRRuleLocalService getWrappedService() {
463                    return _mdrRuleLocalService;
464            }
465    
466            @Override
467            public void setWrappedService(MDRRuleLocalService mdrRuleLocalService) {
468                    _mdrRuleLocalService = mdrRuleLocalService;
469            }
470    
471            private MDRRuleLocalService _mdrRuleLocalService;
472    }