1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service;
24  
25  
26  /**
27   * <a href="ResourceLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class is a wrapper for {@link ResourceLocalService}.
36   * </p>
37   *
38   * @author    Brian Wing Shun Chan
39   * @see       ResourceLocalService
40   * @generated
41   */
42  public class ResourceLocalServiceWrapper implements ResourceLocalService {
43      public ResourceLocalServiceWrapper(
44          ResourceLocalService resourceLocalService) {
45          _resourceLocalService = resourceLocalService;
46      }
47  
48      public com.liferay.portal.model.Resource addResource(
49          com.liferay.portal.model.Resource resource)
50          throws com.liferay.portal.SystemException {
51          return _resourceLocalService.addResource(resource);
52      }
53  
54      public com.liferay.portal.model.Resource createResource(long resourceId) {
55          return _resourceLocalService.createResource(resourceId);
56      }
57  
58      public void deleteResource(long resourceId)
59          throws com.liferay.portal.PortalException,
60              com.liferay.portal.SystemException {
61          _resourceLocalService.deleteResource(resourceId);
62      }
63  
64      public void deleteResource(com.liferay.portal.model.Resource resource)
65          throws com.liferay.portal.SystemException {
66          _resourceLocalService.deleteResource(resource);
67      }
68  
69      public java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
71          throws com.liferay.portal.SystemException {
72          return _resourceLocalService.dynamicQuery(dynamicQuery);
73      }
74  
75      public java.util.List<Object> dynamicQuery(
76          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77          int end) throws com.liferay.portal.SystemException {
78          return _resourceLocalService.dynamicQuery(dynamicQuery, start, end);
79      }
80  
81      public com.liferay.portal.model.Resource getResource(long resourceId)
82          throws com.liferay.portal.PortalException,
83              com.liferay.portal.SystemException {
84          return _resourceLocalService.getResource(resourceId);
85      }
86  
87      public java.util.List<com.liferay.portal.model.Resource> getResources(
88          int start, int end) throws com.liferay.portal.SystemException {
89          return _resourceLocalService.getResources(start, end);
90      }
91  
92      public int getResourcesCount() throws com.liferay.portal.SystemException {
93          return _resourceLocalService.getResourcesCount();
94      }
95  
96      public com.liferay.portal.model.Resource updateResource(
97          com.liferay.portal.model.Resource resource)
98          throws com.liferay.portal.SystemException {
99          return _resourceLocalService.updateResource(resource);
100     }
101 
102     public com.liferay.portal.model.Resource updateResource(
103         com.liferay.portal.model.Resource resource, boolean merge)
104         throws com.liferay.portal.SystemException {
105         return _resourceLocalService.updateResource(resource, merge);
106     }
107 
108     public void addModelResources(long companyId, long groupId, long userId,
109         java.lang.String name, long primKey,
110         java.lang.String[] communityPermissions,
111         java.lang.String[] guestPermissions)
112         throws com.liferay.portal.PortalException,
113             com.liferay.portal.SystemException {
114         _resourceLocalService.addModelResources(companyId, groupId, userId,
115             name, primKey, communityPermissions, guestPermissions);
116     }
117 
118     public void addModelResources(long companyId, long groupId, long userId,
119         java.lang.String name, java.lang.String primKey,
120         java.lang.String[] communityPermissions,
121         java.lang.String[] guestPermissions)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException {
124         _resourceLocalService.addModelResources(companyId, groupId, userId,
125             name, primKey, communityPermissions, guestPermissions);
126     }
127 
128     public com.liferay.portal.model.Resource addResource(long companyId,
129         java.lang.String name, int scope, java.lang.String primKey)
130         throws com.liferay.portal.SystemException {
131         return _resourceLocalService.addResource(companyId, name, scope, primKey);
132     }
133 
134     public void addResources(long companyId, long groupId,
135         java.lang.String name, boolean portletActions)
136         throws com.liferay.portal.PortalException,
137             com.liferay.portal.SystemException {
138         _resourceLocalService.addResources(companyId, groupId, name,
139             portletActions);
140     }
141 
142     public void addResources(long companyId, long groupId, long userId,
143         java.lang.String name, long primKey, boolean portletActions,
144         boolean addCommunityPermissions, boolean addGuestPermissions)
145         throws com.liferay.portal.PortalException,
146             com.liferay.portal.SystemException {
147         _resourceLocalService.addResources(companyId, groupId, userId, name,
148             primKey, portletActions, addCommunityPermissions,
149             addGuestPermissions);
150     }
151 
152     public void addResources(long companyId, long groupId, long userId,
153         java.lang.String name, java.lang.String primKey,
154         boolean portletActions, boolean addCommunityPermissions,
155         boolean addGuestPermissions)
156         throws com.liferay.portal.PortalException,
157             com.liferay.portal.SystemException {
158         _resourceLocalService.addResources(companyId, groupId, userId, name,
159             primKey, portletActions, addCommunityPermissions,
160             addGuestPermissions);
161     }
162 
163     public void deleteResource(long companyId, java.lang.String name,
164         int scope, long primKey)
165         throws com.liferay.portal.PortalException,
166             com.liferay.portal.SystemException {
167         _resourceLocalService.deleteResource(companyId, name, scope, primKey);
168     }
169 
170     public void deleteResource(long companyId, java.lang.String name,
171         int scope, java.lang.String primKey)
172         throws com.liferay.portal.PortalException,
173             com.liferay.portal.SystemException {
174         _resourceLocalService.deleteResource(companyId, name, scope, primKey);
175     }
176 
177     public void deleteResources(java.lang.String name)
178         throws com.liferay.portal.SystemException {
179         _resourceLocalService.deleteResources(name);
180     }
181 
182     public long getLatestResourceId() throws com.liferay.portal.SystemException {
183         return _resourceLocalService.getLatestResourceId();
184     }
185 
186     public com.liferay.portal.model.Resource getResource(long companyId,
187         java.lang.String name, int scope, java.lang.String primKey)
188         throws com.liferay.portal.PortalException,
189             com.liferay.portal.SystemException {
190         return _resourceLocalService.getResource(companyId, name, scope, primKey);
191     }
192 
193     public java.util.List<com.liferay.portal.model.Resource> getResources()
194         throws com.liferay.portal.SystemException {
195         return _resourceLocalService.getResources();
196     }
197 
198     public void updateResources(long companyId, long groupId,
199         java.lang.String name, long primKey,
200         java.lang.String[] communityPermissions,
201         java.lang.String[] guestPermissions)
202         throws com.liferay.portal.PortalException,
203             com.liferay.portal.SystemException {
204         _resourceLocalService.updateResources(companyId, groupId, name,
205             primKey, communityPermissions, guestPermissions);
206     }
207 
208     public void updateResources(long companyId, long groupId,
209         java.lang.String name, java.lang.String primKey,
210         java.lang.String[] communityPermissions,
211         java.lang.String[] guestPermissions)
212         throws com.liferay.portal.PortalException,
213             com.liferay.portal.SystemException {
214         _resourceLocalService.updateResources(companyId, groupId, name,
215             primKey, communityPermissions, guestPermissions);
216     }
217 
218     public ResourceLocalService getWrappedResourceLocalService() {
219         return _resourceLocalService;
220     }
221 
222     private ResourceLocalService _resourceLocalService;
223 }