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            @Override
229            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
230                    return _resourceBlockPermissionLocalService.getIndexableActionableDynamicQuery();
231            }
232    
233            /**
234            * Returns the OSGi service identifier.
235            *
236            * @return the OSGi service identifier
237            */
238            @Override
239            public java.lang.String getOSGiServiceIdentifier() {
240                    return _resourceBlockPermissionLocalService.getOSGiServiceIdentifier();
241            }
242    
243            @Override
244            public com.liferay.portal.model.PersistedModel getPersistedModel(
245                    java.io.Serializable primaryKeyObj)
246                    throws com.liferay.portal.kernel.exception.PortalException {
247                    return _resourceBlockPermissionLocalService.getPersistedModel(primaryKeyObj);
248            }
249    
250            /**
251            * Returns the resource block permission with the primary key.
252            *
253            * @param resourceBlockPermissionId the primary key of the resource block permission
254            * @return the resource block permission
255            * @throws PortalException if a resource block permission with the primary key could not be found
256            */
257            @Override
258            public com.liferay.portal.model.ResourceBlockPermission getResourceBlockPermission(
259                    long resourceBlockPermissionId)
260                    throws com.liferay.portal.kernel.exception.PortalException {
261                    return _resourceBlockPermissionLocalService.getResourceBlockPermission(resourceBlockPermissionId);
262            }
263    
264            /**
265            * Returns a range of all the resource block permissions.
266            *
267            * <p>
268            * 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.
269            * </p>
270            *
271            * @param start the lower bound of the range of resource block permissions
272            * @param end the upper bound of the range of resource block permissions (not inclusive)
273            * @return the range of resource block permissions
274            */
275            @Override
276            public java.util.List<com.liferay.portal.model.ResourceBlockPermission> getResourceBlockPermissions(
277                    int start, int end) {
278                    return _resourceBlockPermissionLocalService.getResourceBlockPermissions(start,
279                            end);
280            }
281    
282            @Override
283            public com.liferay.portal.model.ResourceBlockPermissionsContainer getResourceBlockPermissionsContainer(
284                    long resourceBlockId) {
285                    return _resourceBlockPermissionLocalService.getResourceBlockPermissionsContainer(resourceBlockId);
286            }
287    
288            /**
289            * Returns the number of resource block permissions.
290            *
291            * @return the number of resource block permissions
292            */
293            @Override
294            public int getResourceBlockPermissionsCount() {
295                    return _resourceBlockPermissionLocalService.getResourceBlockPermissionsCount();
296            }
297    
298            @Override
299            public int getResourceBlockPermissionsCount(long resourceBlockId,
300                    long roleId) {
301                    return _resourceBlockPermissionLocalService.getResourceBlockPermissionsCount(resourceBlockId,
302                            roleId);
303            }
304    
305            @Override
306            public void updateResourceBlockPermission(long resourceBlockId,
307                    long roleId, long actionIdsLong, int operator) {
308                    _resourceBlockPermissionLocalService.updateResourceBlockPermission(resourceBlockId,
309                            roleId, actionIdsLong, operator);
310            }
311    
312            /**
313            * Updates the resource block permission in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
314            *
315            * @param resourceBlockPermission the resource block permission
316            * @return the resource block permission that was updated
317            */
318            @Override
319            public com.liferay.portal.model.ResourceBlockPermission updateResourceBlockPermission(
320                    com.liferay.portal.model.ResourceBlockPermission resourceBlockPermission) {
321                    return _resourceBlockPermissionLocalService.updateResourceBlockPermission(resourceBlockPermission);
322            }
323    
324            @Override
325            public ResourceBlockPermissionLocalService getWrappedService() {
326                    return _resourceBlockPermissionLocalService;
327            }
328    
329            @Override
330            public void setWrappedService(
331                    ResourceBlockPermissionLocalService resourceBlockPermissionLocalService) {
332                    _resourceBlockPermissionLocalService = resourceBlockPermissionLocalService;
333            }
334    
335            private ResourceBlockPermissionLocalService _resourceBlockPermissionLocalService;
336    }