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