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 ResourceBlockPermissionLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       ResourceBlockPermissionLocalService
024     * @generated
025     */
026    public class ResourceBlockPermissionLocalServiceWrapper
027            implements ResourceBlockPermissionLocalService,
028                    ServiceWrapper<ResourceBlockPermissionLocalService> {
029            public ResourceBlockPermissionLocalServiceWrapper(
030                    ResourceBlockPermissionLocalService resourceBlockPermissionLocalService) {
031                    _resourceBlockPermissionLocalService = resourceBlockPermissionLocalService;
032            }
033    
034            /**
035            * Adds the resource block permission to the database. Also notifies the appropriate model listeners.
036            *
037            * @param resourceBlockPermission the resource block permission
038            * @return the resource block permission that was added
039            * @throws SystemException if a system exception occurred
040            */
041            public com.liferay.portal.model.ResourceBlockPermission addResourceBlockPermission(
042                    com.liferay.portal.model.ResourceBlockPermission resourceBlockPermission)
043                    throws com.liferay.portal.kernel.exception.SystemException {
044                    return _resourceBlockPermissionLocalService.addResourceBlockPermission(resourceBlockPermission);
045            }
046    
047            /**
048            * Creates a new resource block permission with the primary key. Does not add the resource block permission to the database.
049            *
050            * @param resourceBlockPermissionId the primary key for the new resource block permission
051            * @return the new resource block permission
052            */
053            public com.liferay.portal.model.ResourceBlockPermission createResourceBlockPermission(
054                    long resourceBlockPermissionId) {
055                    return _resourceBlockPermissionLocalService.createResourceBlockPermission(resourceBlockPermissionId);
056            }
057    
058            /**
059            * Deletes the resource block permission with the primary key from the database. Also notifies the appropriate model listeners.
060            *
061            * @param resourceBlockPermissionId the primary key of the resource block permission
062            * @throws PortalException if a resource block permission with the primary key could not be found
063            * @throws SystemException if a system exception occurred
064            */
065            public void deleteResourceBlockPermission(long resourceBlockPermissionId)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException {
068                    _resourceBlockPermissionLocalService.deleteResourceBlockPermission(resourceBlockPermissionId);
069            }
070    
071            /**
072            * Deletes the resource block permission from the database. Also notifies the appropriate model listeners.
073            *
074            * @param resourceBlockPermission the resource block permission
075            * @throws SystemException if a system exception occurred
076            */
077            public void deleteResourceBlockPermission(
078                    com.liferay.portal.model.ResourceBlockPermission resourceBlockPermission)
079                    throws com.liferay.portal.kernel.exception.SystemException {
080                    _resourceBlockPermissionLocalService.deleteResourceBlockPermission(resourceBlockPermission);
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 _resourceBlockPermissionLocalService.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 _resourceBlockPermissionLocalService.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 _resourceBlockPermissionLocalService.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 _resourceBlockPermissionLocalService.dynamicQueryCount(dynamicQuery);
153            }
154    
155            public com.liferay.portal.model.ResourceBlockPermission fetchResourceBlockPermission(
156                    long resourceBlockPermissionId)
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    return _resourceBlockPermissionLocalService.fetchResourceBlockPermission(resourceBlockPermissionId);
159            }
160    
161            /**
162            * Returns the resource block permission with the primary key.
163            *
164            * @param resourceBlockPermissionId the primary key of the resource block permission
165            * @return the resource block permission
166            * @throws PortalException if a resource block permission with the primary key could not be found
167            * @throws SystemException if a system exception occurred
168            */
169            public com.liferay.portal.model.ResourceBlockPermission getResourceBlockPermission(
170                    long resourceBlockPermissionId)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    return _resourceBlockPermissionLocalService.getResourceBlockPermission(resourceBlockPermissionId);
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 _resourceBlockPermissionLocalService.getPersistedModel(primaryKeyObj);
181            }
182    
183            /**
184            * Returns a range of all the resource block 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 block permissions
191            * @param end the upper bound of the range of resource block permissions (not inclusive)
192            * @return the range of resource block permissions
193            * @throws SystemException if a system exception occurred
194            */
195            public java.util.List<com.liferay.portal.model.ResourceBlockPermission> getResourceBlockPermissions(
196                    int start, int end)
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return _resourceBlockPermissionLocalService.getResourceBlockPermissions(start,
199                            end);
200            }
201    
202            /**
203            * Returns the number of resource block permissions.
204            *
205            * @return the number of resource block permissions
206            * @throws SystemException if a system exception occurred
207            */
208            public int getResourceBlockPermissionsCount()
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    return _resourceBlockPermissionLocalService.getResourceBlockPermissionsCount();
211            }
212    
213            /**
214            * Updates the resource block permission in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
215            *
216            * @param resourceBlockPermission the resource block permission
217            * @return the resource block permission that was updated
218            * @throws SystemException if a system exception occurred
219            */
220            public com.liferay.portal.model.ResourceBlockPermission updateResourceBlockPermission(
221                    com.liferay.portal.model.ResourceBlockPermission resourceBlockPermission)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return _resourceBlockPermissionLocalService.updateResourceBlockPermission(resourceBlockPermission);
224            }
225    
226            /**
227            * Updates the resource block permission in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
228            *
229            * @param resourceBlockPermission the resource block permission
230            * @param merge whether to merge the resource block 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 block permission that was updated
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portal.model.ResourceBlockPermission updateResourceBlockPermission(
235                    com.liferay.portal.model.ResourceBlockPermission resourceBlockPermission,
236                    boolean merge)
237                    throws com.liferay.portal.kernel.exception.SystemException {
238                    return _resourceBlockPermissionLocalService.updateResourceBlockPermission(resourceBlockPermission,
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 _resourceBlockPermissionLocalService.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                    _resourceBlockPermissionLocalService.setBeanIdentifier(beanIdentifier);
258            }
259    
260            public void addResourceBlockPermissions(long resourceBlockId,
261                    com.liferay.portal.model.ResourceBlockPermissionsContainer resourceBlockPermissionsContainer)
262                    throws com.liferay.portal.kernel.exception.SystemException {
263                    _resourceBlockPermissionLocalService.addResourceBlockPermissions(resourceBlockId,
264                            resourceBlockPermissionsContainer);
265            }
266    
267            public void deleteResourceBlockPermissions(long resourceBlockId)
268                    throws com.liferay.portal.kernel.exception.SystemException {
269                    _resourceBlockPermissionLocalService.deleteResourceBlockPermissions(resourceBlockId);
270            }
271    
272            public com.liferay.portal.model.ResourceBlockPermissionsContainer getResourceBlockPermissionsContainer(
273                    long resourceBlockId)
274                    throws com.liferay.portal.kernel.exception.SystemException {
275                    return _resourceBlockPermissionLocalService.getResourceBlockPermissionsContainer(resourceBlockId);
276            }
277    
278            public void updateResourceBlockPermission(long resourceBlockId,
279                    long roleId, long actionIdsLong, int operator)
280                    throws com.liferay.portal.kernel.exception.SystemException {
281                    _resourceBlockPermissionLocalService.updateResourceBlockPermission(resourceBlockId,
282                            roleId, actionIdsLong, operator);
283            }
284    
285            /**
286             * @deprecated Renamed to {@link #getWrappedService}
287             */
288            public ResourceBlockPermissionLocalService getWrappedResourceBlockPermissionLocalService() {
289                    return _resourceBlockPermissionLocalService;
290            }
291    
292            /**
293             * @deprecated Renamed to {@link #setWrappedService}
294             */
295            public void setWrappedResourceBlockPermissionLocalService(
296                    ResourceBlockPermissionLocalService resourceBlockPermissionLocalService) {
297                    _resourceBlockPermissionLocalService = resourceBlockPermissionLocalService;
298            }
299    
300            public ResourceBlockPermissionLocalService getWrappedService() {
301                    return _resourceBlockPermissionLocalService;
302            }
303    
304            public void setWrappedService(
305                    ResourceBlockPermissionLocalService resourceBlockPermissionLocalService) {
306                    _resourceBlockPermissionLocalService = resourceBlockPermissionLocalService;
307            }
308    
309            private ResourceBlockPermissionLocalService _resourceBlockPermissionLocalService;
310    }