001    /**
002     * Copyright (c) 2000-2010 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            public ResourceLocalServiceWrapper(
028                    ResourceLocalService resourceLocalService) {
029                    _resourceLocalService = resourceLocalService;
030            }
031    
032            public com.liferay.portal.model.Resource addResource(
033                    com.liferay.portal.model.Resource resource)
034                    throws com.liferay.portal.kernel.exception.SystemException {
035                    return _resourceLocalService.addResource(resource);
036            }
037    
038            public com.liferay.portal.model.Resource createResource(long resourceId) {
039                    return _resourceLocalService.createResource(resourceId);
040            }
041    
042            public void deleteResource(long resourceId)
043                    throws com.liferay.portal.kernel.exception.PortalException,
044                            com.liferay.portal.kernel.exception.SystemException {
045                    _resourceLocalService.deleteResource(resourceId);
046            }
047    
048            public void deleteResource(com.liferay.portal.model.Resource resource)
049                    throws com.liferay.portal.kernel.exception.SystemException {
050                    _resourceLocalService.deleteResource(resource);
051            }
052    
053            @SuppressWarnings("unchecked")
054            public java.util.List dynamicQuery(
055                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
056                    throws com.liferay.portal.kernel.exception.SystemException {
057                    return _resourceLocalService.dynamicQuery(dynamicQuery);
058            }
059    
060            @SuppressWarnings("unchecked")
061            public java.util.List dynamicQuery(
062                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
063                    int end) throws com.liferay.portal.kernel.exception.SystemException {
064                    return _resourceLocalService.dynamicQuery(dynamicQuery, start, end);
065            }
066    
067            @SuppressWarnings("unchecked")
068            public java.util.List dynamicQuery(
069                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
070                    int end,
071                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072                    throws com.liferay.portal.kernel.exception.SystemException {
073                    return _resourceLocalService.dynamicQuery(dynamicQuery, start, end,
074                            orderByComparator);
075            }
076    
077            public long dynamicQueryCount(
078                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
079                    throws com.liferay.portal.kernel.exception.SystemException {
080                    return _resourceLocalService.dynamicQueryCount(dynamicQuery);
081            }
082    
083            public com.liferay.portal.model.Resource getResource(long resourceId)
084                    throws com.liferay.portal.kernel.exception.PortalException,
085                            com.liferay.portal.kernel.exception.SystemException {
086                    return _resourceLocalService.getResource(resourceId);
087            }
088    
089            public java.util.List<com.liferay.portal.model.Resource> getResources(
090                    int start, int end)
091                    throws com.liferay.portal.kernel.exception.SystemException {
092                    return _resourceLocalService.getResources(start, end);
093            }
094    
095            public int getResourcesCount()
096                    throws com.liferay.portal.kernel.exception.SystemException {
097                    return _resourceLocalService.getResourcesCount();
098            }
099    
100            public com.liferay.portal.model.Resource updateResource(
101                    com.liferay.portal.model.Resource resource)
102                    throws com.liferay.portal.kernel.exception.SystemException {
103                    return _resourceLocalService.updateResource(resource);
104            }
105    
106            public com.liferay.portal.model.Resource updateResource(
107                    com.liferay.portal.model.Resource resource, boolean merge)
108                    throws com.liferay.portal.kernel.exception.SystemException {
109                    return _resourceLocalService.updateResource(resource, merge);
110            }
111    
112            public void addModelResources(long companyId, long groupId, long userId,
113                    java.lang.String name, long primKey,
114                    java.lang.String[] communityPermissions,
115                    java.lang.String[] guestPermissions)
116                    throws com.liferay.portal.kernel.exception.PortalException,
117                            com.liferay.portal.kernel.exception.SystemException {
118                    _resourceLocalService.addModelResources(companyId, groupId, userId,
119                            name, primKey, communityPermissions, guestPermissions);
120            }
121    
122            public void addModelResources(long companyId, long groupId, long userId,
123                    java.lang.String name, java.lang.String primKey,
124                    java.lang.String[] communityPermissions,
125                    java.lang.String[] guestPermissions)
126                    throws com.liferay.portal.kernel.exception.PortalException,
127                            com.liferay.portal.kernel.exception.SystemException {
128                    _resourceLocalService.addModelResources(companyId, groupId, userId,
129                            name, primKey, communityPermissions, guestPermissions);
130            }
131    
132            public com.liferay.portal.model.Resource addResource(long companyId,
133                    java.lang.String name, int scope, java.lang.String primKey)
134                    throws com.liferay.portal.kernel.exception.SystemException {
135                    return _resourceLocalService.addResource(companyId, name, scope, primKey);
136            }
137    
138            public void addResources(long companyId, long groupId,
139                    java.lang.String name, boolean portletActions)
140                    throws com.liferay.portal.kernel.exception.PortalException,
141                            com.liferay.portal.kernel.exception.SystemException {
142                    _resourceLocalService.addResources(companyId, groupId, name,
143                            portletActions);
144            }
145    
146            public void addResources(long companyId, long groupId, long userId,
147                    java.lang.String name, long primKey, boolean portletActions,
148                    boolean addCommunityPermissions, boolean addGuestPermissions)
149                    throws com.liferay.portal.kernel.exception.PortalException,
150                            com.liferay.portal.kernel.exception.SystemException {
151                    _resourceLocalService.addResources(companyId, groupId, userId, name,
152                            primKey, portletActions, addCommunityPermissions,
153                            addGuestPermissions);
154            }
155    
156            public void addResources(long companyId, long groupId, long userId,
157                    java.lang.String name, java.lang.String primKey,
158                    boolean portletActions, boolean addCommunityPermissions,
159                    boolean addGuestPermissions)
160                    throws com.liferay.portal.kernel.exception.PortalException,
161                            com.liferay.portal.kernel.exception.SystemException {
162                    _resourceLocalService.addResources(companyId, groupId, userId, name,
163                            primKey, portletActions, addCommunityPermissions,
164                            addGuestPermissions);
165            }
166    
167            public void deleteResource(long companyId, java.lang.String name,
168                    int scope, long primKey)
169                    throws com.liferay.portal.kernel.exception.PortalException,
170                            com.liferay.portal.kernel.exception.SystemException {
171                    _resourceLocalService.deleteResource(companyId, name, scope, primKey);
172            }
173    
174            public void deleteResource(long companyId, java.lang.String name,
175                    int scope, java.lang.String primKey)
176                    throws com.liferay.portal.kernel.exception.PortalException,
177                            com.liferay.portal.kernel.exception.SystemException {
178                    _resourceLocalService.deleteResource(companyId, name, scope, primKey);
179            }
180    
181            public void deleteResources(java.lang.String name)
182                    throws com.liferay.portal.kernel.exception.SystemException {
183                    _resourceLocalService.deleteResources(name);
184            }
185    
186            public long getLatestResourceId()
187                    throws com.liferay.portal.kernel.exception.SystemException {
188                    return _resourceLocalService.getLatestResourceId();
189            }
190    
191            public com.liferay.portal.model.Resource getResource(long companyId,
192                    java.lang.String name, int scope, java.lang.String primKey)
193                    throws com.liferay.portal.kernel.exception.PortalException,
194                            com.liferay.portal.kernel.exception.SystemException {
195                    return _resourceLocalService.getResource(companyId, name, scope, primKey);
196            }
197    
198            public java.util.List<com.liferay.portal.model.Resource> getResources()
199                    throws com.liferay.portal.kernel.exception.SystemException {
200                    return _resourceLocalService.getResources();
201            }
202    
203            public void updateResources(long companyId, java.lang.String name,
204                    int scope, java.lang.String primKey, java.lang.String newPrimKey)
205                    throws com.liferay.portal.kernel.exception.PortalException,
206                            com.liferay.portal.kernel.exception.SystemException {
207                    _resourceLocalService.updateResources(companyId, name, scope, primKey,
208                            newPrimKey);
209            }
210    
211            public void updateResources(long companyId, long groupId,
212                    java.lang.String name, long primKey,
213                    java.lang.String[] communityPermissions,
214                    java.lang.String[] guestPermissions)
215                    throws com.liferay.portal.kernel.exception.PortalException,
216                            com.liferay.portal.kernel.exception.SystemException {
217                    _resourceLocalService.updateResources(companyId, groupId, name,
218                            primKey, communityPermissions, guestPermissions);
219            }
220    
221            public void updateResources(long companyId, long groupId,
222                    java.lang.String name, java.lang.String primKey,
223                    java.lang.String[] communityPermissions,
224                    java.lang.String[] guestPermissions)
225                    throws com.liferay.portal.kernel.exception.PortalException,
226                            com.liferay.portal.kernel.exception.SystemException {
227                    _resourceLocalService.updateResources(companyId, groupId, name,
228                            primKey, communityPermissions, guestPermissions);
229            }
230    
231            public ResourceLocalService getWrappedResourceLocalService() {
232                    return _resourceLocalService;
233            }
234    
235            private ResourceLocalService _resourceLocalService;
236    }