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