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