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. 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.MDRRuleGroupModelImpl}. 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.
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. 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.MDRRuleGroupModelImpl}. 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.
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 matching the UUID and group.
192            *
193            * @param uuid the m d r rule group's UUID
194            * @param groupId the primary key of the group
195            * @return the matching m d r rule group
196            * @throws PortalException if a matching m d r rule 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. 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.MDRRuleGroupModelImpl}. 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.
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            * Returns the Spring bean ID for this bean.
251            *
252            * @return the Spring bean ID for this bean
253            */
254            public java.lang.String getBeanIdentifier() {
255                    return _mdrRuleGroupLocalService.getBeanIdentifier();
256            }
257    
258            /**
259            * Sets the Spring bean ID for this bean.
260            *
261            * @param beanIdentifier the Spring bean ID for this bean
262            */
263            public void setBeanIdentifier(java.lang.String beanIdentifier) {
264                    _mdrRuleGroupLocalService.setBeanIdentifier(beanIdentifier);
265            }
266    
267            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup addRuleGroup(
268                    long groupId,
269                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
270                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
271                    com.liferay.portal.service.ServiceContext serviceContext)
272                    throws com.liferay.portal.kernel.exception.PortalException,
273                            com.liferay.portal.kernel.exception.SystemException {
274                    return _mdrRuleGroupLocalService.addRuleGroup(groupId, nameMap,
275                            descriptionMap, serviceContext);
276            }
277    
278            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup copyRuleGroup(
279                    long ruleGroupId, long groupId,
280                    com.liferay.portal.service.ServiceContext serviceContext)
281                    throws com.liferay.portal.kernel.exception.PortalException,
282                            com.liferay.portal.kernel.exception.SystemException {
283                    return _mdrRuleGroupLocalService.copyRuleGroup(ruleGroupId, groupId,
284                            serviceContext);
285            }
286    
287            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup copyRuleGroup(
288                    com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup ruleGroup,
289                    long groupId, com.liferay.portal.service.ServiceContext serviceContext)
290                    throws com.liferay.portal.kernel.exception.PortalException,
291                            com.liferay.portal.kernel.exception.SystemException {
292                    return _mdrRuleGroupLocalService.copyRuleGroup(ruleGroup, groupId,
293                            serviceContext);
294            }
295    
296            public void deleteRuleGroup(long ruleGroupId)
297                    throws com.liferay.portal.kernel.exception.SystemException {
298                    _mdrRuleGroupLocalService.deleteRuleGroup(ruleGroupId);
299            }
300    
301            public void deleteRuleGroup(
302                    com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup ruleGroup)
303                    throws com.liferay.portal.kernel.exception.SystemException {
304                    _mdrRuleGroupLocalService.deleteRuleGroup(ruleGroup);
305            }
306    
307            public void deleteRuleGroups(long groupId)
308                    throws com.liferay.portal.kernel.exception.SystemException {
309                    _mdrRuleGroupLocalService.deleteRuleGroups(groupId);
310            }
311    
312            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup fetchRuleGroup(
313                    long ruleGroupId)
314                    throws com.liferay.portal.kernel.exception.SystemException {
315                    return _mdrRuleGroupLocalService.fetchRuleGroup(ruleGroupId);
316            }
317    
318            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup getRuleGroup(
319                    long ruleGroupId)
320                    throws com.liferay.portal.kernel.exception.PortalException,
321                            com.liferay.portal.kernel.exception.SystemException {
322                    return _mdrRuleGroupLocalService.getRuleGroup(ruleGroupId);
323            }
324    
325            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> getRuleGroups(
326                    long groupId)
327                    throws com.liferay.portal.kernel.exception.SystemException {
328                    return _mdrRuleGroupLocalService.getRuleGroups(groupId);
329            }
330    
331            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> getRuleGroups(
332                    long groupId, int start, int end)
333                    throws com.liferay.portal.kernel.exception.SystemException {
334                    return _mdrRuleGroupLocalService.getRuleGroups(groupId, start, end);
335            }
336    
337            public int getRuleGroupsCount(long groupId)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    return _mdrRuleGroupLocalService.getRuleGroupsCount(groupId);
340            }
341    
342            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> search(
343                    long groupId, java.lang.String name, boolean andOperator, int start,
344                    int end) throws com.liferay.portal.kernel.exception.SystemException {
345                    return _mdrRuleGroupLocalService.search(groupId, name, andOperator,
346                            start, end);
347            }
348    
349            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> searchByKeywords(
350                    long groupId, java.lang.String keywords, boolean andOperator,
351                    int start, int end)
352                    throws com.liferay.portal.kernel.exception.SystemException {
353                    return _mdrRuleGroupLocalService.searchByKeywords(groupId, keywords,
354                            andOperator, start, end);
355            }
356    
357            public int searchByKeywordsCount(long groupId, java.lang.String keywords,
358                    boolean andOperator)
359                    throws com.liferay.portal.kernel.exception.SystemException {
360                    return _mdrRuleGroupLocalService.searchByKeywordsCount(groupId,
361                            keywords, andOperator);
362            }
363    
364            public int searchCount(long groupId, java.lang.String name,
365                    boolean andOperator)
366                    throws com.liferay.portal.kernel.exception.SystemException {
367                    return _mdrRuleGroupLocalService.searchCount(groupId, name, andOperator);
368            }
369    
370            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup updateRuleGroup(
371                    long ruleGroupId,
372                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
373                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
374                    com.liferay.portal.service.ServiceContext serviceContext)
375                    throws com.liferay.portal.kernel.exception.PortalException,
376                            com.liferay.portal.kernel.exception.SystemException {
377                    return _mdrRuleGroupLocalService.updateRuleGroup(ruleGroupId, nameMap,
378                            descriptionMap, serviceContext);
379            }
380    
381            /**
382             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
383             */
384            public MDRRuleGroupLocalService getWrappedMDRRuleGroupLocalService() {
385                    return _mdrRuleGroupLocalService;
386            }
387    
388            /**
389             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
390             */
391            public void setWrappedMDRRuleGroupLocalService(
392                    MDRRuleGroupLocalService mdrRuleGroupLocalService) {
393                    _mdrRuleGroupLocalService = mdrRuleGroupLocalService;
394            }
395    
396            public MDRRuleGroupLocalService getWrappedService() {
397                    return _mdrRuleGroupLocalService;
398            }
399    
400            public void setWrappedService(
401                    MDRRuleGroupLocalService mdrRuleGroupLocalService) {
402                    _mdrRuleGroupLocalService = mdrRuleGroupLocalService;
403            }
404    
405            private MDRRuleGroupLocalService _mdrRuleGroupLocalService;
406    }