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