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 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            /**
259            * Adds resources for the model, always creating a resource at the
260            * individual scope and only creating resources at the group, group
261            * template, and company scope if such resources don't already exist.
262            *
263            * <ol>
264            * <li>
265            * If the service context specifies that default group or default guest
266            * permissions are to be added, then only default permissions are added. See
267            * {@link com.liferay.portal.service.ServiceContext#setAddGroupPermissions(
268            * boolean)} and {@link
269            * com.liferay.portal.service.ServiceContext#setAddGuestPermissions(
270            * boolean)}.
271            * </li>
272            * <li>
273            * Else ...
274            * <ol>
275            * <li>
276            * If the service context specifies to derive default permissions, then
277            * default group and guest permissions are derived from the model and
278            * added. See {@link
279            * com.liferay.portal.service.ServiceContext#setDeriveDefaultPermissions(
280            * boolean)}.
281            * </li>
282            * <li>
283            * Lastly group and guest permissions from the service
284            * context are applied. See {@link
285            * com.liferay.portal.service.ServiceContext#setGroupPermissions(String[])}
286            * and {@link
287            * com.liferay.portal.service.ServiceContext#setGuesPermissions(String[])}.
288            * </li>
289            * </ol>
290            *
291            * </li>
292            * </ol>
293            *
294            * @param auditedModel the model to associate with the resources
295            * @param serviceContext the service context to apply. Can set whether to
296            add the model's default group and guest permissions, set whether
297            to derive default group and guest permissions from the model, set
298            group permissions to apply, and set guest permissions to apply.
299            * @throws PortalException if no portal actions could be found associated
300            with the model or if a portal exception occurred
301            * @throws SystemException if a system exception occurred
302            */
303            public void addModelResources(
304                    com.liferay.portal.model.AuditedModel auditedModel,
305                    com.liferay.portal.service.ServiceContext serviceContext)
306                    throws com.liferay.portal.kernel.exception.PortalException,
307                            com.liferay.portal.kernel.exception.SystemException {
308                    _resourceLocalService.addModelResources(auditedModel, serviceContext);
309            }
310    
311            /**
312            * Adds resources for the model with the name and primary key, always
313            * creating a resource at the individual scope and only creating resources
314            * at the group, group template, and company scope if such resources don't
315            * already exist.
316            *
317            * @param companyId the primary key of the portal instance
318            * @param groupId the primary key of the group
319            * @param userId the primary key of the user adding the resources
320            * @param name a name for the resource, typically the model's class name
321            * @param primKey the primary key of the model instance, optionally
322            <code>0</code> if no instance exists
323            * @param groupPermissions the group permissions to be applied
324            * @param guestPermissions the guest permissions to be applied
325            * @throws PortalException if no portal actions could be found associated
326            with the model or if a portal exception occurred
327            * @throws SystemException if a system exception occurred
328            */
329            public void addModelResources(long companyId, long groupId, long userId,
330                    java.lang.String name, long primKey,
331                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
332                    throws com.liferay.portal.kernel.exception.PortalException,
333                            com.liferay.portal.kernel.exception.SystemException {
334                    _resourceLocalService.addModelResources(companyId, groupId, userId,
335                            name, primKey, groupPermissions, guestPermissions);
336            }
337    
338            /**
339            * Adds resources for the model with the name and primary key string, always
340            * creating a resource at the individual scope and only creating resources
341            * at the group, group template, and company scope if such resources don't
342            * already exist.
343            *
344            * @param companyId the primary key of the portal instance
345            * @param groupId the primary key of the group
346            * @param userId the primary key of the user adding the resources
347            * @param name a name for the resource, typically the model's class name
348            * @param primKey the primary key string of the model instance, optionally
349            an empty string if no instance exists
350            * @param groupPermissions the group permissions to be applied
351            * @param guestPermissions the guest permissions to be applied
352            * @throws PortalException if no portal actions could be found associated
353            with the model or if a portal exception occurred
354            * @throws SystemException if a system exception occurred
355            */
356            public void addModelResources(long companyId, long groupId, long userId,
357                    java.lang.String name, java.lang.String primKey,
358                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
359                    throws com.liferay.portal.kernel.exception.PortalException,
360                            com.liferay.portal.kernel.exception.SystemException {
361                    _resourceLocalService.addModelResources(companyId, groupId, userId,
362                            name, primKey, groupPermissions, guestPermissions);
363            }
364    
365            public com.liferay.portal.model.Resource addResource(long companyId,
366                    java.lang.String name, int scope, java.lang.String primKey)
367                    throws com.liferay.portal.kernel.exception.SystemException {
368                    return _resourceLocalService.addResource(companyId, name, scope, primKey);
369            }
370    
371            /**
372            * Adds resources for the entity with the name and primary key, always
373            * creating a resource at the individual scope and only creating resources
374            * at the group, group template, and company scope if such resources don't
375            * already exist.
376            *
377            * @param companyId the primary key of the portal instance
378            * @param groupId the primary key of the group
379            * @param userId the primary key of the user adding the resources
380            * @param name a name for the resource, which should be a portlet ID if the
381            resource is a portlet or the resource's class name otherwise
382            * @param primKey the primary key of the resource instance, optionally
383            <code>0</code> if no instance exists
384            * @param portletActions whether to associate portlet actions with the
385            resource
386            * @param addGroupPermissions whether to add group permissions
387            * @param addGuestPermissions whether to add guest permissions
388            * @throws PortalException if no portal actions could be found associated
389            with the resource or if a portal exception occurred
390            * @throws SystemException if a system exception occurred
391            */
392            public void addResources(long companyId, long groupId, long userId,
393                    java.lang.String name, long primKey, boolean portletActions,
394                    boolean addGroupPermissions, boolean addGuestPermissions)
395                    throws com.liferay.portal.kernel.exception.PortalException,
396                            com.liferay.portal.kernel.exception.SystemException {
397                    _resourceLocalService.addResources(companyId, groupId, userId, name,
398                            primKey, portletActions, addGroupPermissions, addGuestPermissions);
399            }
400    
401            /**
402            * Adds resources for the entity with the name and primary key string,
403            * always creating a resource at the individual scope and only creating
404            * resources at the group, group template, and company scope if such
405            * resources don't already exist.
406            *
407            * @param companyId the primary key of the portal instance
408            * @param groupId the primary key of the group
409            * @param userId the primary key of the user adding the resources
410            * @param name a name for the resource, which should be a portlet ID if the
411            resource is a portlet or the resource's class name otherwise
412            * @param primKey the primary key string of the resource instance,
413            optionally an empty string if no instance exists
414            * @param portletActions whether to associate portlet actions with the
415            resource
416            * @param addGroupPermissions whether to add group permissions
417            * @param addGuestPermissions whether to add guest permissions
418            * @throws PortalException if no portal actions could be found associated
419            with the resource or if a portal exception occurred
420            * @throws SystemException if a system exception occurred
421            */
422            public void addResources(long companyId, long groupId, long userId,
423                    java.lang.String name, java.lang.String primKey,
424                    boolean portletActions, boolean addGroupPermissions,
425                    boolean addGuestPermissions)
426                    throws com.liferay.portal.kernel.exception.PortalException,
427                            com.liferay.portal.kernel.exception.SystemException {
428                    _resourceLocalService.addResources(companyId, groupId, userId, name,
429                            primKey, portletActions, addGroupPermissions, addGuestPermissions);
430            }
431    
432            /**
433            * Adds resources for the entity with the name. Use this method if the user
434            * is unknown or irrelevant and there is no current entity instance.
435            *
436            * @param companyId the primary key of the portal instance
437            * @param groupId the primary key of the group
438            * @param name a name for the resource, which should be a portlet ID if the
439            resource is a portlet or the resource's class name otherwise
440            * @param portletActions whether to associate portlet actions with the
441            resource
442            * @throws PortalException if no portal actions could be found associated
443            with the resource or if a portal exception occurred
444            * @throws SystemException if a system exception occurred
445            */
446            public void addResources(long companyId, long groupId,
447                    java.lang.String name, boolean portletActions)
448                    throws com.liferay.portal.kernel.exception.PortalException,
449                            com.liferay.portal.kernel.exception.SystemException {
450                    _resourceLocalService.addResources(companyId, groupId, name,
451                            portletActions);
452            }
453    
454            /**
455            * Deletes the resource associated with the model at the scope.
456            *
457            * @param auditedModel the model associated with the resource
458            * @param scope the scope of the resource. For more information see {@link
459            com.liferay.portal.model.ResourceConstants}.
460            * @throws PortalException if a portal exception occurred
461            * @throws SystemException if a system exception occurred
462            */
463            public void deleteResource(
464                    com.liferay.portal.model.AuditedModel auditedModel, int scope)
465                    throws com.liferay.portal.kernel.exception.PortalException,
466                            com.liferay.portal.kernel.exception.SystemException {
467                    _resourceLocalService.deleteResource(auditedModel, scope);
468            }
469    
470            /**
471            * Deletes the resource matching the primary key at the scope.
472            *
473            * @param companyId the primary key of the portal instance
474            * @param name the resource's name, which should be a portlet ID if the
475            resource is a portlet or the resource's class name otherwise
476            * @param scope the scope of the resource. For more information see {@link
477            com.liferay.portal.model.ResourceConstants}.
478            * @param primKey the primary key of the resource instance
479            * @throws PortalException if a portal exception occurred
480            * @throws SystemException if a system exception occurred
481            */
482            public void deleteResource(long companyId, java.lang.String name,
483                    int scope, long primKey)
484                    throws com.liferay.portal.kernel.exception.PortalException,
485                            com.liferay.portal.kernel.exception.SystemException {
486                    _resourceLocalService.deleteResource(companyId, name, scope, primKey);
487            }
488    
489            /**
490            * Deletes the resource matching the primary key at the scope.
491            *
492            * @param companyId the primary key of the portal instance
493            * @param name the resource's name, which should be a portlet ID if the
494            resource is a portlet or the resource's class name otherwise
495            * @param scope the scope of the resource. For more information see {@link
496            com.liferay.portal.model.ResourceConstants}.
497            * @param primKey the primary key string of the resource instance
498            * @throws PortalException if a portal exception occurred
499            * @throws SystemException if a system exception occurred
500            */
501            public void deleteResource(long companyId, java.lang.String name,
502                    int scope, java.lang.String primKey)
503                    throws com.liferay.portal.kernel.exception.PortalException,
504                            com.liferay.portal.kernel.exception.SystemException {
505                    _resourceLocalService.deleteResource(companyId, name, scope, primKey);
506            }
507    
508            public void deleteResources(java.lang.String name)
509                    throws com.liferay.portal.kernel.exception.SystemException {
510                    _resourceLocalService.deleteResources(name);
511            }
512    
513            public com.liferay.portal.model.Resource fetchResource(long companyId,
514                    java.lang.String name, int scope, java.lang.String primKey)
515                    throws com.liferay.portal.kernel.exception.SystemException {
516                    return _resourceLocalService.fetchResource(companyId, name, scope,
517                            primKey);
518            }
519    
520            public long getLatestResourceId()
521                    throws com.liferay.portal.kernel.exception.SystemException {
522                    return _resourceLocalService.getLatestResourceId();
523            }
524    
525            /**
526            * Returns a new resource with the name and primary key at the scope.
527            *
528            * @param companyId the primary key of the portal instance
529            * @param name a name for the resource, which should be a portlet ID if the
530            resource is a portlet or the resource's class name otherwise
531            * @param scope the scope of the resource. For more information see {@link
532            com.liferay.portal.model.ResourceConstants}.
533            * @param primKey the primary key string of the resource
534            * @return the new resource
535            * @throws PortalException if a portal exception occurred
536            * @throws SystemException if a system exception occurred
537            */
538            public com.liferay.portal.model.Resource getResource(long companyId,
539                    java.lang.String name, int scope, java.lang.String primKey)
540                    throws com.liferay.portal.kernel.exception.PortalException,
541                            com.liferay.portal.kernel.exception.SystemException {
542                    return _resourceLocalService.getResource(companyId, name, scope, primKey);
543            }
544    
545            public java.util.List<com.liferay.portal.model.Resource> getResources()
546                    throws com.liferay.portal.kernel.exception.SystemException {
547                    return _resourceLocalService.getResources();
548            }
549    
550            /**
551            * Updates the resources for the model, replacing their group and guest
552            * permissions with new ones from the service context.
553            *
554            * @param auditedModel the model associated with the resources
555            * @param serviceContext the service context to be applied. Can set group
556            and guest permissions.
557            * @throws PortalException if a portal exception occurred
558            * @throws SystemException if a system exception occurred
559            */
560            public void updateModelResources(
561                    com.liferay.portal.model.AuditedModel auditedModel,
562                    com.liferay.portal.service.ServiceContext serviceContext)
563                    throws com.liferay.portal.kernel.exception.PortalException,
564                            com.liferay.portal.kernel.exception.SystemException {
565                    _resourceLocalService.updateModelResources(auditedModel, serviceContext);
566            }
567    
568            /**
569            * Updates resources matching the group, name, and primary key at the
570            * individual scope, setting new group and guest permissions.
571            *
572            * @param companyId the primary key of the portal instance
573            * @param groupId the primary key of the group
574            * @param name the resource's name, which should be a portlet ID if the
575            resource is a portlet or the resource's class name otherwise
576            * @param primKey the primary key of the resource instance
577            * @param groupPermissions the group permissions to be applied
578            * @param guestPermissions the guest permissions to be applied
579            * @throws PortalException if a portal exception occurred
580            * @throws SystemException if a system exception occurred
581            */
582            public void updateResources(long companyId, long groupId,
583                    java.lang.String name, long primKey,
584                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
585                    throws com.liferay.portal.kernel.exception.PortalException,
586                            com.liferay.portal.kernel.exception.SystemException {
587                    _resourceLocalService.updateResources(companyId, groupId, name,
588                            primKey, groupPermissions, guestPermissions);
589            }
590    
591            /**
592            * Updates resources matching the group, name, and primary key string at the
593            * individual scope, setting new group and guest permissions.
594            *
595            * @param companyId the primary key of the portal instance
596            * @param groupId the primary key of the group
597            * @param name the resource's name, which should be a portlet ID if the
598            resource is a portlet or the resource's class name otherwise
599            * @param primKey the primary key string of the resource instance
600            * @param groupPermissions the group permissions to be applied
601            * @param guestPermissions the guest permissions to be applied
602            * @throws PortalException if a portal exception occurred
603            * @throws SystemException if a system exception occurred
604            */
605            public void updateResources(long companyId, long groupId,
606                    java.lang.String name, java.lang.String primKey,
607                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
608                    throws com.liferay.portal.kernel.exception.PortalException,
609                            com.liferay.portal.kernel.exception.SystemException {
610                    _resourceLocalService.updateResources(companyId, groupId, name,
611                            primKey, groupPermissions, guestPermissions);
612            }
613    
614            /**
615            * Updates resources matching the name, primary key string and scope,
616            * replacing the primary key of their resource permissions with the new
617            * primary key.
618            *
619            * @param companyId the primary key of the portal instance
620            * @param name the resource's name, which should be a portlet ID if the
621            resource is a portlet or the resource's class name otherwise
622            * @param scope the scope of the resource. For more information see {@link
623            com.liferay.portal.model.ResourceConstants}.
624            * @param primKey the primary key string of the resource instance
625            * @param newPrimKey the new primary key string of the resource
626            * @throws PortalException if a portal exception occurred
627            * @throws SystemException if a system exception occurred
628            */
629            public void updateResources(long companyId, java.lang.String name,
630                    int scope, java.lang.String primKey, java.lang.String newPrimKey)
631                    throws com.liferay.portal.kernel.exception.PortalException,
632                            com.liferay.portal.kernel.exception.SystemException {
633                    _resourceLocalService.updateResources(companyId, name, scope, primKey,
634                            newPrimKey);
635            }
636    
637            /**
638             * @deprecated Renamed to {@link #getWrappedService}
639             */
640            public ResourceLocalService getWrappedResourceLocalService() {
641                    return _resourceLocalService;
642            }
643    
644            /**
645             * @deprecated Renamed to {@link #setWrappedService}
646             */
647            public void setWrappedResourceLocalService(
648                    ResourceLocalService resourceLocalService) {
649                    _resourceLocalService = resourceLocalService;
650            }
651    
652            public ResourceLocalService getWrappedService() {
653                    return _resourceLocalService;
654            }
655    
656            public void setWrappedService(ResourceLocalService resourceLocalService) {
657                    _resourceLocalService = resourceLocalService;
658            }
659    
660            private ResourceLocalService _resourceLocalService;
661    }