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 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            * @return the m d r action that was removed
064            * @throws PortalException if a m d r action with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public com.liferay.portlet.mobiledevicerules.model.MDRAction deleteMDRAction(
068                    long actionId)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return _mdrActionLocalService.deleteMDRAction(actionId);
072            }
073    
074            /**
075            * Deletes the m d r action from the database. Also notifies the appropriate model listeners.
076            *
077            * @param mdrAction the m d r action
078            * @return the m d r action that was removed
079            * @throws SystemException if a system exception occurred
080            */
081            public com.liferay.portlet.mobiledevicerules.model.MDRAction deleteMDRAction(
082                    com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction)
083                    throws com.liferay.portal.kernel.exception.SystemException {
084                    return _mdrActionLocalService.deleteMDRAction(mdrAction);
085            }
086    
087            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
088                    return _mdrActionLocalService.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 _mdrActionLocalService.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 _mdrActionLocalService.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 _mdrActionLocalService.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 _mdrActionLocalService.dynamicQueryCount(dynamicQuery);
160            }
161    
162            public com.liferay.portlet.mobiledevicerules.model.MDRAction fetchMDRAction(
163                    long actionId)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return _mdrActionLocalService.fetchMDRAction(actionId);
166            }
167    
168            /**
169            * Returns the m d r action with the primary key.
170            *
171            * @param actionId the primary key of the m d r action
172            * @return the m d r action
173            * @throws PortalException if a m d r action with the primary key could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public com.liferay.portlet.mobiledevicerules.model.MDRAction getMDRAction(
177                    long actionId)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _mdrActionLocalService.getMDRAction(actionId);
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 _mdrActionLocalService.getPersistedModel(primaryKeyObj);
188            }
189    
190            /**
191            * Returns the m d r action with the UUID in the group.
192            *
193            * @param uuid the UUID of m d r action
194            * @param groupId the group id of the m d r action
195            * @return the m d r action
196            * @throws PortalException if a m d r action 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.MDRAction getMDRActionByUuidAndGroupId(
200                    java.lang.String uuid, long groupId)
201                    throws com.liferay.portal.kernel.exception.PortalException,
202                            com.liferay.portal.kernel.exception.SystemException {
203                    return _mdrActionLocalService.getMDRActionByUuidAndGroupId(uuid, groupId);
204            }
205    
206            /**
207            * Returns a range of all the m d r actions.
208            *
209            * <p>
210            * 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.
211            * </p>
212            *
213            * @param start the lower bound of the range of m d r actions
214            * @param end the upper bound of the range of m d r actions (not inclusive)
215            * @return the range of m d r actions
216            * @throws SystemException if a system exception occurred
217            */
218            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> getMDRActions(
219                    int start, int end)
220                    throws com.liferay.portal.kernel.exception.SystemException {
221                    return _mdrActionLocalService.getMDRActions(start, end);
222            }
223    
224            /**
225            * Returns the number of m d r actions.
226            *
227            * @return the number of m d r actions
228            * @throws SystemException if a system exception occurred
229            */
230            public int getMDRActionsCount()
231                    throws com.liferay.portal.kernel.exception.SystemException {
232                    return _mdrActionLocalService.getMDRActionsCount();
233            }
234    
235            /**
236            * Updates the m d r action in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
237            *
238            * @param mdrAction the m d r action
239            * @return the m d r action that was updated
240            * @throws SystemException if a system exception occurred
241            */
242            public com.liferay.portlet.mobiledevicerules.model.MDRAction updateMDRAction(
243                    com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction)
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    return _mdrActionLocalService.updateMDRAction(mdrAction);
246            }
247    
248            /**
249            * Updates the m d r action in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
250            *
251            * @param mdrAction the m d r action
252            * @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.
253            * @return the m d r action that was updated
254            * @throws SystemException if a system exception occurred
255            */
256            public com.liferay.portlet.mobiledevicerules.model.MDRAction updateMDRAction(
257                    com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction,
258                    boolean merge)
259                    throws com.liferay.portal.kernel.exception.SystemException {
260                    return _mdrActionLocalService.updateMDRAction(mdrAction, merge);
261            }
262    
263            /**
264            * Returns the Spring bean ID for this bean.
265            *
266            * @return the Spring bean ID for this bean
267            */
268            public java.lang.String getBeanIdentifier() {
269                    return _mdrActionLocalService.getBeanIdentifier();
270            }
271    
272            /**
273            * Sets the Spring bean ID for this bean.
274            *
275            * @param beanIdentifier the Spring bean ID for this bean
276            */
277            public void setBeanIdentifier(java.lang.String beanIdentifier) {
278                    _mdrActionLocalService.setBeanIdentifier(beanIdentifier);
279            }
280    
281            public com.liferay.portlet.mobiledevicerules.model.MDRAction addAction(
282                    long ruleGroupInstanceId,
283                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
284                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
285                    java.lang.String type, java.lang.String typeSettings,
286                    com.liferay.portal.service.ServiceContext serviceContext)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    return _mdrActionLocalService.addAction(ruleGroupInstanceId, nameMap,
290                            descriptionMap, type, typeSettings, serviceContext);
291            }
292    
293            public com.liferay.portlet.mobiledevicerules.model.MDRAction addAction(
294                    long ruleGroupInstanceId,
295                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
296                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
297                    java.lang.String type,
298                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
299                    com.liferay.portal.service.ServiceContext serviceContext)
300                    throws com.liferay.portal.kernel.exception.PortalException,
301                            com.liferay.portal.kernel.exception.SystemException {
302                    return _mdrActionLocalService.addAction(ruleGroupInstanceId, nameMap,
303                            descriptionMap, type, typeSettingsProperties, serviceContext);
304            }
305    
306            public void deleteAction(long actionId)
307                    throws com.liferay.portal.kernel.exception.SystemException {
308                    _mdrActionLocalService.deleteAction(actionId);
309            }
310    
311            public void deleteAction(
312                    com.liferay.portlet.mobiledevicerules.model.MDRAction action)
313                    throws com.liferay.portal.kernel.exception.SystemException {
314                    _mdrActionLocalService.deleteAction(action);
315            }
316    
317            public void deleteActions(long ruleGroupInstanceId)
318                    throws com.liferay.portal.kernel.exception.SystemException {
319                    _mdrActionLocalService.deleteActions(ruleGroupInstanceId);
320            }
321    
322            public com.liferay.portlet.mobiledevicerules.model.MDRAction fetchAction(
323                    long actionId)
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    return _mdrActionLocalService.fetchAction(actionId);
326            }
327    
328            public com.liferay.portlet.mobiledevicerules.model.MDRAction getAction(
329                    long actionId)
330                    throws com.liferay.portal.kernel.exception.PortalException,
331                            com.liferay.portal.kernel.exception.SystemException {
332                    return _mdrActionLocalService.getAction(actionId);
333            }
334    
335            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> getActions(
336                    long ruleGroupInstanceId)
337                    throws com.liferay.portal.kernel.exception.SystemException {
338                    return _mdrActionLocalService.getActions(ruleGroupInstanceId);
339            }
340    
341            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> getActions(
342                    long ruleGroupInstanceId, int start, int end)
343                    throws com.liferay.portal.kernel.exception.SystemException {
344                    return _mdrActionLocalService.getActions(ruleGroupInstanceId, start, end);
345            }
346    
347            public int getActionsCount(long ruleGroupInstanceId)
348                    throws com.liferay.portal.kernel.exception.SystemException {
349                    return _mdrActionLocalService.getActionsCount(ruleGroupInstanceId);
350            }
351    
352            public com.liferay.portlet.mobiledevicerules.model.MDRAction updateAction(
353                    long actionId,
354                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
355                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
356                    java.lang.String type, java.lang.String typeSettings,
357                    com.liferay.portal.service.ServiceContext serviceContext)
358                    throws com.liferay.portal.kernel.exception.PortalException,
359                            com.liferay.portal.kernel.exception.SystemException {
360                    return _mdrActionLocalService.updateAction(actionId, nameMap,
361                            descriptionMap, type, typeSettings, serviceContext);
362            }
363    
364            public com.liferay.portlet.mobiledevicerules.model.MDRAction updateAction(
365                    long actionId,
366                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
367                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
368                    java.lang.String type,
369                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
370                    com.liferay.portal.service.ServiceContext serviceContext)
371                    throws com.liferay.portal.kernel.exception.PortalException,
372                            com.liferay.portal.kernel.exception.SystemException {
373                    return _mdrActionLocalService.updateAction(actionId, nameMap,
374                            descriptionMap, type, typeSettingsProperties, serviceContext);
375            }
376    
377            /**
378             * @deprecated Renamed to {@link #getWrappedService}
379             */
380            public MDRActionLocalService getWrappedMDRActionLocalService() {
381                    return _mdrActionLocalService;
382            }
383    
384            /**
385             * @deprecated Renamed to {@link #setWrappedService}
386             */
387            public void setWrappedMDRActionLocalService(
388                    MDRActionLocalService mdrActionLocalService) {
389                    _mdrActionLocalService = mdrActionLocalService;
390            }
391    
392            public MDRActionLocalService getWrappedService() {
393                    return _mdrActionLocalService;
394            }
395    
396            public void setWrappedService(MDRActionLocalService mdrActionLocalService) {
397                    _mdrActionLocalService = mdrActionLocalService;
398            }
399    
400            private MDRActionLocalService _mdrActionLocalService;
401    }