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 ResourceLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       ResourceLocalService
024     * @generated
025     */
026    public class ResourceLocalServiceWrapper implements ResourceLocalService,
027            ServiceWrapper<ResourceLocalService> {
028            public ResourceLocalServiceWrapper(
029                    ResourceLocalService resourceLocalService) {
030                    _resourceLocalService = resourceLocalService;
031            }
032    
033            /**
034            * Adds the resource to the database. Also notifies the appropriate model listeners.
035            *
036            * @param resource the resource
037            * @return the resource that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portal.model.Resource addResource(
041                    com.liferay.portal.model.Resource resource)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _resourceLocalService.addResource(resource);
044            }
045    
046            /**
047            * Creates a new resource with the primary key. Does not add the resource to the database.
048            *
049            * @param resourceId the primary key for the new resource
050            * @return the new resource
051            */
052            public com.liferay.portal.model.Resource createResource(long resourceId) {
053                    return _resourceLocalService.createResource(resourceId);
054            }
055    
056            /**
057            * Deletes the resource with the primary key from the database. Also notifies the appropriate model listeners.
058            *
059            * @param resourceId the primary key of the resource
060            * @throws PortalException if a resource with the primary key could not be found
061            * @throws SystemException if a system exception occurred
062            */
063            public void deleteResource(long resourceId)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    _resourceLocalService.deleteResource(resourceId);
067            }
068    
069            /**
070            * Deletes the resource from the database. Also notifies the appropriate model listeners.
071            *
072            * @param resource the resource
073            * @throws SystemException if a system exception occurred
074            */
075            public void deleteResource(com.liferay.portal.model.Resource resource)
076                    throws com.liferay.portal.kernel.exception.SystemException {
077                    _resourceLocalService.deleteResource(resource);
078            }
079    
080            /**
081            * Performs a dynamic query on the database and returns the matching rows.
082            *
083            * @param dynamicQuery the dynamic query
084            * @return the matching rows
085            * @throws SystemException if a system exception occurred
086            */
087            @SuppressWarnings("rawtypes")
088            public java.util.List dynamicQuery(
089                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
090                    throws com.liferay.portal.kernel.exception.SystemException {
091                    return _resourceLocalService.dynamicQuery(dynamicQuery);
092            }
093    
094            /**
095            * Performs a dynamic query on the database and returns a range of the matching rows.
096            *
097            * <p>
098            * 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.
099            * </p>
100            *
101            * @param dynamicQuery the dynamic query
102            * @param start the lower bound of the range of model instances
103            * @param end the upper bound of the range of model instances (not inclusive)
104            * @return the range of matching rows
105            * @throws SystemException if a system exception occurred
106            */
107            @SuppressWarnings("rawtypes")
108            public java.util.List dynamicQuery(
109                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
110                    int end) throws com.liferay.portal.kernel.exception.SystemException {
111                    return _resourceLocalService.dynamicQuery(dynamicQuery, start, end);
112            }
113    
114            /**
115            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
116            *
117            * <p>
118            * 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.
119            * </p>
120            *
121            * @param dynamicQuery the dynamic query
122            * @param start the lower bound of the range of model instances
123            * @param end the upper bound of the range of model instances (not inclusive)
124            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
125            * @return the ordered range of matching rows
126            * @throws SystemException if a system exception occurred
127            */
128            @SuppressWarnings("rawtypes")
129            public java.util.List dynamicQuery(
130                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
131                    int end,
132                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133                    throws com.liferay.portal.kernel.exception.SystemException {
134                    return _resourceLocalService.dynamicQuery(dynamicQuery, start, end,
135                            orderByComparator);
136            }
137    
138            /**
139            * Returns the number of rows that match the dynamic query.
140            *
141            * @param dynamicQuery the dynamic query
142            * @return the number of rows that match the dynamic query
143            * @throws SystemException if a system exception occurred
144            */
145            public long dynamicQueryCount(
146                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
147                    throws com.liferay.portal.kernel.exception.SystemException {
148                    return _resourceLocalService.dynamicQueryCount(dynamicQuery);
149            }
150    
151            public com.liferay.portal.model.Resource fetchResource(long resourceId)
152                    throws com.liferay.portal.kernel.exception.SystemException {
153                    return _resourceLocalService.fetchResource(resourceId);
154            }
155    
156            /**
157            * Returns the resource with the primary key.
158            *
159            * @param resourceId the primary key of the resource
160            * @return the resource
161            * @throws PortalException if a resource with the primary key could not be found
162            * @throws SystemException if a system exception occurred
163            */
164            public com.liferay.portal.model.Resource getResource(long resourceId)
165                    throws com.liferay.portal.kernel.exception.PortalException,
166                            com.liferay.portal.kernel.exception.SystemException {
167                    return _resourceLocalService.getResource(resourceId);
168            }
169    
170            public com.liferay.portal.model.PersistedModel getPersistedModel(
171                    java.io.Serializable primaryKeyObj)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException {
174                    return _resourceLocalService.getPersistedModel(primaryKeyObj);
175            }
176    
177            /**
178            * Returns a range of all the resources.
179            *
180            * <p>
181            * 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.
182            * </p>
183            *
184            * @param start the lower bound of the range of resources
185            * @param end the upper bound of the range of resources (not inclusive)
186            * @return the range of resources
187            * @throws SystemException if a system exception occurred
188            */
189            public java.util.List<com.liferay.portal.model.Resource> getResources(
190                    int start, int end)
191                    throws com.liferay.portal.kernel.exception.SystemException {
192                    return _resourceLocalService.getResources(start, end);
193            }
194    
195            /**
196            * Returns the number of resources.
197            *
198            * @return the number of resources
199            * @throws SystemException if a system exception occurred
200            */
201            public int getResourcesCount()
202                    throws com.liferay.portal.kernel.exception.SystemException {
203                    return _resourceLocalService.getResourcesCount();
204            }
205    
206            /**
207            * Updates the resource in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
208            *
209            * @param resource the resource
210            * @return the resource that was updated
211            * @throws SystemException if a system exception occurred
212            */
213            public com.liferay.portal.model.Resource updateResource(
214                    com.liferay.portal.model.Resource resource)
215                    throws com.liferay.portal.kernel.exception.SystemException {
216                    return _resourceLocalService.updateResource(resource);
217            }
218    
219            /**
220            * Updates the resource in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
221            *
222            * @param resource the resource
223            * @param merge whether to merge the resource 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.
224            * @return the resource that was updated
225            * @throws SystemException if a system exception occurred
226            */
227            public com.liferay.portal.model.Resource updateResource(
228                    com.liferay.portal.model.Resource resource, boolean merge)
229                    throws com.liferay.portal.kernel.exception.SystemException {
230                    return _resourceLocalService.updateResource(resource, merge);
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 _resourceLocalService.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                    _resourceLocalService.setBeanIdentifier(beanIdentifier);
249            }
250    
251            public void addModelResources(
252                    com.liferay.portal.model.AuditedModel auditedModel,
253                    com.liferay.portal.service.ServiceContext serviceContext)
254                    throws com.liferay.portal.kernel.exception.PortalException,
255                            com.liferay.portal.kernel.exception.SystemException {
256                    _resourceLocalService.addModelResources(auditedModel, serviceContext);
257            }
258    
259            public void addModelResources(long companyId, long groupId, long userId,
260                    java.lang.String name, long primKey,
261                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
262                    throws com.liferay.portal.kernel.exception.PortalException,
263                            com.liferay.portal.kernel.exception.SystemException {
264                    _resourceLocalService.addModelResources(companyId, groupId, userId,
265                            name, primKey, groupPermissions, guestPermissions);
266            }
267    
268            public void addModelResources(long companyId, long groupId, long userId,
269                    java.lang.String name, java.lang.String primKey,
270                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
271                    throws com.liferay.portal.kernel.exception.PortalException,
272                            com.liferay.portal.kernel.exception.SystemException {
273                    _resourceLocalService.addModelResources(companyId, groupId, userId,
274                            name, primKey, groupPermissions, guestPermissions);
275            }
276    
277            public com.liferay.portal.model.Resource addResource(long companyId,
278                    java.lang.String name, int scope, java.lang.String primKey)
279                    throws com.liferay.portal.kernel.exception.SystemException {
280                    return _resourceLocalService.addResource(companyId, name, scope, primKey);
281            }
282    
283            public void addResources(long companyId, long groupId, long userId,
284                    java.lang.String name, long primKey, boolean portletActions,
285                    boolean addGroupPermissions, boolean addGuestPermissions)
286                    throws com.liferay.portal.kernel.exception.PortalException,
287                            com.liferay.portal.kernel.exception.SystemException {
288                    _resourceLocalService.addResources(companyId, groupId, userId, name,
289                            primKey, portletActions, addGroupPermissions, addGuestPermissions);
290            }
291    
292            public void addResources(long companyId, long groupId, long userId,
293                    java.lang.String name, java.lang.String primKey,
294                    boolean portletActions, boolean addGroupPermissions,
295                    boolean addGuestPermissions)
296                    throws com.liferay.portal.kernel.exception.PortalException,
297                            com.liferay.portal.kernel.exception.SystemException {
298                    _resourceLocalService.addResources(companyId, groupId, userId, name,
299                            primKey, portletActions, addGroupPermissions, addGuestPermissions);
300            }
301    
302            public void addResources(long companyId, long groupId,
303                    java.lang.String name, boolean portletActions)
304                    throws com.liferay.portal.kernel.exception.PortalException,
305                            com.liferay.portal.kernel.exception.SystemException {
306                    _resourceLocalService.addResources(companyId, groupId, name,
307                            portletActions);
308            }
309    
310            public void deleteResource(
311                    com.liferay.portal.model.AuditedModel auditedModel, int scope)
312                    throws com.liferay.portal.kernel.exception.PortalException,
313                            com.liferay.portal.kernel.exception.SystemException {
314                    _resourceLocalService.deleteResource(auditedModel, scope);
315            }
316    
317            public void deleteResource(long companyId, java.lang.String name,
318                    int scope, long primKey)
319                    throws com.liferay.portal.kernel.exception.PortalException,
320                            com.liferay.portal.kernel.exception.SystemException {
321                    _resourceLocalService.deleteResource(companyId, name, scope, primKey);
322            }
323    
324            public void deleteResource(long companyId, java.lang.String name,
325                    int scope, java.lang.String primKey)
326                    throws com.liferay.portal.kernel.exception.PortalException,
327                            com.liferay.portal.kernel.exception.SystemException {
328                    _resourceLocalService.deleteResource(companyId, name, scope, primKey);
329            }
330    
331            public void deleteResources(java.lang.String name)
332                    throws com.liferay.portal.kernel.exception.SystemException {
333                    _resourceLocalService.deleteResources(name);
334            }
335    
336            public com.liferay.portal.model.Resource fetchResource(long companyId,
337                    java.lang.String name, int scope, java.lang.String primKey)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    return _resourceLocalService.fetchResource(companyId, name, scope,
340                            primKey);
341            }
342    
343            public long getLatestResourceId()
344                    throws com.liferay.portal.kernel.exception.SystemException {
345                    return _resourceLocalService.getLatestResourceId();
346            }
347    
348            public com.liferay.portal.model.Resource getResource(long companyId,
349                    java.lang.String name, int scope, java.lang.String primKey)
350                    throws com.liferay.portal.kernel.exception.PortalException,
351                            com.liferay.portal.kernel.exception.SystemException {
352                    return _resourceLocalService.getResource(companyId, name, scope, primKey);
353            }
354    
355            public java.util.List<com.liferay.portal.model.Resource> getResources()
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    return _resourceLocalService.getResources();
358            }
359    
360            public void updateModelResources(
361                    com.liferay.portal.model.AuditedModel auditedModel,
362                    com.liferay.portal.service.ServiceContext serviceContext)
363                    throws com.liferay.portal.kernel.exception.PortalException,
364                            com.liferay.portal.kernel.exception.SystemException {
365                    _resourceLocalService.updateModelResources(auditedModel, serviceContext);
366            }
367    
368            public void updateResources(long companyId, long groupId,
369                    java.lang.String name, long primKey,
370                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
371                    throws com.liferay.portal.kernel.exception.PortalException,
372                            com.liferay.portal.kernel.exception.SystemException {
373                    _resourceLocalService.updateResources(companyId, groupId, name,
374                            primKey, groupPermissions, guestPermissions);
375            }
376    
377            public void updateResources(long companyId, long groupId,
378                    java.lang.String name, java.lang.String primKey,
379                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
380                    throws com.liferay.portal.kernel.exception.PortalException,
381                            com.liferay.portal.kernel.exception.SystemException {
382                    _resourceLocalService.updateResources(companyId, groupId, name,
383                            primKey, groupPermissions, guestPermissions);
384            }
385    
386            public void updateResources(long companyId, java.lang.String name,
387                    int scope, java.lang.String primKey, java.lang.String newPrimKey)
388                    throws com.liferay.portal.kernel.exception.PortalException,
389                            com.liferay.portal.kernel.exception.SystemException {
390                    _resourceLocalService.updateResources(companyId, name, scope, primKey,
391                            newPrimKey);
392            }
393    
394            /**
395             * @deprecated Renamed to {@link #getWrappedService}
396             */
397            public ResourceLocalService getWrappedResourceLocalService() {
398                    return _resourceLocalService;
399            }
400    
401            /**
402             * @deprecated Renamed to {@link #setWrappedService}
403             */
404            public void setWrappedResourceLocalService(
405                    ResourceLocalService resourceLocalService) {
406                    _resourceLocalService = resourceLocalService;
407            }
408    
409            public ResourceLocalService getWrappedService() {
410                    return _resourceLocalService;
411            }
412    
413            public void setWrappedService(ResourceLocalService resourceLocalService) {
414                    _resourceLocalService = resourceLocalService;
415            }
416    
417            private ResourceLocalService _resourceLocalService;
418    }