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