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