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