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