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. 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.
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. 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.
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 matching the UUID and group.
190            *
191            * @param uuid the m d r rule's UUID
192            * @param groupId the primary key of the group
193            * @return the matching m d r rule
194            * @throws PortalException if a matching m d r rule 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. 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.
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            * Returns the Spring bean ID for this bean.
248            *
249            * @return the Spring bean ID for this bean
250            */
251            public java.lang.String getBeanIdentifier() {
252                    return _mdrRuleLocalService.getBeanIdentifier();
253            }
254    
255            /**
256            * Sets the Spring bean ID for this bean.
257            *
258            * @param beanIdentifier the Spring bean ID for this bean
259            */
260            public void setBeanIdentifier(java.lang.String beanIdentifier) {
261                    _mdrRuleLocalService.setBeanIdentifier(beanIdentifier);
262            }
263    
264            public com.liferay.portlet.mobiledevicerules.model.MDRRule addRule(
265                    long ruleGroupId,
266                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
267                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
268                    java.lang.String type, java.lang.String typeSettings,
269                    com.liferay.portal.service.ServiceContext serviceContext)
270                    throws com.liferay.portal.kernel.exception.PortalException,
271                            com.liferay.portal.kernel.exception.SystemException {
272                    return _mdrRuleLocalService.addRule(ruleGroupId, nameMap,
273                            descriptionMap, type, typeSettings, serviceContext);
274            }
275    
276            public com.liferay.portlet.mobiledevicerules.model.MDRRule addRule(
277                    long ruleGroupId,
278                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
279                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
280                    java.lang.String type,
281                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
282                    com.liferay.portal.service.ServiceContext serviceContext)
283                    throws com.liferay.portal.kernel.exception.PortalException,
284                            com.liferay.portal.kernel.exception.SystemException {
285                    return _mdrRuleLocalService.addRule(ruleGroupId, nameMap,
286                            descriptionMap, type, typeSettingsProperties, serviceContext);
287            }
288    
289            public com.liferay.portlet.mobiledevicerules.model.MDRRule copyRule(
290                    long ruleId, long ruleGroupId,
291                    com.liferay.portal.service.ServiceContext serviceContext)
292                    throws com.liferay.portal.kernel.exception.PortalException,
293                            com.liferay.portal.kernel.exception.SystemException {
294                    return _mdrRuleLocalService.copyRule(ruleId, ruleGroupId, serviceContext);
295            }
296    
297            public com.liferay.portlet.mobiledevicerules.model.MDRRule copyRule(
298                    com.liferay.portlet.mobiledevicerules.model.MDRRule rule,
299                    long ruleGroupId,
300                    com.liferay.portal.service.ServiceContext serviceContext)
301                    throws com.liferay.portal.kernel.exception.PortalException,
302                            com.liferay.portal.kernel.exception.SystemException {
303                    return _mdrRuleLocalService.copyRule(rule, ruleGroupId, serviceContext);
304            }
305    
306            public void deleteRule(long ruleId)
307                    throws com.liferay.portal.kernel.exception.SystemException {
308                    _mdrRuleLocalService.deleteRule(ruleId);
309            }
310    
311            public void deleteRule(
312                    com.liferay.portlet.mobiledevicerules.model.MDRRule rule)
313                    throws com.liferay.portal.kernel.exception.SystemException {
314                    _mdrRuleLocalService.deleteRule(rule);
315            }
316    
317            public void deleteRules(long ruleGroupId)
318                    throws com.liferay.portal.kernel.exception.SystemException {
319                    _mdrRuleLocalService.deleteRules(ruleGroupId);
320            }
321    
322            public com.liferay.portlet.mobiledevicerules.model.MDRRule fetchRule(
323                    long ruleId) throws com.liferay.portal.kernel.exception.SystemException {
324                    return _mdrRuleLocalService.fetchRule(ruleId);
325            }
326    
327            public com.liferay.portlet.mobiledevicerules.model.MDRRule getRule(
328                    long ruleId)
329                    throws com.liferay.portal.kernel.exception.PortalException,
330                            com.liferay.portal.kernel.exception.SystemException {
331                    return _mdrRuleLocalService.getRule(ruleId);
332            }
333    
334            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> getRules(
335                    long ruleGroupId)
336                    throws com.liferay.portal.kernel.exception.SystemException {
337                    return _mdrRuleLocalService.getRules(ruleGroupId);
338            }
339    
340            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> getRules(
341                    long ruleGroupId, int start, int end)
342                    throws com.liferay.portal.kernel.exception.SystemException {
343                    return _mdrRuleLocalService.getRules(ruleGroupId, start, end);
344            }
345    
346            public int getRulesCount(long ruleGroupId)
347                    throws com.liferay.portal.kernel.exception.SystemException {
348                    return _mdrRuleLocalService.getRulesCount(ruleGroupId);
349            }
350    
351            public com.liferay.portlet.mobiledevicerules.model.MDRRule updateRule(
352                    long ruleId, java.util.Map<java.util.Locale, java.lang.String> nameMap,
353                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
354                    java.lang.String type, java.lang.String typeSettings,
355                    com.liferay.portal.service.ServiceContext serviceContext)
356                    throws com.liferay.portal.kernel.exception.PortalException,
357                            com.liferay.portal.kernel.exception.SystemException {
358                    return _mdrRuleLocalService.updateRule(ruleId, nameMap, descriptionMap,
359                            type, typeSettings, serviceContext);
360            }
361    
362            public com.liferay.portlet.mobiledevicerules.model.MDRRule updateRule(
363                    long ruleId, 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.updateRule(ruleId, nameMap, descriptionMap,
371                            type, typeSettingsProperties, serviceContext);
372            }
373    
374            /**
375             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
376             */
377            public MDRRuleLocalService getWrappedMDRRuleLocalService() {
378                    return _mdrRuleLocalService;
379            }
380    
381            /**
382             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
383             */
384            public void setWrappedMDRRuleLocalService(
385                    MDRRuleLocalService mdrRuleLocalService) {
386                    _mdrRuleLocalService = mdrRuleLocalService;
387            }
388    
389            public MDRRuleLocalService getWrappedService() {
390                    return _mdrRuleLocalService;
391            }
392    
393            public void setWrappedService(MDRRuleLocalService mdrRuleLocalService) {
394                    _mdrRuleLocalService = mdrRuleLocalService;
395            }
396    
397            private MDRRuleLocalService _mdrRuleLocalService;
398    }