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