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 MDRActionLocalService}.
022     * </p>
023     *
024     * @author    Edward C. Han
025     * @see       MDRActionLocalService
026     * @generated
027     */
028    public class MDRActionLocalServiceWrapper implements MDRActionLocalService,
029            ServiceWrapper<MDRActionLocalService> {
030            public MDRActionLocalServiceWrapper(
031                    MDRActionLocalService mdrActionLocalService) {
032                    _mdrActionLocalService = mdrActionLocalService;
033            }
034    
035            /**
036            * Adds the m d r action to the database. Also notifies the appropriate model listeners.
037            *
038            * @param mdrAction the m d r action
039            * @return the m d r action that was added
040            * @throws SystemException if a system exception occurred
041            */
042            public com.liferay.portlet.mobiledevicerules.model.MDRAction addMDRAction(
043                    com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction)
044                    throws com.liferay.portal.kernel.exception.SystemException {
045                    return _mdrActionLocalService.addMDRAction(mdrAction);
046            }
047    
048            /**
049            * Creates a new m d r action with the primary key. Does not add the m d r action to the database.
050            *
051            * @param actionId the primary key for the new m d r action
052            * @return the new m d r action
053            */
054            public com.liferay.portlet.mobiledevicerules.model.MDRAction createMDRAction(
055                    long actionId) {
056                    return _mdrActionLocalService.createMDRAction(actionId);
057            }
058    
059            /**
060            * Deletes the m d r action with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param actionId the primary key of the m d r action
063            * @throws PortalException if a m d r action with the primary key could not be found
064            * @throws SystemException if a system exception occurred
065            */
066            public void deleteMDRAction(long actionId)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    _mdrActionLocalService.deleteMDRAction(actionId);
070            }
071    
072            /**
073            * Deletes the m d r action from the database. Also notifies the appropriate model listeners.
074            *
075            * @param mdrAction the m d r action
076            * @throws SystemException if a system exception occurred
077            */
078            public void deleteMDRAction(
079                    com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction)
080                    throws com.liferay.portal.kernel.exception.SystemException {
081                    _mdrActionLocalService.deleteMDRAction(mdrAction);
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 _mdrActionLocalService.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 _mdrActionLocalService.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 _mdrActionLocalService.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 _mdrActionLocalService.dynamicQueryCount(dynamicQuery);
153            }
154    
155            public com.liferay.portlet.mobiledevicerules.model.MDRAction fetchMDRAction(
156                    long actionId)
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    return _mdrActionLocalService.fetchMDRAction(actionId);
159            }
160    
161            /**
162            * Returns the m d r action with the primary key.
163            *
164            * @param actionId the primary key of the m d r action
165            * @return the m d r action
166            * @throws PortalException if a m d r action with the primary key could not be found
167            * @throws SystemException if a system exception occurred
168            */
169            public com.liferay.portlet.mobiledevicerules.model.MDRAction getMDRAction(
170                    long actionId)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    return _mdrActionLocalService.getMDRAction(actionId);
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 _mdrActionLocalService.getPersistedModel(primaryKeyObj);
181            }
182    
183            /**
184            * Returns the m d r action with the UUID in the group.
185            *
186            * @param uuid the UUID of m d r action
187            * @param groupId the group id of the m d r action
188            * @return the m d r action
189            * @throws PortalException if a m d r action 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.MDRAction getMDRActionByUuidAndGroupId(
193                    java.lang.String uuid, long groupId)
194                    throws com.liferay.portal.kernel.exception.PortalException,
195                            com.liferay.portal.kernel.exception.SystemException {
196                    return _mdrActionLocalService.getMDRActionByUuidAndGroupId(uuid, groupId);
197            }
198    
199            /**
200            * Returns a range of all the m d r actions.
201            *
202            * <p>
203            * 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.
204            * </p>
205            *
206            * @param start the lower bound of the range of m d r actions
207            * @param end the upper bound of the range of m d r actions (not inclusive)
208            * @return the range of m d r actions
209            * @throws SystemException if a system exception occurred
210            */
211            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> getMDRActions(
212                    int start, int end)
213                    throws com.liferay.portal.kernel.exception.SystemException {
214                    return _mdrActionLocalService.getMDRActions(start, end);
215            }
216    
217            /**
218            * Returns the number of m d r actions.
219            *
220            * @return the number of m d r actions
221            * @throws SystemException if a system exception occurred
222            */
223            public int getMDRActionsCount()
224                    throws com.liferay.portal.kernel.exception.SystemException {
225                    return _mdrActionLocalService.getMDRActionsCount();
226            }
227    
228            /**
229            * Updates the m d r action in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
230            *
231            * @param mdrAction the m d r action
232            * @return the m d r action that was updated
233            * @throws SystemException if a system exception occurred
234            */
235            public com.liferay.portlet.mobiledevicerules.model.MDRAction updateMDRAction(
236                    com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction)
237                    throws com.liferay.portal.kernel.exception.SystemException {
238                    return _mdrActionLocalService.updateMDRAction(mdrAction);
239            }
240    
241            /**
242            * Updates the m d r action in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
243            *
244            * @param mdrAction the m d r action
245            * @param merge whether to merge the m d r action 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.
246            * @return the m d r action that was updated
247            * @throws SystemException if a system exception occurred
248            */
249            public com.liferay.portlet.mobiledevicerules.model.MDRAction updateMDRAction(
250                    com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction,
251                    boolean merge)
252                    throws com.liferay.portal.kernel.exception.SystemException {
253                    return _mdrActionLocalService.updateMDRAction(mdrAction, merge);
254            }
255    
256            /**
257            * Returns the Spring bean ID for this bean.
258            *
259            * @return the Spring bean ID for this bean
260            */
261            public java.lang.String getBeanIdentifier() {
262                    return _mdrActionLocalService.getBeanIdentifier();
263            }
264    
265            /**
266            * Sets the Spring bean ID for this bean.
267            *
268            * @param beanIdentifier the Spring bean ID for this bean
269            */
270            public void setBeanIdentifier(java.lang.String beanIdentifier) {
271                    _mdrActionLocalService.setBeanIdentifier(beanIdentifier);
272            }
273    
274            public com.liferay.portlet.mobiledevicerules.model.MDRAction addAction(
275                    long ruleGroupInstanceId,
276                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
277                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
278                    java.lang.String type, java.lang.String typeSettings,
279                    com.liferay.portal.service.ServiceContext serviceContext)
280                    throws com.liferay.portal.kernel.exception.PortalException,
281                            com.liferay.portal.kernel.exception.SystemException {
282                    return _mdrActionLocalService.addAction(ruleGroupInstanceId, nameMap,
283                            descriptionMap, type, typeSettings, serviceContext);
284            }
285    
286            public com.liferay.portlet.mobiledevicerules.model.MDRAction addAction(
287                    long ruleGroupInstanceId,
288                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
289                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
290                    java.lang.String type,
291                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
292                    com.liferay.portal.service.ServiceContext serviceContext)
293                    throws com.liferay.portal.kernel.exception.PortalException,
294                            com.liferay.portal.kernel.exception.SystemException {
295                    return _mdrActionLocalService.addAction(ruleGroupInstanceId, nameMap,
296                            descriptionMap, type, typeSettingsProperties, serviceContext);
297            }
298    
299            public void deleteAction(long actionId)
300                    throws com.liferay.portal.kernel.exception.SystemException {
301                    _mdrActionLocalService.deleteAction(actionId);
302            }
303    
304            public void deleteAction(
305                    com.liferay.portlet.mobiledevicerules.model.MDRAction action)
306                    throws com.liferay.portal.kernel.exception.SystemException {
307                    _mdrActionLocalService.deleteAction(action);
308            }
309    
310            public void deleteActions(long ruleGroupInstanceId)
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    _mdrActionLocalService.deleteActions(ruleGroupInstanceId);
313            }
314    
315            public com.liferay.portlet.mobiledevicerules.model.MDRAction fetchAction(
316                    long actionId)
317                    throws com.liferay.portal.kernel.exception.SystemException {
318                    return _mdrActionLocalService.fetchAction(actionId);
319            }
320    
321            public com.liferay.portlet.mobiledevicerules.model.MDRAction getAction(
322                    long actionId)
323                    throws com.liferay.portal.kernel.exception.PortalException,
324                            com.liferay.portal.kernel.exception.SystemException {
325                    return _mdrActionLocalService.getAction(actionId);
326            }
327    
328            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> getActions(
329                    long ruleGroupInstanceId)
330                    throws com.liferay.portal.kernel.exception.SystemException {
331                    return _mdrActionLocalService.getActions(ruleGroupInstanceId);
332            }
333    
334            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> getActions(
335                    long ruleGroupInstanceId, int start, int end)
336                    throws com.liferay.portal.kernel.exception.SystemException {
337                    return _mdrActionLocalService.getActions(ruleGroupInstanceId, start, end);
338            }
339    
340            public int getActionsCount(long ruleGroupInstanceId)
341                    throws com.liferay.portal.kernel.exception.SystemException {
342                    return _mdrActionLocalService.getActionsCount(ruleGroupInstanceId);
343            }
344    
345            public com.liferay.portlet.mobiledevicerules.model.MDRAction updateAction(
346                    long actionId,
347                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
348                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
349                    java.lang.String type, java.lang.String typeSettings,
350                    com.liferay.portal.service.ServiceContext serviceContext)
351                    throws com.liferay.portal.kernel.exception.PortalException,
352                            com.liferay.portal.kernel.exception.SystemException {
353                    return _mdrActionLocalService.updateAction(actionId, nameMap,
354                            descriptionMap, type, typeSettings, serviceContext);
355            }
356    
357            public com.liferay.portlet.mobiledevicerules.model.MDRAction updateAction(
358                    long actionId,
359                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
360                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
361                    java.lang.String type,
362                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
363                    com.liferay.portal.service.ServiceContext serviceContext)
364                    throws com.liferay.portal.kernel.exception.PortalException,
365                            com.liferay.portal.kernel.exception.SystemException {
366                    return _mdrActionLocalService.updateAction(actionId, nameMap,
367                            descriptionMap, type, typeSettingsProperties, serviceContext);
368            }
369    
370            /**
371             * @deprecated Renamed to {@link #getWrappedService}
372             */
373            public MDRActionLocalService getWrappedMDRActionLocalService() {
374                    return _mdrActionLocalService;
375            }
376    
377            /**
378             * @deprecated Renamed to {@link #setWrappedService}
379             */
380            public void setWrappedMDRActionLocalService(
381                    MDRActionLocalService mdrActionLocalService) {
382                    _mdrActionLocalService = mdrActionLocalService;
383            }
384    
385            public MDRActionLocalService getWrappedService() {
386                    return _mdrActionLocalService;
387            }
388    
389            public void setWrappedService(MDRActionLocalService mdrActionLocalService) {
390                    _mdrActionLocalService = mdrActionLocalService;
391            }
392    
393            private MDRActionLocalService _mdrActionLocalService;
394    }