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