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.portal.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link ResourceActionLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       ResourceActionLocalService
024     * @generated
025     */
026    public class ResourceActionLocalServiceWrapper
027            implements ResourceActionLocalService,
028                    ServiceWrapper<ResourceActionLocalService> {
029            public ResourceActionLocalServiceWrapper(
030                    ResourceActionLocalService resourceActionLocalService) {
031                    _resourceActionLocalService = resourceActionLocalService;
032            }
033    
034            /**
035            * Adds the resource action to the database. Also notifies the appropriate model listeners.
036            *
037            * @param resourceAction the resource action
038            * @return the resource action that was added
039            * @throws SystemException if a system exception occurred
040            */
041            public com.liferay.portal.model.ResourceAction addResourceAction(
042                    com.liferay.portal.model.ResourceAction resourceAction)
043                    throws com.liferay.portal.kernel.exception.SystemException {
044                    return _resourceActionLocalService.addResourceAction(resourceAction);
045            }
046    
047            /**
048            * Creates a new resource action with the primary key. Does not add the resource action to the database.
049            *
050            * @param resourceActionId the primary key for the new resource action
051            * @return the new resource action
052            */
053            public com.liferay.portal.model.ResourceAction createResourceAction(
054                    long resourceActionId) {
055                    return _resourceActionLocalService.createResourceAction(resourceActionId);
056            }
057    
058            /**
059            * Deletes the resource action with the primary key from the database. Also notifies the appropriate model listeners.
060            *
061            * @param resourceActionId the primary key of the resource action
062            * @throws PortalException if a resource action with the primary key could not be found
063            * @throws SystemException if a system exception occurred
064            */
065            public void deleteResourceAction(long resourceActionId)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException {
068                    _resourceActionLocalService.deleteResourceAction(resourceActionId);
069            }
070    
071            /**
072            * Deletes the resource action from the database. Also notifies the appropriate model listeners.
073            *
074            * @param resourceAction the resource action
075            * @throws SystemException if a system exception occurred
076            */
077            public void deleteResourceAction(
078                    com.liferay.portal.model.ResourceAction resourceAction)
079                    throws com.liferay.portal.kernel.exception.SystemException {
080                    _resourceActionLocalService.deleteResourceAction(resourceAction);
081            }
082    
083            /**
084            * Performs a dynamic query on the database and returns the matching rows.
085            *
086            * @param dynamicQuery the dynamic query
087            * @return the matching rows
088            * @throws SystemException if a system exception occurred
089            */
090            @SuppressWarnings("rawtypes")
091            public java.util.List dynamicQuery(
092                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
093                    throws com.liferay.portal.kernel.exception.SystemException {
094                    return _resourceActionLocalService.dynamicQuery(dynamicQuery);
095            }
096    
097            /**
098            * Performs a dynamic query on the database and returns a range of the matching rows.
099            *
100            * <p>
101            * 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.
102            * </p>
103            *
104            * @param dynamicQuery the dynamic query
105            * @param start the lower bound of the range of model instances
106            * @param end the upper bound of the range of model instances (not inclusive)
107            * @return the range of matching rows
108            * @throws SystemException if a system exception occurred
109            */
110            @SuppressWarnings("rawtypes")
111            public java.util.List dynamicQuery(
112                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
113                    int end) throws com.liferay.portal.kernel.exception.SystemException {
114                    return _resourceActionLocalService.dynamicQuery(dynamicQuery, start, end);
115            }
116    
117            /**
118            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
119            *
120            * <p>
121            * 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.
122            * </p>
123            *
124            * @param dynamicQuery the dynamic query
125            * @param start the lower bound of the range of model instances
126            * @param end the upper bound of the range of model instances (not inclusive)
127            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
128            * @return the ordered range of matching rows
129            * @throws SystemException if a system exception occurred
130            */
131            @SuppressWarnings("rawtypes")
132            public java.util.List dynamicQuery(
133                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
134                    int end,
135                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136                    throws com.liferay.portal.kernel.exception.SystemException {
137                    return _resourceActionLocalService.dynamicQuery(dynamicQuery, start,
138                            end, orderByComparator);
139            }
140    
141            /**
142            * Returns the number of rows that match the dynamic query.
143            *
144            * @param dynamicQuery the dynamic query
145            * @return the number of rows that match the dynamic query
146            * @throws SystemException if a system exception occurred
147            */
148            public long dynamicQueryCount(
149                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
150                    throws com.liferay.portal.kernel.exception.SystemException {
151                    return _resourceActionLocalService.dynamicQueryCount(dynamicQuery);
152            }
153    
154            public com.liferay.portal.model.ResourceAction fetchResourceAction(
155                    long resourceActionId)
156                    throws com.liferay.portal.kernel.exception.SystemException {
157                    return _resourceActionLocalService.fetchResourceAction(resourceActionId);
158            }
159    
160            /**
161            * Returns the resource action with the primary key.
162            *
163            * @param resourceActionId the primary key of the resource action
164            * @return the resource action
165            * @throws PortalException if a resource action with the primary key could not be found
166            * @throws SystemException if a system exception occurred
167            */
168            public com.liferay.portal.model.ResourceAction getResourceAction(
169                    long resourceActionId)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException {
172                    return _resourceActionLocalService.getResourceAction(resourceActionId);
173            }
174    
175            public com.liferay.portal.model.PersistedModel getPersistedModel(
176                    java.io.Serializable primaryKeyObj)
177                    throws com.liferay.portal.kernel.exception.PortalException,
178                            com.liferay.portal.kernel.exception.SystemException {
179                    return _resourceActionLocalService.getPersistedModel(primaryKeyObj);
180            }
181    
182            /**
183            * Returns a range of all the resource actions.
184            *
185            * <p>
186            * 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.
187            * </p>
188            *
189            * @param start the lower bound of the range of resource actions
190            * @param end the upper bound of the range of resource actions (not inclusive)
191            * @return the range of resource actions
192            * @throws SystemException if a system exception occurred
193            */
194            public java.util.List<com.liferay.portal.model.ResourceAction> getResourceActions(
195                    int start, int end)
196                    throws com.liferay.portal.kernel.exception.SystemException {
197                    return _resourceActionLocalService.getResourceActions(start, end);
198            }
199    
200            /**
201            * Returns the number of resource actions.
202            *
203            * @return the number of resource actions
204            * @throws SystemException if a system exception occurred
205            */
206            public int getResourceActionsCount()
207                    throws com.liferay.portal.kernel.exception.SystemException {
208                    return _resourceActionLocalService.getResourceActionsCount();
209            }
210    
211            /**
212            * Updates the resource action in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
213            *
214            * @param resourceAction the resource action
215            * @return the resource action that was updated
216            * @throws SystemException if a system exception occurred
217            */
218            public com.liferay.portal.model.ResourceAction updateResourceAction(
219                    com.liferay.portal.model.ResourceAction resourceAction)
220                    throws com.liferay.portal.kernel.exception.SystemException {
221                    return _resourceActionLocalService.updateResourceAction(resourceAction);
222            }
223    
224            /**
225            * Updates the resource action in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
226            *
227            * @param resourceAction the resource action
228            * @param merge whether to merge the resource 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.
229            * @return the resource action that was updated
230            * @throws SystemException if a system exception occurred
231            */
232            public com.liferay.portal.model.ResourceAction updateResourceAction(
233                    com.liferay.portal.model.ResourceAction resourceAction, boolean merge)
234                    throws com.liferay.portal.kernel.exception.SystemException {
235                    return _resourceActionLocalService.updateResourceAction(resourceAction,
236                            merge);
237            }
238    
239            /**
240            * Returns the Spring bean ID for this bean.
241            *
242            * @return the Spring bean ID for this bean
243            */
244            public java.lang.String getBeanIdentifier() {
245                    return _resourceActionLocalService.getBeanIdentifier();
246            }
247    
248            /**
249            * Sets the Spring bean ID for this bean.
250            *
251            * @param beanIdentifier the Spring bean ID for this bean
252            */
253            public void setBeanIdentifier(java.lang.String beanIdentifier) {
254                    _resourceActionLocalService.setBeanIdentifier(beanIdentifier);
255            }
256    
257            public void checkResourceActions()
258                    throws com.liferay.portal.kernel.exception.SystemException {
259                    _resourceActionLocalService.checkResourceActions();
260            }
261    
262            public void checkResourceActions(java.lang.String name,
263                    java.util.List<java.lang.String> actionIds)
264                    throws com.liferay.portal.kernel.exception.SystemException {
265                    _resourceActionLocalService.checkResourceActions(name, actionIds);
266            }
267    
268            public void checkResourceActions(java.lang.String name,
269                    java.util.List<java.lang.String> actionIds, boolean addDefaultActions)
270                    throws com.liferay.portal.kernel.exception.SystemException {
271                    _resourceActionLocalService.checkResourceActions(name, actionIds,
272                            addDefaultActions);
273            }
274    
275            public com.liferay.portal.model.ResourceAction fetchResourceAction(
276                    java.lang.String name, java.lang.String actionId) {
277                    return _resourceActionLocalService.fetchResourceAction(name, actionId);
278            }
279    
280            public com.liferay.portal.model.ResourceAction getResourceAction(
281                    java.lang.String name, java.lang.String actionId)
282                    throws com.liferay.portal.kernel.exception.PortalException {
283                    return _resourceActionLocalService.getResourceAction(name, actionId);
284            }
285    
286            public java.util.List<com.liferay.portal.model.ResourceAction> getResourceActions(
287                    java.lang.String name)
288                    throws com.liferay.portal.kernel.exception.SystemException {
289                    return _resourceActionLocalService.getResourceActions(name);
290            }
291    
292            /**
293             * @deprecated Renamed to {@link #getWrappedService}
294             */
295            public ResourceActionLocalService getWrappedResourceActionLocalService() {
296                    return _resourceActionLocalService;
297            }
298    
299            /**
300             * @deprecated Renamed to {@link #setWrappedService}
301             */
302            public void setWrappedResourceActionLocalService(
303                    ResourceActionLocalService resourceActionLocalService) {
304                    _resourceActionLocalService = resourceActionLocalService;
305            }
306    
307            public ResourceActionLocalService getWrappedService() {
308                    return _resourceActionLocalService;
309            }
310    
311            public void setWrappedService(
312                    ResourceActionLocalService resourceActionLocalService) {
313                    _resourceActionLocalService = resourceActionLocalService;
314            }
315    
316            private ResourceActionLocalService _resourceActionLocalService;
317    }