001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link ResourceCodeLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       ResourceCodeLocalService
024     * @generated
025     */
026    public class ResourceCodeLocalServiceWrapper implements ResourceCodeLocalService {
027            public ResourceCodeLocalServiceWrapper(
028                    ResourceCodeLocalService resourceCodeLocalService) {
029                    _resourceCodeLocalService = resourceCodeLocalService;
030            }
031    
032            /**
033            * Adds the resource code to the database. Also notifies the appropriate model listeners.
034            *
035            * @param resourceCode the resource code to add
036            * @return the resource code that was added
037            * @throws SystemException if a system exception occurred
038            */
039            public com.liferay.portal.model.ResourceCode addResourceCode(
040                    com.liferay.portal.model.ResourceCode resourceCode)
041                    throws com.liferay.portal.kernel.exception.SystemException {
042                    return _resourceCodeLocalService.addResourceCode(resourceCode);
043            }
044    
045            /**
046            * Creates a new resource code with the primary key. Does not add the resource code to the database.
047            *
048            * @param codeId the primary key for the new resource code
049            * @return the new resource code
050            */
051            public com.liferay.portal.model.ResourceCode createResourceCode(long codeId) {
052                    return _resourceCodeLocalService.createResourceCode(codeId);
053            }
054    
055            /**
056            * Deletes the resource code with the primary key from the database. Also notifies the appropriate model listeners.
057            *
058            * @param codeId the primary key of the resource code to delete
059            * @throws PortalException if a resource code with the primary key could not be found
060            * @throws SystemException if a system exception occurred
061            */
062            public void deleteResourceCode(long codeId)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException {
065                    _resourceCodeLocalService.deleteResourceCode(codeId);
066            }
067    
068            /**
069            * Deletes the resource code from the database. Also notifies the appropriate model listeners.
070            *
071            * @param resourceCode the resource code to delete
072            * @throws SystemException if a system exception occurred
073            */
074            public void deleteResourceCode(
075                    com.liferay.portal.model.ResourceCode resourceCode)
076                    throws com.liferay.portal.kernel.exception.SystemException {
077                    _resourceCodeLocalService.deleteResourceCode(resourceCode);
078            }
079    
080            /**
081            * Performs a dynamic query on the database and returns the matching rows.
082            *
083            * @param dynamicQuery the dynamic query to search with
084            * @return the matching rows
085            * @throws SystemException if a system exception occurred
086            */
087            @SuppressWarnings("rawtypes")
088            public java.util.List dynamicQuery(
089                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
090                    throws com.liferay.portal.kernel.exception.SystemException {
091                    return _resourceCodeLocalService.dynamicQuery(dynamicQuery);
092            }
093    
094            /**
095            * Performs a dynamic query on the database and returns a range of the matching rows.
096            *
097            * <p>
098            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
099            * </p>
100            *
101            * @param dynamicQuery the dynamic query to search with
102            * @param start the lower bound of the range of model instances to return
103            * @param end the upper bound of the range of model instances to return (not inclusive)
104            * @return the range of matching rows
105            * @throws SystemException if a system exception occurred
106            */
107            @SuppressWarnings("rawtypes")
108            public java.util.List dynamicQuery(
109                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
110                    int end) throws com.liferay.portal.kernel.exception.SystemException {
111                    return _resourceCodeLocalService.dynamicQuery(dynamicQuery, start, end);
112            }
113    
114            /**
115            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
116            *
117            * <p>
118            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
119            * </p>
120            *
121            * @param dynamicQuery the dynamic query to search with
122            * @param start the lower bound of the range of model instances to return
123            * @param end the upper bound of the range of model instances to return (not inclusive)
124            * @param orderByComparator the comparator to order the results by
125            * @return the ordered range of matching rows
126            * @throws SystemException if a system exception occurred
127            */
128            @SuppressWarnings("rawtypes")
129            public java.util.List dynamicQuery(
130                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
131                    int end,
132                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133                    throws com.liferay.portal.kernel.exception.SystemException {
134                    return _resourceCodeLocalService.dynamicQuery(dynamicQuery, start, end,
135                            orderByComparator);
136            }
137    
138            /**
139            * Counts the number of rows that match the dynamic query.
140            *
141            * @param dynamicQuery the dynamic query to search with
142            * @return the number of rows that match the dynamic query
143            * @throws SystemException if a system exception occurred
144            */
145            public long dynamicQueryCount(
146                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
147                    throws com.liferay.portal.kernel.exception.SystemException {
148                    return _resourceCodeLocalService.dynamicQueryCount(dynamicQuery);
149            }
150    
151            /**
152            * Gets the resource code with the primary key.
153            *
154            * @param codeId the primary key of the resource code to get
155            * @return the resource code
156            * @throws PortalException if a resource code with the primary key could not be found
157            * @throws SystemException if a system exception occurred
158            */
159            public com.liferay.portal.model.ResourceCode getResourceCode(long codeId)
160                    throws com.liferay.portal.kernel.exception.PortalException,
161                            com.liferay.portal.kernel.exception.SystemException {
162                    return _resourceCodeLocalService.getResourceCode(codeId);
163            }
164    
165            /**
166            * Gets a range of all the resource codes.
167            *
168            * <p>
169            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
170            * </p>
171            *
172            * @param start the lower bound of the range of resource codes to return
173            * @param end the upper bound of the range of resource codes to return (not inclusive)
174            * @return the range of resource codes
175            * @throws SystemException if a system exception occurred
176            */
177            public java.util.List<com.liferay.portal.model.ResourceCode> getResourceCodes(
178                    int start, int end)
179                    throws com.liferay.portal.kernel.exception.SystemException {
180                    return _resourceCodeLocalService.getResourceCodes(start, end);
181            }
182    
183            /**
184            * Gets the number of resource codes.
185            *
186            * @return the number of resource codes
187            * @throws SystemException if a system exception occurred
188            */
189            public int getResourceCodesCount()
190                    throws com.liferay.portal.kernel.exception.SystemException {
191                    return _resourceCodeLocalService.getResourceCodesCount();
192            }
193    
194            /**
195            * Updates the resource code in the database. Also notifies the appropriate model listeners.
196            *
197            * @param resourceCode the resource code to update
198            * @return the resource code that was updated
199            * @throws SystemException if a system exception occurred
200            */
201            public com.liferay.portal.model.ResourceCode updateResourceCode(
202                    com.liferay.portal.model.ResourceCode resourceCode)
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return _resourceCodeLocalService.updateResourceCode(resourceCode);
205            }
206    
207            /**
208            * Updates the resource code in the database. Also notifies the appropriate model listeners.
209            *
210            * @param resourceCode the resource code to update
211            * @param merge whether to merge the resource code with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
212            * @return the resource code that was updated
213            * @throws SystemException if a system exception occurred
214            */
215            public com.liferay.portal.model.ResourceCode updateResourceCode(
216                    com.liferay.portal.model.ResourceCode resourceCode, boolean merge)
217                    throws com.liferay.portal.kernel.exception.SystemException {
218                    return _resourceCodeLocalService.updateResourceCode(resourceCode, merge);
219            }
220    
221            public com.liferay.portal.model.ResourceCode addResourceCode(
222                    long companyId, java.lang.String name, int scope)
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return _resourceCodeLocalService.addResourceCode(companyId, name, scope);
225            }
226    
227            public void checkResourceCodes()
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    _resourceCodeLocalService.checkResourceCodes();
230            }
231    
232            public void checkResourceCodes(long companyId, java.lang.String name)
233                    throws com.liferay.portal.kernel.exception.SystemException {
234                    _resourceCodeLocalService.checkResourceCodes(companyId, name);
235            }
236    
237            public com.liferay.portal.model.ResourceCode getResourceCode(
238                    long companyId, java.lang.String name, int scope)
239                    throws com.liferay.portal.kernel.exception.SystemException {
240                    return _resourceCodeLocalService.getResourceCode(companyId, name, scope);
241            }
242    
243            public ResourceCodeLocalService getWrappedResourceCodeLocalService() {
244                    return _resourceCodeLocalService;
245            }
246    
247            private ResourceCodeLocalService _resourceCodeLocalService;
248    }