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="ResourceCodeLocalServiceUtil.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 ResourceCodeLocalService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       ResourceCodeLocalService
32   * @generated
33   */
34  public class ResourceCodeLocalServiceWrapper implements ResourceCodeLocalService {
35      public ResourceCodeLocalServiceWrapper(
36          ResourceCodeLocalService resourceCodeLocalService) {
37          _resourceCodeLocalService = resourceCodeLocalService;
38      }
39  
40      public com.liferay.portal.model.ResourceCode addResourceCode(
41          com.liferay.portal.model.ResourceCode resourceCode)
42          throws com.liferay.portal.kernel.exception.SystemException {
43          return _resourceCodeLocalService.addResourceCode(resourceCode);
44      }
45  
46      public com.liferay.portal.model.ResourceCode createResourceCode(long codeId) {
47          return _resourceCodeLocalService.createResourceCode(codeId);
48      }
49  
50      public void deleteResourceCode(long codeId)
51          throws com.liferay.portal.kernel.exception.PortalException,
52              com.liferay.portal.kernel.exception.SystemException {
53          _resourceCodeLocalService.deleteResourceCode(codeId);
54      }
55  
56      public void deleteResourceCode(
57          com.liferay.portal.model.ResourceCode resourceCode)
58          throws com.liferay.portal.kernel.exception.SystemException {
59          _resourceCodeLocalService.deleteResourceCode(resourceCode);
60      }
61  
62      @SuppressWarnings("unchecked")
63      public java.util.List dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.kernel.exception.SystemException {
66          return _resourceCodeLocalService.dynamicQuery(dynamicQuery);
67      }
68  
69      @SuppressWarnings("unchecked")
70      public java.util.List dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
72          int end) throws com.liferay.portal.kernel.exception.SystemException {
73          return _resourceCodeLocalService.dynamicQuery(dynamicQuery, start, end);
74      }
75  
76      @SuppressWarnings("unchecked")
77      public java.util.List dynamicQuery(
78          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79          int end,
80          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
81          throws com.liferay.portal.kernel.exception.SystemException {
82          return _resourceCodeLocalService.dynamicQuery(dynamicQuery, start, end,
83              orderByComparator);
84      }
85  
86      public long dynamicQueryCount(
87          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
88          throws com.liferay.portal.kernel.exception.SystemException {
89          return _resourceCodeLocalService.dynamicQueryCount(dynamicQuery);
90      }
91  
92      public com.liferay.portal.model.ResourceCode getResourceCode(long codeId)
93          throws com.liferay.portal.kernel.exception.PortalException,
94              com.liferay.portal.kernel.exception.SystemException {
95          return _resourceCodeLocalService.getResourceCode(codeId);
96      }
97  
98      public java.util.List<com.liferay.portal.model.ResourceCode> getResourceCodes(
99          int start, int end)
100         throws com.liferay.portal.kernel.exception.SystemException {
101         return _resourceCodeLocalService.getResourceCodes(start, end);
102     }
103 
104     public int getResourceCodesCount()
105         throws com.liferay.portal.kernel.exception.SystemException {
106         return _resourceCodeLocalService.getResourceCodesCount();
107     }
108 
109     public com.liferay.portal.model.ResourceCode updateResourceCode(
110         com.liferay.portal.model.ResourceCode resourceCode)
111         throws com.liferay.portal.kernel.exception.SystemException {
112         return _resourceCodeLocalService.updateResourceCode(resourceCode);
113     }
114 
115     public com.liferay.portal.model.ResourceCode updateResourceCode(
116         com.liferay.portal.model.ResourceCode resourceCode, boolean merge)
117         throws com.liferay.portal.kernel.exception.SystemException {
118         return _resourceCodeLocalService.updateResourceCode(resourceCode, merge);
119     }
120 
121     public com.liferay.portal.model.ResourceCode addResourceCode(
122         long companyId, java.lang.String name, int scope)
123         throws com.liferay.portal.kernel.exception.SystemException {
124         return _resourceCodeLocalService.addResourceCode(companyId, name, scope);
125     }
126 
127     public void checkResourceCodes()
128         throws com.liferay.portal.kernel.exception.SystemException {
129         _resourceCodeLocalService.checkResourceCodes();
130     }
131 
132     public void checkResourceCodes(long companyId, java.lang.String name)
133         throws com.liferay.portal.kernel.exception.SystemException {
134         _resourceCodeLocalService.checkResourceCodes(companyId, name);
135     }
136 
137     public com.liferay.portal.model.ResourceCode getResourceCode(
138         long companyId, java.lang.String name, int scope)
139         throws com.liferay.portal.kernel.exception.SystemException {
140         return _resourceCodeLocalService.getResourceCode(companyId, name, scope);
141     }
142 
143     public ResourceCodeLocalService getWrappedResourceCodeLocalService() {
144         return _resourceCodeLocalService;
145     }
146 
147     private ResourceCodeLocalService _resourceCodeLocalService;
148 }