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