1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service;
16  
17  
18  /**
19   * <a href="ResourceLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link ResourceLocalService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       ResourceLocalService
32   * @generated
33   */
34  public class ResourceLocalServiceWrapper implements ResourceLocalService {
35      public ResourceLocalServiceWrapper(
36          ResourceLocalService resourceLocalService) {
37          _resourceLocalService = resourceLocalService;
38      }
39  
40      public com.liferay.portal.model.Resource addResource(
41          com.liferay.portal.model.Resource resource)
42          throws com.liferay.portal.kernel.exception.SystemException {
43          return _resourceLocalService.addResource(resource);
44      }
45  
46      public com.liferay.portal.model.Resource createResource(long resourceId) {
47          return _resourceLocalService.createResource(resourceId);
48      }
49  
50      public void deleteResource(long resourceId)
51          throws com.liferay.portal.kernel.exception.PortalException,
52              com.liferay.portal.kernel.exception.SystemException {
53          _resourceLocalService.deleteResource(resourceId);
54      }
55  
56      public void deleteResource(com.liferay.portal.model.Resource resource)
57          throws com.liferay.portal.kernel.exception.SystemException {
58          _resourceLocalService.deleteResource(resource);
59      }
60  
61      @SuppressWarnings("unchecked")
62      public java.util.List dynamicQuery(
63          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
64          throws com.liferay.portal.kernel.exception.SystemException {
65          return _resourceLocalService.dynamicQuery(dynamicQuery);
66      }
67  
68      @SuppressWarnings("unchecked")
69      public java.util.List dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.kernel.exception.SystemException {
72          return _resourceLocalService.dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      @SuppressWarnings("unchecked")
76      public java.util.List dynamicQuery(
77          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78          int end,
79          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80          throws com.liferay.portal.kernel.exception.SystemException {
81          return _resourceLocalService.dynamicQuery(dynamicQuery, start, end,
82              orderByComparator);
83      }
84  
85      public long dynamicQueryCount(
86          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
87          throws com.liferay.portal.kernel.exception.SystemException {
88          return _resourceLocalService.dynamicQueryCount(dynamicQuery);
89      }
90  
91      public com.liferay.portal.model.Resource getResource(long resourceId)
92          throws com.liferay.portal.kernel.exception.PortalException,
93              com.liferay.portal.kernel.exception.SystemException {
94          return _resourceLocalService.getResource(resourceId);
95      }
96  
97      public java.util.List<com.liferay.portal.model.Resource> getResources(
98          int start, int end)
99          throws com.liferay.portal.kernel.exception.SystemException {
100         return _resourceLocalService.getResources(start, end);
101     }
102 
103     public int getResourcesCount()
104         throws com.liferay.portal.kernel.exception.SystemException {
105         return _resourceLocalService.getResourcesCount();
106     }
107 
108     public com.liferay.portal.model.Resource updateResource(
109         com.liferay.portal.model.Resource resource)
110         throws com.liferay.portal.kernel.exception.SystemException {
111         return _resourceLocalService.updateResource(resource);
112     }
113 
114     public com.liferay.portal.model.Resource updateResource(
115         com.liferay.portal.model.Resource resource, boolean merge)
116         throws com.liferay.portal.kernel.exception.SystemException {
117         return _resourceLocalService.updateResource(resource, merge);
118     }
119 
120     public void addModelResources(long companyId, long groupId, long userId,
121         java.lang.String name, long primKey,
122         java.lang.String[] communityPermissions,
123         java.lang.String[] guestPermissions)
124         throws com.liferay.portal.kernel.exception.PortalException,
125             com.liferay.portal.kernel.exception.SystemException {
126         _resourceLocalService.addModelResources(companyId, groupId, userId,
127             name, primKey, communityPermissions, guestPermissions);
128     }
129 
130     public void addModelResources(long companyId, long groupId, long userId,
131         java.lang.String name, java.lang.String primKey,
132         java.lang.String[] communityPermissions,
133         java.lang.String[] guestPermissions)
134         throws com.liferay.portal.kernel.exception.PortalException,
135             com.liferay.portal.kernel.exception.SystemException {
136         _resourceLocalService.addModelResources(companyId, groupId, userId,
137             name, primKey, communityPermissions, guestPermissions);
138     }
139 
140     public com.liferay.portal.model.Resource addResource(long companyId,
141         java.lang.String name, int scope, java.lang.String primKey)
142         throws com.liferay.portal.kernel.exception.SystemException {
143         return _resourceLocalService.addResource(companyId, name, scope, primKey);
144     }
145 
146     public void addResources(long companyId, long groupId,
147         java.lang.String name, boolean portletActions)
148         throws com.liferay.portal.kernel.exception.PortalException,
149             com.liferay.portal.kernel.exception.SystemException {
150         _resourceLocalService.addResources(companyId, groupId, name,
151             portletActions);
152     }
153 
154     public void addResources(long companyId, long groupId, long userId,
155         java.lang.String name, long primKey, boolean portletActions,
156         boolean addCommunityPermissions, boolean addGuestPermissions)
157         throws com.liferay.portal.kernel.exception.PortalException,
158             com.liferay.portal.kernel.exception.SystemException {
159         _resourceLocalService.addResources(companyId, groupId, userId, name,
160             primKey, portletActions, addCommunityPermissions,
161             addGuestPermissions);
162     }
163 
164     public void addResources(long companyId, long groupId, long userId,
165         java.lang.String name, java.lang.String primKey,
166         boolean portletActions, boolean addCommunityPermissions,
167         boolean addGuestPermissions)
168         throws com.liferay.portal.kernel.exception.PortalException,
169             com.liferay.portal.kernel.exception.SystemException {
170         _resourceLocalService.addResources(companyId, groupId, userId, name,
171             primKey, portletActions, addCommunityPermissions,
172             addGuestPermissions);
173     }
174 
175     public void deleteResource(long companyId, java.lang.String name,
176         int scope, long 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 deleteResource(long companyId, java.lang.String name,
183         int scope, java.lang.String primKey)
184         throws com.liferay.portal.kernel.exception.PortalException,
185             com.liferay.portal.kernel.exception.SystemException {
186         _resourceLocalService.deleteResource(companyId, name, scope, primKey);
187     }
188 
189     public void deleteResources(java.lang.String name)
190         throws com.liferay.portal.kernel.exception.SystemException {
191         _resourceLocalService.deleteResources(name);
192     }
193 
194     public long getLatestResourceId()
195         throws com.liferay.portal.kernel.exception.SystemException {
196         return _resourceLocalService.getLatestResourceId();
197     }
198 
199     public com.liferay.portal.model.Resource getResource(long companyId,
200         java.lang.String name, int scope, java.lang.String primKey)
201         throws com.liferay.portal.kernel.exception.PortalException,
202             com.liferay.portal.kernel.exception.SystemException {
203         return _resourceLocalService.getResource(companyId, name, scope, primKey);
204     }
205 
206     public java.util.List<com.liferay.portal.model.Resource> getResources()
207         throws com.liferay.portal.kernel.exception.SystemException {
208         return _resourceLocalService.getResources();
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 }