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            /**
214            * Returns the OSGi service identifier.
215            *
216            * @return the OSGi service identifier
217            */
218            @Override
219            public java.lang.String getOSGiServiceIdentifier() {
220                    return _resourceTypePermissionLocalService.getOSGiServiceIdentifier();
221            }
222    
223            @Override
224            public com.liferay.portal.model.PersistedModel getPersistedModel(
225                    java.io.Serializable primaryKeyObj)
226                    throws com.liferay.portal.kernel.exception.PortalException {
227                    return _resourceTypePermissionLocalService.getPersistedModel(primaryKeyObj);
228            }
229    
230            @Override
231            public com.liferay.portal.model.ResourceBlockPermissionsContainer getResourceBlockPermissionsContainer(
232                    long companyId, long groupId, java.lang.String name) {
233                    return _resourceTypePermissionLocalService.getResourceBlockPermissionsContainer(companyId,
234                            groupId, name);
235            }
236    
237            /**
238            * Returns the resource type permission with the primary key.
239            *
240            * @param resourceTypePermissionId the primary key of the resource type permission
241            * @return the resource type permission
242            * @throws PortalException if a resource type permission with the primary key could not be found
243            */
244            @Override
245            public com.liferay.portal.model.ResourceTypePermission getResourceTypePermission(
246                    long resourceTypePermissionId)
247                    throws com.liferay.portal.kernel.exception.PortalException {
248                    return _resourceTypePermissionLocalService.getResourceTypePermission(resourceTypePermissionId);
249            }
250    
251            /**
252            * Returns a range of all the resource type permissions.
253            *
254            * <p>
255            * 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.
256            * </p>
257            *
258            * @param start the lower bound of the range of resource type permissions
259            * @param end the upper bound of the range of resource type permissions (not inclusive)
260            * @return the range of resource type permissions
261            */
262            @Override
263            public java.util.List<com.liferay.portal.model.ResourceTypePermission> getResourceTypePermissions(
264                    int start, int end) {
265                    return _resourceTypePermissionLocalService.getResourceTypePermissions(start,
266                            end);
267            }
268    
269            /**
270            * Returns the number of resource type permissions.
271            *
272            * @return the number of resource type permissions
273            */
274            @Override
275            public int getResourceTypePermissionsCount() {
276                    return _resourceTypePermissionLocalService.getResourceTypePermissionsCount();
277            }
278    
279            @Override
280            public java.util.List<com.liferay.portal.model.ResourceTypePermission> getRoleResourceTypePermissions(
281                    long roleId) {
282                    return _resourceTypePermissionLocalService.getRoleResourceTypePermissions(roleId);
283            }
284    
285            @Override
286            public boolean hasCompanyScopePermission(long companyId,
287                    java.lang.String name, long roleId, java.lang.String actionId)
288                    throws com.liferay.portal.kernel.exception.PortalException {
289                    return _resourceTypePermissionLocalService.hasCompanyScopePermission(companyId,
290                            name, roleId, actionId);
291            }
292    
293            @Override
294            public boolean hasEitherScopePermission(long companyId,
295                    java.lang.String name, long roleId, java.lang.String actionId)
296                    throws com.liferay.portal.kernel.exception.PortalException {
297                    return _resourceTypePermissionLocalService.hasEitherScopePermission(companyId,
298                            name, roleId, actionId);
299            }
300    
301            @Override
302            public boolean hasGroupScopePermission(long companyId, long groupId,
303                    java.lang.String name, long roleId, java.lang.String actionId)
304                    throws com.liferay.portal.kernel.exception.PortalException {
305                    return _resourceTypePermissionLocalService.hasGroupScopePermission(companyId,
306                            groupId, name, roleId, actionId);
307            }
308    
309            @Override
310            public void updateCompanyScopeResourceTypePermissions(long companyId,
311                    java.lang.String name, long roleId, long actionIdsLong, long operator) {
312                    _resourceTypePermissionLocalService.updateCompanyScopeResourceTypePermissions(companyId,
313                            name, roleId, actionIdsLong, operator);
314            }
315    
316            @Override
317            public void updateGroupScopeResourceTypePermissions(long companyId,
318                    long groupId, java.lang.String name, long roleId, long actionIdsLong,
319                    long operator) {
320                    _resourceTypePermissionLocalService.updateGroupScopeResourceTypePermissions(companyId,
321                            groupId, name, roleId, actionIdsLong, operator);
322            }
323    
324            /**
325            * Updates the resource type permission in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
326            *
327            * @param resourceTypePermission the resource type permission
328            * @return the resource type permission that was updated
329            */
330            @Override
331            public com.liferay.portal.model.ResourceTypePermission updateResourceTypePermission(
332                    com.liferay.portal.model.ResourceTypePermission resourceTypePermission) {
333                    return _resourceTypePermissionLocalService.updateResourceTypePermission(resourceTypePermission);
334            }
335    
336            /**
337             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
338             */
339            @Deprecated
340            public ResourceTypePermissionLocalService getWrappedResourceTypePermissionLocalService() {
341                    return _resourceTypePermissionLocalService;
342            }
343    
344            /**
345             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
346             */
347            @Deprecated
348            public void setWrappedResourceTypePermissionLocalService(
349                    ResourceTypePermissionLocalService resourceTypePermissionLocalService) {
350                    _resourceTypePermissionLocalService = resourceTypePermissionLocalService;
351            }
352    
353            @Override
354            public ResourceTypePermissionLocalService getWrappedService() {
355                    return _resourceTypePermissionLocalService;
356            }
357    
358            @Override
359            public void setWrappedService(
360                    ResourceTypePermissionLocalService resourceTypePermissionLocalService) {
361                    _resourceTypePermissionLocalService = resourceTypePermissionLocalService;
362            }
363    
364            private ResourceTypePermissionLocalService _resourceTypePermissionLocalService;
365    }