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