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