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