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