001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
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
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
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
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
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
102            * @param start the lower bound of the range of model instances
103            * @param end the upper bound of the range of model instances (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
122            * @param start the lower bound of the range of model instances
123            * @param end the upper bound of the range of model instances (not inclusive)
124            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns the number of rows that match the dynamic query.
140            *
141            * @param dynamicQuery the dynamic query
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            * Returns the resource code with the primary key.
153            *
154            * @param codeId the primary key of the resource code
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            public com.liferay.portal.model.PersistedModel getPersistedModel(
166                    java.io.Serializable primaryKeyObj)
167                    throws com.liferay.portal.kernel.exception.PortalException,
168                            com.liferay.portal.kernel.exception.SystemException {
169                    return _resourceCodeLocalService.getPersistedModel(primaryKeyObj);
170            }
171    
172            /**
173            * Returns a range of all the resource codes.
174            *
175            * <p>
176            * 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.
177            * </p>
178            *
179            * @param start the lower bound of the range of resource codes
180            * @param end the upper bound of the range of resource codes (not inclusive)
181            * @return the range of resource codes
182            * @throws SystemException if a system exception occurred
183            */
184            public java.util.List<com.liferay.portal.model.ResourceCode> getResourceCodes(
185                    int start, int end)
186                    throws com.liferay.portal.kernel.exception.SystemException {
187                    return _resourceCodeLocalService.getResourceCodes(start, end);
188            }
189    
190            /**
191            * Returns the number of resource codes.
192            *
193            * @return the number of resource codes
194            * @throws SystemException if a system exception occurred
195            */
196            public int getResourceCodesCount()
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return _resourceCodeLocalService.getResourceCodesCount();
199            }
200    
201            /**
202            * Updates the resource code in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
203            *
204            * @param resourceCode the resource code
205            * @return the resource code that was updated
206            * @throws SystemException if a system exception occurred
207            */
208            public com.liferay.portal.model.ResourceCode updateResourceCode(
209                    com.liferay.portal.model.ResourceCode resourceCode)
210                    throws com.liferay.portal.kernel.exception.SystemException {
211                    return _resourceCodeLocalService.updateResourceCode(resourceCode);
212            }
213    
214            /**
215            * Updates the resource code in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
216            *
217            * @param resourceCode the resource code
218            * @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.
219            * @return the resource code that was updated
220            * @throws SystemException if a system exception occurred
221            */
222            public com.liferay.portal.model.ResourceCode updateResourceCode(
223                    com.liferay.portal.model.ResourceCode resourceCode, boolean merge)
224                    throws com.liferay.portal.kernel.exception.SystemException {
225                    return _resourceCodeLocalService.updateResourceCode(resourceCode, merge);
226            }
227    
228            /**
229            * Returns the Spring bean ID for this bean.
230            *
231            * @return the Spring bean ID for this bean
232            */
233            public java.lang.String getBeanIdentifier() {
234                    return _resourceCodeLocalService.getBeanIdentifier();
235            }
236    
237            /**
238            * Sets the Spring bean ID for this bean.
239            *
240            * @param beanIdentifier the Spring bean ID for this bean
241            */
242            public void setBeanIdentifier(java.lang.String beanIdentifier) {
243                    _resourceCodeLocalService.setBeanIdentifier(beanIdentifier);
244            }
245    
246            public com.liferay.portal.model.ResourceCode addResourceCode(
247                    long companyId, java.lang.String name, int scope)
248                    throws com.liferay.portal.kernel.exception.SystemException {
249                    return _resourceCodeLocalService.addResourceCode(companyId, name, scope);
250            }
251    
252            public void checkResourceCodes()
253                    throws com.liferay.portal.kernel.exception.SystemException {
254                    _resourceCodeLocalService.checkResourceCodes();
255            }
256    
257            public void checkResourceCodes(long companyId, java.lang.String name)
258                    throws com.liferay.portal.kernel.exception.SystemException {
259                    _resourceCodeLocalService.checkResourceCodes(companyId, name);
260            }
261    
262            public com.liferay.portal.model.ResourceCode getResourceCode(
263                    long companyId, java.lang.String name, int scope)
264                    throws com.liferay.portal.kernel.exception.SystemException {
265                    return _resourceCodeLocalService.getResourceCode(companyId, name, scope);
266            }
267    
268            public ResourceCodeLocalService getWrappedResourceCodeLocalService() {
269                    return _resourceCodeLocalService;
270            }
271    
272            public void setWrappedResourceCodeLocalService(
273                    ResourceCodeLocalService resourceCodeLocalService) {
274                    _resourceCodeLocalService = resourceCodeLocalService;
275            }
276    
277            private ResourceCodeLocalService _resourceCodeLocalService;
278    }