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.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.PortalException,
52              com.liferay.portal.SystemException {
53          _resourceLocalService.deleteResource(resourceId);
54      }
55  
56      public void deleteResource(com.liferay.portal.model.Resource resource)
57          throws com.liferay.portal.SystemException {
58          _resourceLocalService.deleteResource(resource);
59      }
60  
61      public java.util.List<Object> dynamicQuery(
62          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
63          throws com.liferay.portal.SystemException {
64          return _resourceLocalService.dynamicQuery(dynamicQuery);
65      }
66  
67      public java.util.List<Object> dynamicQuery(
68          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
69          int end) throws com.liferay.portal.SystemException {
70          return _resourceLocalService.dynamicQuery(dynamicQuery, start, end);
71      }
72  
73      public java.util.List<Object> dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75          int end,
76          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77          throws com.liferay.portal.SystemException {
78          return _resourceLocalService.dynamicQuery(dynamicQuery, start, end,
79              orderByComparator);
80      }
81  
82      public int dynamicQueryCount(
83          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84          throws com.liferay.portal.SystemException {
85          return _resourceLocalService.dynamicQueryCount(dynamicQuery);
86      }
87  
88      public com.liferay.portal.model.Resource getResource(long resourceId)
89          throws com.liferay.portal.PortalException,
90              com.liferay.portal.SystemException {
91          return _resourceLocalService.getResource(resourceId);
92      }
93  
94      public java.util.List<com.liferay.portal.model.Resource> getResources(
95          int start, int end) throws com.liferay.portal.SystemException {
96          return _resourceLocalService.getResources(start, end);
97      }
98  
99      public int getResourcesCount() throws com.liferay.portal.SystemException {
100         return _resourceLocalService.getResourcesCount();
101     }
102 
103     public com.liferay.portal.model.Resource updateResource(
104         com.liferay.portal.model.Resource resource)
105         throws com.liferay.portal.SystemException {
106         return _resourceLocalService.updateResource(resource);
107     }
108 
109     public com.liferay.portal.model.Resource updateResource(
110         com.liferay.portal.model.Resource resource, boolean merge)
111         throws com.liferay.portal.SystemException {
112         return _resourceLocalService.updateResource(resource, merge);
113     }
114 
115     public void addModelResources(long companyId, long groupId, long userId,
116         java.lang.String name, long primKey,
117         java.lang.String[] communityPermissions,
118         java.lang.String[] guestPermissions)
119         throws com.liferay.portal.PortalException,
120             com.liferay.portal.SystemException {
121         _resourceLocalService.addModelResources(companyId, groupId, userId,
122             name, primKey, communityPermissions, guestPermissions);
123     }
124 
125     public void addModelResources(long companyId, long groupId, long userId,
126         java.lang.String name, java.lang.String primKey,
127         java.lang.String[] communityPermissions,
128         java.lang.String[] guestPermissions)
129         throws com.liferay.portal.PortalException,
130             com.liferay.portal.SystemException {
131         _resourceLocalService.addModelResources(companyId, groupId, userId,
132             name, primKey, communityPermissions, guestPermissions);
133     }
134 
135     public com.liferay.portal.model.Resource addResource(long companyId,
136         java.lang.String name, int scope, java.lang.String primKey)
137         throws com.liferay.portal.SystemException {
138         return _resourceLocalService.addResource(companyId, name, scope, primKey);
139     }
140 
141     public void addResources(long companyId, long groupId,
142         java.lang.String name, boolean portletActions)
143         throws com.liferay.portal.PortalException,
144             com.liferay.portal.SystemException {
145         _resourceLocalService.addResources(companyId, groupId, name,
146             portletActions);
147     }
148 
149     public void addResources(long companyId, long groupId, long userId,
150         java.lang.String name, long primKey, boolean portletActions,
151         boolean addCommunityPermissions, boolean addGuestPermissions)
152         throws com.liferay.portal.PortalException,
153             com.liferay.portal.SystemException {
154         _resourceLocalService.addResources(companyId, groupId, userId, name,
155             primKey, portletActions, addCommunityPermissions,
156             addGuestPermissions);
157     }
158 
159     public void addResources(long companyId, long groupId, long userId,
160         java.lang.String name, java.lang.String primKey,
161         boolean portletActions, boolean addCommunityPermissions,
162         boolean addGuestPermissions)
163         throws com.liferay.portal.PortalException,
164             com.liferay.portal.SystemException {
165         _resourceLocalService.addResources(companyId, groupId, userId, name,
166             primKey, portletActions, addCommunityPermissions,
167             addGuestPermissions);
168     }
169 
170     public void deleteResource(long companyId, java.lang.String name,
171         int scope, long primKey)
172         throws com.liferay.portal.PortalException,
173             com.liferay.portal.SystemException {
174         _resourceLocalService.deleteResource(companyId, name, scope, primKey);
175     }
176 
177     public void deleteResource(long companyId, java.lang.String name,
178         int scope, java.lang.String primKey)
179         throws com.liferay.portal.PortalException,
180             com.liferay.portal.SystemException {
181         _resourceLocalService.deleteResource(companyId, name, scope, primKey);
182     }
183 
184     public void deleteResources(java.lang.String name)
185         throws com.liferay.portal.SystemException {
186         _resourceLocalService.deleteResources(name);
187     }
188 
189     public long getLatestResourceId() throws com.liferay.portal.SystemException {
190         return _resourceLocalService.getLatestResourceId();
191     }
192 
193     public com.liferay.portal.model.Resource getResource(long companyId,
194         java.lang.String name, int scope, java.lang.String primKey)
195         throws com.liferay.portal.PortalException,
196             com.liferay.portal.SystemException {
197         return _resourceLocalService.getResource(companyId, name, scope, primKey);
198     }
199 
200     public java.util.List<com.liferay.portal.model.Resource> getResources()
201         throws com.liferay.portal.SystemException {
202         return _resourceLocalService.getResources();
203     }
204 
205     public void updateResources(long companyId, long groupId,
206         java.lang.String name, long primKey,
207         java.lang.String[] communityPermissions,
208         java.lang.String[] guestPermissions)
209         throws com.liferay.portal.PortalException,
210             com.liferay.portal.SystemException {
211         _resourceLocalService.updateResources(companyId, groupId, name,
212             primKey, communityPermissions, guestPermissions);
213     }
214 
215     public void updateResources(long companyId, long groupId,
216         java.lang.String name, java.lang.String primKey,
217         java.lang.String[] communityPermissions,
218         java.lang.String[] guestPermissions)
219         throws com.liferay.portal.PortalException,
220             com.liferay.portal.SystemException {
221         _resourceLocalService.updateResources(companyId, groupId, name,
222             primKey, communityPermissions, guestPermissions);
223     }
224 
225     public ResourceLocalService getWrappedResourceLocalService() {
226         return _resourceLocalService;
227     }
228 
229     private ResourceLocalService _resourceLocalService;
230 }