001
014
015 package com.liferay.portal.service;
016
017
026 public class ResourceLocalServiceWrapper implements ResourceLocalService {
027 public ResourceLocalServiceWrapper(
028 ResourceLocalService resourceLocalService) {
029 _resourceLocalService = resourceLocalService;
030 }
031
032
039 public com.liferay.portal.model.Resource addResource(
040 com.liferay.portal.model.Resource resource)
041 throws com.liferay.portal.kernel.exception.SystemException {
042 return _resourceLocalService.addResource(resource);
043 }
044
045
051 public com.liferay.portal.model.Resource createResource(long resourceId) {
052 return _resourceLocalService.createResource(resourceId);
053 }
054
055
062 public void deleteResource(long resourceId)
063 throws com.liferay.portal.kernel.exception.PortalException,
064 com.liferay.portal.kernel.exception.SystemException {
065 _resourceLocalService.deleteResource(resourceId);
066 }
067
068
074 public void deleteResource(com.liferay.portal.model.Resource resource)
075 throws com.liferay.portal.kernel.exception.SystemException {
076 _resourceLocalService.deleteResource(resource);
077 }
078
079
086 @SuppressWarnings("rawtypes")
087 public java.util.List dynamicQuery(
088 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
089 throws com.liferay.portal.kernel.exception.SystemException {
090 return _resourceLocalService.dynamicQuery(dynamicQuery);
091 }
092
093
106 @SuppressWarnings("rawtypes")
107 public java.util.List dynamicQuery(
108 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
109 int end) throws com.liferay.portal.kernel.exception.SystemException {
110 return _resourceLocalService.dynamicQuery(dynamicQuery, start, end);
111 }
112
113
127 @SuppressWarnings("rawtypes")
128 public java.util.List dynamicQuery(
129 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130 int end,
131 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
132 throws com.liferay.portal.kernel.exception.SystemException {
133 return _resourceLocalService.dynamicQuery(dynamicQuery, start, end,
134 orderByComparator);
135 }
136
137
144 public long dynamicQueryCount(
145 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
146 throws com.liferay.portal.kernel.exception.SystemException {
147 return _resourceLocalService.dynamicQueryCount(dynamicQuery);
148 }
149
150
158 public com.liferay.portal.model.Resource getResource(long resourceId)
159 throws com.liferay.portal.kernel.exception.PortalException,
160 com.liferay.portal.kernel.exception.SystemException {
161 return _resourceLocalService.getResource(resourceId);
162 }
163
164
176 public java.util.List<com.liferay.portal.model.Resource> getResources(
177 int start, int end)
178 throws com.liferay.portal.kernel.exception.SystemException {
179 return _resourceLocalService.getResources(start, end);
180 }
181
182
188 public int getResourcesCount()
189 throws com.liferay.portal.kernel.exception.SystemException {
190 return _resourceLocalService.getResourcesCount();
191 }
192
193
200 public com.liferay.portal.model.Resource updateResource(
201 com.liferay.portal.model.Resource resource)
202 throws com.liferay.portal.kernel.exception.SystemException {
203 return _resourceLocalService.updateResource(resource);
204 }
205
206
214 public com.liferay.portal.model.Resource updateResource(
215 com.liferay.portal.model.Resource resource, boolean merge)
216 throws com.liferay.portal.kernel.exception.SystemException {
217 return _resourceLocalService.updateResource(resource, merge);
218 }
219
220 public void addModelResources(long companyId, long groupId, long userId,
221 java.lang.String name, long primKey,
222 java.lang.String[] communityPermissions,
223 java.lang.String[] guestPermissions)
224 throws com.liferay.portal.kernel.exception.PortalException,
225 com.liferay.portal.kernel.exception.SystemException {
226 _resourceLocalService.addModelResources(companyId, groupId, userId,
227 name, primKey, communityPermissions, guestPermissions);
228 }
229
230 public void addModelResources(long companyId, long groupId, long userId,
231 java.lang.String name, java.lang.String primKey,
232 java.lang.String[] communityPermissions,
233 java.lang.String[] guestPermissions)
234 throws com.liferay.portal.kernel.exception.PortalException,
235 com.liferay.portal.kernel.exception.SystemException {
236 _resourceLocalService.addModelResources(companyId, groupId, userId,
237 name, primKey, communityPermissions, guestPermissions);
238 }
239
240 public com.liferay.portal.model.Resource addResource(long companyId,
241 java.lang.String name, int scope, java.lang.String primKey)
242 throws com.liferay.portal.kernel.exception.SystemException {
243 return _resourceLocalService.addResource(companyId, name, scope, primKey);
244 }
245
246 public void addResources(long companyId, long groupId,
247 java.lang.String name, boolean portletActions)
248 throws com.liferay.portal.kernel.exception.PortalException,
249 com.liferay.portal.kernel.exception.SystemException {
250 _resourceLocalService.addResources(companyId, groupId, name,
251 portletActions);
252 }
253
254 public void addResources(long companyId, long groupId, long userId,
255 java.lang.String name, long primKey, boolean portletActions,
256 boolean addCommunityPermissions, boolean addGuestPermissions)
257 throws com.liferay.portal.kernel.exception.PortalException,
258 com.liferay.portal.kernel.exception.SystemException {
259 _resourceLocalService.addResources(companyId, groupId, userId, name,
260 primKey, portletActions, addCommunityPermissions,
261 addGuestPermissions);
262 }
263
264 public void addResources(long companyId, long groupId, long userId,
265 java.lang.String name, java.lang.String primKey,
266 boolean portletActions, boolean addCommunityPermissions,
267 boolean addGuestPermissions)
268 throws com.liferay.portal.kernel.exception.PortalException,
269 com.liferay.portal.kernel.exception.SystemException {
270 _resourceLocalService.addResources(companyId, groupId, userId, name,
271 primKey, portletActions, addCommunityPermissions,
272 addGuestPermissions);
273 }
274
275 public void deleteResource(long companyId, java.lang.String name,
276 int scope, long primKey)
277 throws com.liferay.portal.kernel.exception.PortalException,
278 com.liferay.portal.kernel.exception.SystemException {
279 _resourceLocalService.deleteResource(companyId, name, scope, primKey);
280 }
281
282 public void deleteResource(long companyId, java.lang.String name,
283 int scope, java.lang.String primKey)
284 throws com.liferay.portal.kernel.exception.PortalException,
285 com.liferay.portal.kernel.exception.SystemException {
286 _resourceLocalService.deleteResource(companyId, name, scope, primKey);
287 }
288
289 public void deleteResources(java.lang.String name)
290 throws com.liferay.portal.kernel.exception.SystemException {
291 _resourceLocalService.deleteResources(name);
292 }
293
294 public long getLatestResourceId()
295 throws com.liferay.portal.kernel.exception.SystemException {
296 return _resourceLocalService.getLatestResourceId();
297 }
298
299 public com.liferay.portal.model.Resource getResource(long companyId,
300 java.lang.String name, int scope, java.lang.String primKey)
301 throws com.liferay.portal.kernel.exception.PortalException,
302 com.liferay.portal.kernel.exception.SystemException {
303 return _resourceLocalService.getResource(companyId, name, scope, primKey);
304 }
305
306 public java.util.List<com.liferay.portal.model.Resource> getResources()
307 throws com.liferay.portal.kernel.exception.SystemException {
308 return _resourceLocalService.getResources();
309 }
310
311 public void updateResources(long companyId, java.lang.String name,
312 int scope, java.lang.String primKey, java.lang.String newPrimKey)
313 throws com.liferay.portal.kernel.exception.PortalException,
314 com.liferay.portal.kernel.exception.SystemException {
315 _resourceLocalService.updateResources(companyId, name, scope, primKey,
316 newPrimKey);
317 }
318
319 public void updateResources(long companyId, long groupId,
320 java.lang.String name, long primKey,
321 java.lang.String[] communityPermissions,
322 java.lang.String[] guestPermissions)
323 throws com.liferay.portal.kernel.exception.PortalException,
324 com.liferay.portal.kernel.exception.SystemException {
325 _resourceLocalService.updateResources(companyId, groupId, name,
326 primKey, communityPermissions, guestPermissions);
327 }
328
329 public void updateResources(long companyId, long groupId,
330 java.lang.String name, java.lang.String primKey,
331 java.lang.String[] communityPermissions,
332 java.lang.String[] guestPermissions)
333 throws com.liferay.portal.kernel.exception.PortalException,
334 com.liferay.portal.kernel.exception.SystemException {
335 _resourceLocalService.updateResources(companyId, groupId, name,
336 primKey, communityPermissions, guestPermissions);
337 }
338
339 public ResourceLocalService getWrappedResourceLocalService() {
340 return _resourceLocalService;
341 }
342
343 private ResourceLocalService _resourceLocalService;
344 }