001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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            * @return the resource that was removed
061            * @throws PortalException if a resource with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public com.liferay.portal.model.Resource deleteResource(long resourceId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    return _resourceLocalService.deleteResource(resourceId);
068            }
069    
070            /**
071            * Deletes the resource from the database. Also notifies the appropriate model listeners.
072            *
073            * @param resource the resource
074            * @return the resource that was removed
075            * @throws SystemException if a system exception occurred
076            */
077            public com.liferay.portal.model.Resource deleteResource(
078                    com.liferay.portal.model.Resource resource)
079                    throws com.liferay.portal.kernel.exception.SystemException {
080                    return _resourceLocalService.deleteResource(resource);
081            }
082    
083            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
084                    return _resourceLocalService.dynamicQuery();
085            }
086    
087            /**
088            * Performs a dynamic query on the database and returns the matching rows.
089            *
090            * @param dynamicQuery the dynamic query
091            * @return the matching rows
092            * @throws SystemException if a system exception occurred
093            */
094            @SuppressWarnings("rawtypes")
095            public java.util.List dynamicQuery(
096                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
097                    throws com.liferay.portal.kernel.exception.SystemException {
098                    return _resourceLocalService.dynamicQuery(dynamicQuery);
099            }
100    
101            /**
102            * Performs a dynamic query on the database and returns a range of the matching rows.
103            *
104            * <p>
105            * 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.
106            * </p>
107            *
108            * @param dynamicQuery the dynamic query
109            * @param start the lower bound of the range of model instances
110            * @param end the upper bound of the range of model instances (not inclusive)
111            * @return the range of matching rows
112            * @throws SystemException if a system exception occurred
113            */
114            @SuppressWarnings("rawtypes")
115            public java.util.List dynamicQuery(
116                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
117                    int end) throws com.liferay.portal.kernel.exception.SystemException {
118                    return _resourceLocalService.dynamicQuery(dynamicQuery, start, end);
119            }
120    
121            /**
122            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
123            *
124            * <p>
125            * 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.
126            * </p>
127            *
128            * @param dynamicQuery the dynamic query
129            * @param start the lower bound of the range of model instances
130            * @param end the upper bound of the range of model instances (not inclusive)
131            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
132            * @return the ordered range of matching rows
133            * @throws SystemException if a system exception occurred
134            */
135            @SuppressWarnings("rawtypes")
136            public java.util.List dynamicQuery(
137                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
138                    int end,
139                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140                    throws com.liferay.portal.kernel.exception.SystemException {
141                    return _resourceLocalService.dynamicQuery(dynamicQuery, start, end,
142                            orderByComparator);
143            }
144    
145            /**
146            * Returns the number of rows that match the dynamic query.
147            *
148            * @param dynamicQuery the dynamic query
149            * @return the number of rows that match the dynamic query
150            * @throws SystemException if a system exception occurred
151            */
152            public long dynamicQueryCount(
153                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
154                    throws com.liferay.portal.kernel.exception.SystemException {
155                    return _resourceLocalService.dynamicQueryCount(dynamicQuery);
156            }
157    
158            public com.liferay.portal.model.Resource fetchResource(long resourceId)
159                    throws com.liferay.portal.kernel.exception.SystemException {
160                    return _resourceLocalService.fetchResource(resourceId);
161            }
162    
163            /**
164            * Returns the resource with the primary key.
165            *
166            * @param resourceId the primary key of the resource
167            * @return the resource
168            * @throws PortalException if a resource with the primary key could not be found
169            * @throws SystemException if a system exception occurred
170            */
171            public com.liferay.portal.model.Resource getResource(long resourceId)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException {
174                    return _resourceLocalService.getResource(resourceId);
175            }
176    
177            public com.liferay.portal.model.PersistedModel getPersistedModel(
178                    java.io.Serializable primaryKeyObj)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _resourceLocalService.getPersistedModel(primaryKeyObj);
182            }
183    
184            /**
185            * Returns a range of all the resources.
186            *
187            * <p>
188            * 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.
189            * </p>
190            *
191            * @param start the lower bound of the range of resources
192            * @param end the upper bound of the range of resources (not inclusive)
193            * @return the range of resources
194            * @throws SystemException if a system exception occurred
195            */
196            public java.util.List<com.liferay.portal.model.Resource> getResources(
197                    int start, int end)
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    return _resourceLocalService.getResources(start, end);
200            }
201    
202            /**
203            * Returns the number of resources.
204            *
205            * @return the number of resources
206            * @throws SystemException if a system exception occurred
207            */
208            public int getResourcesCount()
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    return _resourceLocalService.getResourcesCount();
211            }
212    
213            /**
214            * Updates the resource in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
215            *
216            * @param resource the resource
217            * @return the resource that was updated
218            * @throws SystemException if a system exception occurred
219            */
220            public com.liferay.portal.model.Resource updateResource(
221                    com.liferay.portal.model.Resource resource)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return _resourceLocalService.updateResource(resource);
224            }
225    
226            /**
227            * Updates the resource in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
228            *
229            * @param resource the resource
230            * @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.
231            * @return the resource that was updated
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portal.model.Resource updateResource(
235                    com.liferay.portal.model.Resource resource, boolean merge)
236                    throws com.liferay.portal.kernel.exception.SystemException {
237                    return _resourceLocalService.updateResource(resource, merge);
238            }
239    
240            /**
241            * Returns the Spring bean ID for this bean.
242            *
243            * @return the Spring bean ID for this bean
244            */
245            public java.lang.String getBeanIdentifier() {
246                    return _resourceLocalService.getBeanIdentifier();
247            }
248    
249            /**
250            * Sets the Spring bean ID for this bean.
251            *
252            * @param beanIdentifier the Spring bean ID for this bean
253            */
254            public void setBeanIdentifier(java.lang.String beanIdentifier) {
255                    _resourceLocalService.setBeanIdentifier(beanIdentifier);
256            }
257    
258            public void addModelResources(
259                    com.liferay.portal.model.AuditedModel auditedModel,
260                    com.liferay.portal.service.ServiceContext serviceContext)
261                    throws com.liferay.portal.kernel.exception.PortalException,
262                            com.liferay.portal.kernel.exception.SystemException {
263                    _resourceLocalService.addModelResources(auditedModel, serviceContext);
264            }
265    
266            public void addModelResources(long companyId, long groupId, long userId,
267                    java.lang.String name, long primKey,
268                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
269                    throws com.liferay.portal.kernel.exception.PortalException,
270                            com.liferay.portal.kernel.exception.SystemException {
271                    _resourceLocalService.addModelResources(companyId, groupId, userId,
272                            name, primKey, groupPermissions, guestPermissions);
273            }
274    
275            public void addModelResources(long companyId, long groupId, long userId,
276                    java.lang.String name, java.lang.String primKey,
277                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
278                    throws com.liferay.portal.kernel.exception.PortalException,
279                            com.liferay.portal.kernel.exception.SystemException {
280                    _resourceLocalService.addModelResources(companyId, groupId, userId,
281                            name, primKey, groupPermissions, guestPermissions);
282            }
283    
284            public com.liferay.portal.model.Resource addResource(long companyId,
285                    java.lang.String name, int scope, java.lang.String primKey)
286                    throws com.liferay.portal.kernel.exception.SystemException {
287                    return _resourceLocalService.addResource(companyId, name, scope, primKey);
288            }
289    
290            public void addResources(long companyId, long groupId, long userId,
291                    java.lang.String name, long primKey, boolean portletActions,
292                    boolean addGroupPermissions, boolean addGuestPermissions)
293                    throws com.liferay.portal.kernel.exception.PortalException,
294                            com.liferay.portal.kernel.exception.SystemException {
295                    _resourceLocalService.addResources(companyId, groupId, userId, name,
296                            primKey, portletActions, addGroupPermissions, addGuestPermissions);
297            }
298    
299            public void addResources(long companyId, long groupId, long userId,
300                    java.lang.String name, java.lang.String primKey,
301                    boolean portletActions, boolean addGroupPermissions,
302                    boolean addGuestPermissions)
303                    throws com.liferay.portal.kernel.exception.PortalException,
304                            com.liferay.portal.kernel.exception.SystemException {
305                    _resourceLocalService.addResources(companyId, groupId, userId, name,
306                            primKey, portletActions, addGroupPermissions, addGuestPermissions);
307            }
308    
309            public void addResources(long companyId, long groupId,
310                    java.lang.String name, boolean portletActions)
311                    throws com.liferay.portal.kernel.exception.PortalException,
312                            com.liferay.portal.kernel.exception.SystemException {
313                    _resourceLocalService.addResources(companyId, groupId, name,
314                            portletActions);
315            }
316    
317            public void deleteResource(
318                    com.liferay.portal.model.AuditedModel auditedModel, int scope)
319                    throws com.liferay.portal.kernel.exception.PortalException,
320                            com.liferay.portal.kernel.exception.SystemException {
321                    _resourceLocalService.deleteResource(auditedModel, scope);
322            }
323    
324            public void deleteResource(long companyId, java.lang.String name,
325                    int scope, long 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 deleteResource(long companyId, java.lang.String name,
332                    int scope, java.lang.String primKey)
333                    throws com.liferay.portal.kernel.exception.PortalException,
334                            com.liferay.portal.kernel.exception.SystemException {
335                    _resourceLocalService.deleteResource(companyId, name, scope, primKey);
336            }
337    
338            public void deleteResources(java.lang.String name)
339                    throws com.liferay.portal.kernel.exception.SystemException {
340                    _resourceLocalService.deleteResources(name);
341            }
342    
343            public com.liferay.portal.model.Resource fetchResource(long companyId,
344                    java.lang.String name, int scope, java.lang.String primKey)
345                    throws com.liferay.portal.kernel.exception.SystemException {
346                    return _resourceLocalService.fetchResource(companyId, name, scope,
347                            primKey);
348            }
349    
350            public long getLatestResourceId()
351                    throws com.liferay.portal.kernel.exception.SystemException {
352                    return _resourceLocalService.getLatestResourceId();
353            }
354    
355            public com.liferay.portal.model.Resource getResource(long companyId,
356                    java.lang.String name, int scope, java.lang.String primKey)
357                    throws com.liferay.portal.kernel.exception.PortalException,
358                            com.liferay.portal.kernel.exception.SystemException {
359                    return _resourceLocalService.getResource(companyId, name, scope, primKey);
360            }
361    
362            public java.util.List<com.liferay.portal.model.Resource> getResources()
363                    throws com.liferay.portal.kernel.exception.SystemException {
364                    return _resourceLocalService.getResources();
365            }
366    
367            public void updateModelResources(
368                    com.liferay.portal.model.AuditedModel auditedModel,
369                    com.liferay.portal.service.ServiceContext serviceContext)
370                    throws com.liferay.portal.kernel.exception.PortalException,
371                            com.liferay.portal.kernel.exception.SystemException {
372                    _resourceLocalService.updateModelResources(auditedModel, serviceContext);
373            }
374    
375            public void updateResources(long companyId, long groupId,
376                    java.lang.String name, long primKey,
377                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
378                    throws com.liferay.portal.kernel.exception.PortalException,
379                            com.liferay.portal.kernel.exception.SystemException {
380                    _resourceLocalService.updateResources(companyId, groupId, name,
381                            primKey, groupPermissions, guestPermissions);
382            }
383    
384            public void updateResources(long companyId, long groupId,
385                    java.lang.String name, java.lang.String primKey,
386                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
387                    throws com.liferay.portal.kernel.exception.PortalException,
388                            com.liferay.portal.kernel.exception.SystemException {
389                    _resourceLocalService.updateResources(companyId, groupId, name,
390                            primKey, groupPermissions, guestPermissions);
391            }
392    
393            public void updateResources(long companyId, java.lang.String name,
394                    int scope, java.lang.String primKey, java.lang.String newPrimKey)
395                    throws com.liferay.portal.kernel.exception.PortalException,
396                            com.liferay.portal.kernel.exception.SystemException {
397                    _resourceLocalService.updateResources(companyId, name, scope, primKey,
398                            newPrimKey);
399            }
400    
401            /**
402             * @deprecated Renamed to {@link #getWrappedService}
403             */
404            public ResourceLocalService getWrappedResourceLocalService() {
405                    return _resourceLocalService;
406            }
407    
408            /**
409             * @deprecated Renamed to {@link #setWrappedService}
410             */
411            public void setWrappedResourceLocalService(
412                    ResourceLocalService resourceLocalService) {
413                    _resourceLocalService = resourceLocalService;
414            }
415    
416            public ResourceLocalService getWrappedService() {
417                    return _resourceLocalService;
418            }
419    
420            public void setWrappedService(ResourceLocalService resourceLocalService) {
421                    _resourceLocalService = resourceLocalService;
422            }
423    
424            private ResourceLocalService _resourceLocalService;
425    }