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            * Returns the Spring bean ID for this bean.
035            *
036            * @return the Spring bean ID for this bean
037            */
038            public java.lang.String getBeanIdentifier() {
039                    return _resourceLocalService.getBeanIdentifier();
040            }
041    
042            /**
043            * Sets the Spring bean ID for this bean.
044            *
045            * @param beanIdentifier the Spring bean ID for this bean
046            */
047            public void setBeanIdentifier(java.lang.String beanIdentifier) {
048                    _resourceLocalService.setBeanIdentifier(beanIdentifier);
049            }
050    
051            public void addModelResources(
052                    com.liferay.portal.model.AuditedModel auditedModel,
053                    com.liferay.portal.service.ServiceContext serviceContext)
054                    throws com.liferay.portal.kernel.exception.PortalException,
055                            com.liferay.portal.kernel.exception.SystemException {
056                    _resourceLocalService.addModelResources(auditedModel, serviceContext);
057            }
058    
059            public void addModelResources(long companyId, long groupId, long userId,
060                    java.lang.String name, long primKey,
061                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
062                    throws com.liferay.portal.kernel.exception.PortalException,
063                            com.liferay.portal.kernel.exception.SystemException {
064                    _resourceLocalService.addModelResources(companyId, groupId, userId,
065                            name, primKey, groupPermissions, guestPermissions);
066            }
067    
068            public void addModelResources(long companyId, long groupId, long userId,
069                    java.lang.String name, java.lang.String primKey,
070                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException {
073                    _resourceLocalService.addModelResources(companyId, groupId, userId,
074                            name, primKey, groupPermissions, guestPermissions);
075            }
076    
077            public void addResources(long companyId, long groupId, long userId,
078                    java.lang.String name, long primKey, boolean portletActions,
079                    boolean addGroupPermissions, boolean addGuestPermissions)
080                    throws com.liferay.portal.kernel.exception.PortalException,
081                            com.liferay.portal.kernel.exception.SystemException {
082                    _resourceLocalService.addResources(companyId, groupId, userId, name,
083                            primKey, portletActions, addGroupPermissions, addGuestPermissions);
084            }
085    
086            public void addResources(long companyId, long groupId, long userId,
087                    java.lang.String name, java.lang.String primKey,
088                    boolean portletActions, boolean addGroupPermissions,
089                    boolean addGuestPermissions)
090                    throws com.liferay.portal.kernel.exception.PortalException,
091                            com.liferay.portal.kernel.exception.SystemException {
092                    _resourceLocalService.addResources(companyId, groupId, userId, name,
093                            primKey, portletActions, addGroupPermissions, addGuestPermissions);
094            }
095    
096            public void addResources(long companyId, long groupId,
097                    java.lang.String name, boolean portletActions)
098                    throws com.liferay.portal.kernel.exception.PortalException,
099                            com.liferay.portal.kernel.exception.SystemException {
100                    _resourceLocalService.addResources(companyId, groupId, name,
101                            portletActions);
102            }
103    
104            public void deleteResource(
105                    com.liferay.portal.model.AuditedModel auditedModel, int scope)
106                    throws com.liferay.portal.kernel.exception.PortalException,
107                            com.liferay.portal.kernel.exception.SystemException {
108                    _resourceLocalService.deleteResource(auditedModel, scope);
109            }
110    
111            public void deleteResource(long companyId, java.lang.String name,
112                    int scope, long primKey)
113                    throws com.liferay.portal.kernel.exception.PortalException,
114                            com.liferay.portal.kernel.exception.SystemException {
115                    _resourceLocalService.deleteResource(companyId, name, scope, primKey);
116            }
117    
118            public void deleteResource(long companyId, java.lang.String name,
119                    int scope, java.lang.String primKey)
120                    throws com.liferay.portal.kernel.exception.PortalException,
121                            com.liferay.portal.kernel.exception.SystemException {
122                    _resourceLocalService.deleteResource(companyId, name, scope, primKey);
123            }
124    
125            public com.liferay.portal.model.Resource getResource(long companyId,
126                    java.lang.String name, int scope, java.lang.String primKey) {
127                    return _resourceLocalService.getResource(companyId, name, scope, primKey);
128            }
129    
130            public boolean hasUserPermissions(long userId, long resourceId,
131                    java.util.List<com.liferay.portal.model.Resource> resources,
132                    java.lang.String actionId, long[] roleIds)
133                    throws com.liferay.portal.kernel.exception.PortalException,
134                            com.liferay.portal.kernel.exception.SystemException {
135                    return _resourceLocalService.hasUserPermissions(userId, resourceId,
136                            resources, actionId, roleIds);
137            }
138    
139            public void updateModelResources(
140                    com.liferay.portal.model.AuditedModel auditedModel,
141                    com.liferay.portal.service.ServiceContext serviceContext)
142                    throws com.liferay.portal.kernel.exception.PortalException,
143                            com.liferay.portal.kernel.exception.SystemException {
144                    _resourceLocalService.updateModelResources(auditedModel, serviceContext);
145            }
146    
147            public void updateResources(long companyId, long groupId,
148                    java.lang.String name, long primKey,
149                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
150                    throws com.liferay.portal.kernel.exception.PortalException,
151                            com.liferay.portal.kernel.exception.SystemException {
152                    _resourceLocalService.updateResources(companyId, groupId, name,
153                            primKey, groupPermissions, guestPermissions);
154            }
155    
156            public void updateResources(long companyId, long groupId,
157                    java.lang.String name, java.lang.String primKey,
158                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
159                    throws com.liferay.portal.kernel.exception.PortalException,
160                            com.liferay.portal.kernel.exception.SystemException {
161                    _resourceLocalService.updateResources(companyId, groupId, name,
162                            primKey, groupPermissions, guestPermissions);
163            }
164    
165            public void updateResources(long companyId, java.lang.String name,
166                    int scope, java.lang.String primKey, java.lang.String newPrimKey)
167                    throws com.liferay.portal.kernel.exception.SystemException {
168                    _resourceLocalService.updateResources(companyId, name, scope, primKey,
169                            newPrimKey);
170            }
171    
172            /**
173             * @deprecated Renamed to {@link #getWrappedService}
174             */
175            public ResourceLocalService getWrappedResourceLocalService() {
176                    return _resourceLocalService;
177            }
178    
179            /**
180             * @deprecated Renamed to {@link #setWrappedService}
181             */
182            public void setWrappedResourceLocalService(
183                    ResourceLocalService resourceLocalService) {
184                    _resourceLocalService = resourceLocalService;
185            }
186    
187            public ResourceLocalService getWrappedService() {
188                    return _resourceLocalService;
189            }
190    
191            public void setWrappedService(ResourceLocalService resourceLocalService) {
192                    _resourceLocalService = resourceLocalService;
193            }
194    
195            private ResourceLocalService _resourceLocalService;
196    }