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