001    /**
002     * Copyright (c) 2000-2011 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    /**
018     * <p>
019     * This class is a wrapper for {@link MDRRuleLocalService}.
020     * </p>
021     *
022     * @author    Edward C. Han
023     * @see       MDRRuleLocalService
024     * @generated
025     */
026    public class MDRRuleLocalServiceWrapper implements MDRRuleLocalService {
027            public MDRRuleLocalServiceWrapper(MDRRuleLocalService mdrRuleLocalService) {
028                    _mdrRuleLocalService = mdrRuleLocalService;
029            }
030    
031            /**
032            * Adds the m d r rule to the database. Also notifies the appropriate model listeners.
033            *
034            * @param mdrRule the m d r rule
035            * @return the m d r rule that was added
036            * @throws SystemException if a system exception occurred
037            */
038            public com.liferay.portlet.mobiledevicerules.model.MDRRule addMDRRule(
039                    com.liferay.portlet.mobiledevicerules.model.MDRRule mdrRule)
040                    throws com.liferay.portal.kernel.exception.SystemException {
041                    return _mdrRuleLocalService.addMDRRule(mdrRule);
042            }
043    
044            /**
045            * Creates a new m d r rule with the primary key. Does not add the m d r rule to the database.
046            *
047            * @param ruleId the primary key for the new m d r rule
048            * @return the new m d r rule
049            */
050            public com.liferay.portlet.mobiledevicerules.model.MDRRule createMDRRule(
051                    long ruleId) {
052                    return _mdrRuleLocalService.createMDRRule(ruleId);
053            }
054    
055            /**
056            * Deletes the m d r rule with the primary key from the database. Also notifies the appropriate model listeners.
057            *
058            * @param ruleId the primary key of the m d r rule
059            * @throws PortalException if a m d r rule with the primary key could not be found
060            * @throws SystemException if a system exception occurred
061            */
062            public void deleteMDRRule(long ruleId)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException {
065                    _mdrRuleLocalService.deleteMDRRule(ruleId);
066            }
067    
068            /**
069            * Deletes the m d r rule from the database. Also notifies the appropriate model listeners.
070            *
071            * @param mdrRule the m d r rule
072            * @throws SystemException if a system exception occurred
073            */
074            public void deleteMDRRule(
075                    com.liferay.portlet.mobiledevicerules.model.MDRRule mdrRule)
076                    throws com.liferay.portal.kernel.exception.SystemException {
077                    _mdrRuleLocalService.deleteMDRRule(mdrRule);
078            }
079    
080            /**
081            * Performs a dynamic query on the database and returns the matching rows.
082            *
083            * @param dynamicQuery the dynamic query
084            * @return the matching rows
085            * @throws SystemException if a system exception occurred
086            */
087            @SuppressWarnings("rawtypes")
088            public java.util.List dynamicQuery(
089                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
090                    throws com.liferay.portal.kernel.exception.SystemException {
091                    return _mdrRuleLocalService.dynamicQuery(dynamicQuery);
092            }
093    
094            /**
095            * Performs a dynamic query on the database and returns a range of the matching rows.
096            *
097            * <p>
098            * 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.
099            * </p>
100            *
101            * @param dynamicQuery the dynamic query
102            * @param start the lower bound of the range of model instances
103            * @param end the upper bound of the range of model instances (not inclusive)
104            * @return the range of matching rows
105            * @throws SystemException if a system exception occurred
106            */
107            @SuppressWarnings("rawtypes")
108            public java.util.List dynamicQuery(
109                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
110                    int end) throws com.liferay.portal.kernel.exception.SystemException {
111                    return _mdrRuleLocalService.dynamicQuery(dynamicQuery, start, end);
112            }
113    
114            /**
115            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
116            *
117            * <p>
118            * 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.
119            * </p>
120            *
121            * @param dynamicQuery the dynamic query
122            * @param start the lower bound of the range of model instances
123            * @param end the upper bound of the range of model instances (not inclusive)
124            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
125            * @return the ordered range of matching rows
126            * @throws SystemException if a system exception occurred
127            */
128            @SuppressWarnings("rawtypes")
129            public java.util.List dynamicQuery(
130                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
131                    int end,
132                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133                    throws com.liferay.portal.kernel.exception.SystemException {
134                    return _mdrRuleLocalService.dynamicQuery(dynamicQuery, start, end,
135                            orderByComparator);
136            }
137    
138            /**
139            * Returns the number of rows that match the dynamic query.
140            *
141            * @param dynamicQuery the dynamic query
142            * @return the number of rows that match the dynamic query
143            * @throws SystemException if a system exception occurred
144            */
145            public long dynamicQueryCount(
146                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
147                    throws com.liferay.portal.kernel.exception.SystemException {
148                    return _mdrRuleLocalService.dynamicQueryCount(dynamicQuery);
149            }
150    
151            /**
152            * Returns the m d r rule with the primary key.
153            *
154            * @param ruleId the primary key of the m d r rule
155            * @return the m d r rule
156            * @throws PortalException if a m d r rule with the primary key could not be found
157            * @throws SystemException if a system exception occurred
158            */
159            public com.liferay.portlet.mobiledevicerules.model.MDRRule getMDRRule(
160                    long ruleId)
161                    throws com.liferay.portal.kernel.exception.PortalException,
162                            com.liferay.portal.kernel.exception.SystemException {
163                    return _mdrRuleLocalService.getMDRRule(ruleId);
164            }
165    
166            public com.liferay.portal.model.PersistedModel getPersistedModel(
167                    java.io.Serializable primaryKeyObj)
168                    throws com.liferay.portal.kernel.exception.PortalException,
169                            com.liferay.portal.kernel.exception.SystemException {
170                    return _mdrRuleLocalService.getPersistedModel(primaryKeyObj);
171            }
172    
173            /**
174            * Returns the m d r rule with the UUID in the group.
175            *
176            * @param uuid the UUID of m d r rule
177            * @param groupId the group id of the m d r rule
178            * @return the m d r rule
179            * @throws PortalException if a m d r rule with the UUID in the group could not be found
180            * @throws SystemException if a system exception occurred
181            */
182            public com.liferay.portlet.mobiledevicerules.model.MDRRule getMDRRuleByUuidAndGroupId(
183                    java.lang.String uuid, long groupId)
184                    throws com.liferay.portal.kernel.exception.PortalException,
185                            com.liferay.portal.kernel.exception.SystemException {
186                    return _mdrRuleLocalService.getMDRRuleByUuidAndGroupId(uuid, groupId);
187            }
188    
189            /**
190            * Returns a range of all the m d r rules.
191            *
192            * <p>
193            * 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.
194            * </p>
195            *
196            * @param start the lower bound of the range of m d r rules
197            * @param end the upper bound of the range of m d r rules (not inclusive)
198            * @return the range of m d r rules
199            * @throws SystemException if a system exception occurred
200            */
201            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> getMDRRules(
202                    int start, int end)
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return _mdrRuleLocalService.getMDRRules(start, end);
205            }
206    
207            /**
208            * Returns the number of m d r rules.
209            *
210            * @return the number of m d r rules
211            * @throws SystemException if a system exception occurred
212            */
213            public int getMDRRulesCount()
214                    throws com.liferay.portal.kernel.exception.SystemException {
215                    return _mdrRuleLocalService.getMDRRulesCount();
216            }
217    
218            /**
219            * Updates the m d r rule in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
220            *
221            * @param mdrRule the m d r rule
222            * @return the m d r rule that was updated
223            * @throws SystemException if a system exception occurred
224            */
225            public com.liferay.portlet.mobiledevicerules.model.MDRRule updateMDRRule(
226                    com.liferay.portlet.mobiledevicerules.model.MDRRule mdrRule)
227                    throws com.liferay.portal.kernel.exception.SystemException {
228                    return _mdrRuleLocalService.updateMDRRule(mdrRule);
229            }
230    
231            /**
232            * Updates the m d r rule in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
233            *
234            * @param mdrRule the m d r rule
235            * @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.
236            * @return the m d r rule that was updated
237            * @throws SystemException if a system exception occurred
238            */
239            public com.liferay.portlet.mobiledevicerules.model.MDRRule updateMDRRule(
240                    com.liferay.portlet.mobiledevicerules.model.MDRRule mdrRule,
241                    boolean merge)
242                    throws com.liferay.portal.kernel.exception.SystemException {
243                    return _mdrRuleLocalService.updateMDRRule(mdrRule, merge);
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 java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> getRules(
328                    long ruleGroupId)
329                    throws com.liferay.portal.kernel.exception.SystemException {
330                    return _mdrRuleLocalService.getRules(ruleGroupId);
331            }
332    
333            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> getRules(
334                    long ruleGroupId, int start, int end)
335                    throws com.liferay.portal.kernel.exception.SystemException {
336                    return _mdrRuleLocalService.getRules(ruleGroupId, start, end);
337            }
338    
339            public int getRulesCount(long ruleGroupId)
340                    throws com.liferay.portal.kernel.exception.SystemException {
341                    return _mdrRuleLocalService.getRulesCount(ruleGroupId);
342            }
343    
344            public com.liferay.portlet.mobiledevicerules.model.MDRRule updateRule(
345                    long ruleId, java.util.Map<java.util.Locale, java.lang.String> nameMap,
346                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
347                    java.lang.String type, java.lang.String typeSettings,
348                    com.liferay.portal.service.ServiceContext serviceContext)
349                    throws com.liferay.portal.kernel.exception.PortalException,
350                            com.liferay.portal.kernel.exception.SystemException {
351                    return _mdrRuleLocalService.updateRule(ruleId, nameMap, descriptionMap,
352                            type, typeSettings, serviceContext);
353            }
354    
355            public com.liferay.portlet.mobiledevicerules.model.MDRRule updateRule(
356                    long ruleId, java.util.Map<java.util.Locale, java.lang.String> nameMap,
357                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
358                    java.lang.String type,
359                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
360                    com.liferay.portal.service.ServiceContext serviceContext)
361                    throws com.liferay.portal.kernel.exception.PortalException,
362                            com.liferay.portal.kernel.exception.SystemException {
363                    return _mdrRuleLocalService.updateRule(ruleId, nameMap, descriptionMap,
364                            type, typeSettingsProperties, serviceContext);
365            }
366    
367            public MDRRuleLocalService getWrappedMDRRuleLocalService() {
368                    return _mdrRuleLocalService;
369            }
370    
371            public void setWrappedMDRRuleLocalService(
372                    MDRRuleLocalService mdrRuleLocalService) {
373                    _mdrRuleLocalService = mdrRuleLocalService;
374            }
375    
376            private MDRRuleLocalService _mdrRuleLocalService;
377    }