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