001    /**
002     * Copyright (c) 2000-2012 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            ServiceWrapper<ResourceCodeLocalService> {
028            public ResourceCodeLocalServiceWrapper(
029                    ResourceCodeLocalService resourceCodeLocalService) {
030                    _resourceCodeLocalService = resourceCodeLocalService;
031            }
032    
033            /**
034            * Adds the resource code to the database. Also notifies the appropriate model listeners.
035            *
036            * @param resourceCode the resource code
037            * @return the resource code that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portal.model.ResourceCode addResourceCode(
041                    com.liferay.portal.model.ResourceCode resourceCode)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _resourceCodeLocalService.addResourceCode(resourceCode);
044            }
045    
046            /**
047            * Creates a new resource code with the primary key. Does not add the resource code to the database.
048            *
049            * @param codeId the primary key for the new resource code
050            * @return the new resource code
051            */
052            public com.liferay.portal.model.ResourceCode createResourceCode(long codeId) {
053                    return _resourceCodeLocalService.createResourceCode(codeId);
054            }
055    
056            /**
057            * Deletes the resource code with the primary key from the database. Also notifies the appropriate model listeners.
058            *
059            * @param codeId the primary key of the resource code
060            * @throws PortalException if a resource code with the primary key could not be found
061            * @throws SystemException if a system exception occurred
062            */
063            public void deleteResourceCode(long codeId)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    _resourceCodeLocalService.deleteResourceCode(codeId);
067            }
068    
069            /**
070            * Deletes the resource code from the database. Also notifies the appropriate model listeners.
071            *
072            * @param resourceCode the resource code
073            * @throws SystemException if a system exception occurred
074            */
075            public void deleteResourceCode(
076                    com.liferay.portal.model.ResourceCode resourceCode)
077                    throws com.liferay.portal.kernel.exception.SystemException {
078                    _resourceCodeLocalService.deleteResourceCode(resourceCode);
079            }
080    
081            /**
082            * Performs a dynamic query on the database and returns the matching rows.
083            *
084            * @param dynamicQuery the dynamic query
085            * @return the matching rows
086            * @throws SystemException if a system exception occurred
087            */
088            @SuppressWarnings("rawtypes")
089            public java.util.List dynamicQuery(
090                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
091                    throws com.liferay.portal.kernel.exception.SystemException {
092                    return _resourceCodeLocalService.dynamicQuery(dynamicQuery);
093            }
094    
095            /**
096            * Performs a dynamic query on the database and returns a range of the matching rows.
097            *
098            * <p>
099            * 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.
100            * </p>
101            *
102            * @param dynamicQuery the dynamic query
103            * @param start the lower bound of the range of model instances
104            * @param end the upper bound of the range of model instances (not inclusive)
105            * @return the range of matching rows
106            * @throws SystemException if a system exception occurred
107            */
108            @SuppressWarnings("rawtypes")
109            public java.util.List dynamicQuery(
110                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
111                    int end) throws com.liferay.portal.kernel.exception.SystemException {
112                    return _resourceCodeLocalService.dynamicQuery(dynamicQuery, start, end);
113            }
114    
115            /**
116            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
117            *
118            * <p>
119            * 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.
120            * </p>
121            *
122            * @param dynamicQuery the dynamic query
123            * @param start the lower bound of the range of model instances
124            * @param end the upper bound of the range of model instances (not inclusive)
125            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
126            * @return the ordered range of matching rows
127            * @throws SystemException if a system exception occurred
128            */
129            @SuppressWarnings("rawtypes")
130            public java.util.List dynamicQuery(
131                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
132                    int end,
133                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134                    throws com.liferay.portal.kernel.exception.SystemException {
135                    return _resourceCodeLocalService.dynamicQuery(dynamicQuery, start, end,
136                            orderByComparator);
137            }
138    
139            /**
140            * Returns the number of rows that match the dynamic query.
141            *
142            * @param dynamicQuery the dynamic query
143            * @return the number of rows that match the dynamic query
144            * @throws SystemException if a system exception occurred
145            */
146            public long dynamicQueryCount(
147                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
148                    throws com.liferay.portal.kernel.exception.SystemException {
149                    return _resourceCodeLocalService.dynamicQueryCount(dynamicQuery);
150            }
151    
152            public com.liferay.portal.model.ResourceCode fetchResourceCode(long codeId)
153                    throws com.liferay.portal.kernel.exception.SystemException {
154                    return _resourceCodeLocalService.fetchResourceCode(codeId);
155            }
156    
157            /**
158            * Returns the resource code with the primary key.
159            *
160            * @param codeId the primary key of the resource code
161            * @return the resource code
162            * @throws PortalException if a resource code with the primary key could not be found
163            * @throws SystemException if a system exception occurred
164            */
165            public com.liferay.portal.model.ResourceCode getResourceCode(long codeId)
166                    throws com.liferay.portal.kernel.exception.PortalException,
167                            com.liferay.portal.kernel.exception.SystemException {
168                    return _resourceCodeLocalService.getResourceCode(codeId);
169            }
170    
171            public com.liferay.portal.model.PersistedModel getPersistedModel(
172                    java.io.Serializable primaryKeyObj)
173                    throws com.liferay.portal.kernel.exception.PortalException,
174                            com.liferay.portal.kernel.exception.SystemException {
175                    return _resourceCodeLocalService.getPersistedModel(primaryKeyObj);
176            }
177    
178            /**
179            * Returns a range of all the resource codes.
180            *
181            * <p>
182            * 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.
183            * </p>
184            *
185            * @param start the lower bound of the range of resource codes
186            * @param end the upper bound of the range of resource codes (not inclusive)
187            * @return the range of resource codes
188            * @throws SystemException if a system exception occurred
189            */
190            public java.util.List<com.liferay.portal.model.ResourceCode> getResourceCodes(
191                    int start, int end)
192                    throws com.liferay.portal.kernel.exception.SystemException {
193                    return _resourceCodeLocalService.getResourceCodes(start, end);
194            }
195    
196            /**
197            * Returns the number of resource codes.
198            *
199            * @return the number of resource codes
200            * @throws SystemException if a system exception occurred
201            */
202            public int getResourceCodesCount()
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return _resourceCodeLocalService.getResourceCodesCount();
205            }
206    
207            /**
208            * Updates the resource code in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
209            *
210            * @param resourceCode the resource code
211            * @return the resource code that was updated
212            * @throws SystemException if a system exception occurred
213            */
214            public com.liferay.portal.model.ResourceCode updateResourceCode(
215                    com.liferay.portal.model.ResourceCode resourceCode)
216                    throws com.liferay.portal.kernel.exception.SystemException {
217                    return _resourceCodeLocalService.updateResourceCode(resourceCode);
218            }
219    
220            /**
221            * Updates the resource code in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
222            *
223            * @param resourceCode the resource code
224            * @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.
225            * @return the resource code that was updated
226            * @throws SystemException if a system exception occurred
227            */
228            public com.liferay.portal.model.ResourceCode updateResourceCode(
229                    com.liferay.portal.model.ResourceCode resourceCode, boolean merge)
230                    throws com.liferay.portal.kernel.exception.SystemException {
231                    return _resourceCodeLocalService.updateResourceCode(resourceCode, merge);
232            }
233    
234            /**
235            * Returns the Spring bean ID for this bean.
236            *
237            * @return the Spring bean ID for this bean
238            */
239            public java.lang.String getBeanIdentifier() {
240                    return _resourceCodeLocalService.getBeanIdentifier();
241            }
242    
243            /**
244            * Sets the Spring bean ID for this bean.
245            *
246            * @param beanIdentifier the Spring bean ID for this bean
247            */
248            public void setBeanIdentifier(java.lang.String beanIdentifier) {
249                    _resourceCodeLocalService.setBeanIdentifier(beanIdentifier);
250            }
251    
252            public com.liferay.portal.model.ResourceCode addResourceCode(
253                    long companyId, java.lang.String name, int scope)
254                    throws com.liferay.portal.kernel.exception.SystemException {
255                    return _resourceCodeLocalService.addResourceCode(companyId, name, scope);
256            }
257    
258            public void checkResourceCodes()
259                    throws com.liferay.portal.kernel.exception.SystemException {
260                    _resourceCodeLocalService.checkResourceCodes();
261            }
262    
263            public void checkResourceCodes(long companyId, java.lang.String name)
264                    throws com.liferay.portal.kernel.exception.SystemException {
265                    _resourceCodeLocalService.checkResourceCodes(companyId, name);
266            }
267    
268            public com.liferay.portal.model.ResourceCode getResourceCode(
269                    long companyId, java.lang.String name, int scope)
270                    throws com.liferay.portal.kernel.exception.SystemException {
271                    return _resourceCodeLocalService.getResourceCode(companyId, name, scope);
272            }
273    
274            /**
275             * @deprecated Renamed to {@link #getWrappedService}
276             */
277            public ResourceCodeLocalService getWrappedResourceCodeLocalService() {
278                    return _resourceCodeLocalService;
279            }
280    
281            /**
282             * @deprecated Renamed to {@link #setWrappedService}
283             */
284            public void setWrappedResourceCodeLocalService(
285                    ResourceCodeLocalService resourceCodeLocalService) {
286                    _resourceCodeLocalService = resourceCodeLocalService;
287            }
288    
289            public ResourceCodeLocalService getWrappedService() {
290                    return _resourceCodeLocalService;
291            }
292    
293            public void setWrappedService(
294                    ResourceCodeLocalService resourceCodeLocalService) {
295                    _resourceCodeLocalService = resourceCodeLocalService;
296            }
297    
298            private ResourceCodeLocalService _resourceCodeLocalService;
299    }