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.portlet.softwarecatalog.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link SCFrameworkVersionLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       SCFrameworkVersionLocalService
026     * @generated
027     */
028    public class SCFrameworkVersionLocalServiceWrapper
029            implements SCFrameworkVersionLocalService,
030                    ServiceWrapper<SCFrameworkVersionLocalService> {
031            public SCFrameworkVersionLocalServiceWrapper(
032                    SCFrameworkVersionLocalService scFrameworkVersionLocalService) {
033                    _scFrameworkVersionLocalService = scFrameworkVersionLocalService;
034            }
035    
036            /**
037            * Adds the s c framework version to the database. Also notifies the appropriate model listeners.
038            *
039            * @param scFrameworkVersion the s c framework version
040            * @return the s c framework version that was added
041            * @throws SystemException if a system exception occurred
042            */
043            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion addSCFrameworkVersion(
044                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
045                    throws com.liferay.portal.kernel.exception.SystemException {
046                    return _scFrameworkVersionLocalService.addSCFrameworkVersion(scFrameworkVersion);
047            }
048    
049            /**
050            * Creates a new s c framework version with the primary key. Does not add the s c framework version to the database.
051            *
052            * @param frameworkVersionId the primary key for the new s c framework version
053            * @return the new s c framework version
054            */
055            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion createSCFrameworkVersion(
056                    long frameworkVersionId) {
057                    return _scFrameworkVersionLocalService.createSCFrameworkVersion(frameworkVersionId);
058            }
059    
060            /**
061            * Deletes the s c framework version with the primary key from the database. Also notifies the appropriate model listeners.
062            *
063            * @param frameworkVersionId the primary key of the s c framework version
064            * @throws PortalException if a s c framework version with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public void deleteSCFrameworkVersion(long frameworkVersionId)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    _scFrameworkVersionLocalService.deleteSCFrameworkVersion(frameworkVersionId);
071            }
072    
073            /**
074            * Deletes the s c framework version from the database. Also notifies the appropriate model listeners.
075            *
076            * @param scFrameworkVersion the s c framework version
077            * @throws SystemException if a system exception occurred
078            */
079            public void deleteSCFrameworkVersion(
080                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
081                    throws com.liferay.portal.kernel.exception.SystemException {
082                    _scFrameworkVersionLocalService.deleteSCFrameworkVersion(scFrameworkVersion);
083            }
084    
085            /**
086            * Performs a dynamic query on the database and returns the matching rows.
087            *
088            * @param dynamicQuery the dynamic query
089            * @return the matching rows
090            * @throws SystemException if a system exception occurred
091            */
092            @SuppressWarnings("rawtypes")
093            public java.util.List dynamicQuery(
094                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
095                    throws com.liferay.portal.kernel.exception.SystemException {
096                    return _scFrameworkVersionLocalService.dynamicQuery(dynamicQuery);
097            }
098    
099            /**
100            * Performs a dynamic query on the database and returns a range of the matching rows.
101            *
102            * <p>
103            * 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.
104            * </p>
105            *
106            * @param dynamicQuery the dynamic query
107            * @param start the lower bound of the range of model instances
108            * @param end the upper bound of the range of model instances (not inclusive)
109            * @return the range of matching rows
110            * @throws SystemException if a system exception occurred
111            */
112            @SuppressWarnings("rawtypes")
113            public java.util.List dynamicQuery(
114                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
115                    int end) throws com.liferay.portal.kernel.exception.SystemException {
116                    return _scFrameworkVersionLocalService.dynamicQuery(dynamicQuery,
117                            start, end);
118            }
119    
120            /**
121            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
122            *
123            * <p>
124            * 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.
125            * </p>
126            *
127            * @param dynamicQuery the dynamic query
128            * @param start the lower bound of the range of model instances
129            * @param end the upper bound of the range of model instances (not inclusive)
130            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
131            * @return the ordered range of matching rows
132            * @throws SystemException if a system exception occurred
133            */
134            @SuppressWarnings("rawtypes")
135            public java.util.List dynamicQuery(
136                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
137                    int end,
138                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139                    throws com.liferay.portal.kernel.exception.SystemException {
140                    return _scFrameworkVersionLocalService.dynamicQuery(dynamicQuery,
141                            start, end, orderByComparator);
142            }
143    
144            /**
145            * Returns the number of rows that match the dynamic query.
146            *
147            * @param dynamicQuery the dynamic query
148            * @return the number of rows that match the dynamic query
149            * @throws SystemException if a system exception occurred
150            */
151            public long dynamicQueryCount(
152                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
153                    throws com.liferay.portal.kernel.exception.SystemException {
154                    return _scFrameworkVersionLocalService.dynamicQueryCount(dynamicQuery);
155            }
156    
157            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion fetchSCFrameworkVersion(
158                    long frameworkVersionId)
159                    throws com.liferay.portal.kernel.exception.SystemException {
160                    return _scFrameworkVersionLocalService.fetchSCFrameworkVersion(frameworkVersionId);
161            }
162    
163            /**
164            * Returns the s c framework version with the primary key.
165            *
166            * @param frameworkVersionId the primary key of the s c framework version
167            * @return the s c framework version
168            * @throws PortalException if a s c framework version with the primary key could not be found
169            * @throws SystemException if a system exception occurred
170            */
171            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion getSCFrameworkVersion(
172                    long frameworkVersionId)
173                    throws com.liferay.portal.kernel.exception.PortalException,
174                            com.liferay.portal.kernel.exception.SystemException {
175                    return _scFrameworkVersionLocalService.getSCFrameworkVersion(frameworkVersionId);
176            }
177    
178            public com.liferay.portal.model.PersistedModel getPersistedModel(
179                    java.io.Serializable primaryKeyObj)
180                    throws com.liferay.portal.kernel.exception.PortalException,
181                            com.liferay.portal.kernel.exception.SystemException {
182                    return _scFrameworkVersionLocalService.getPersistedModel(primaryKeyObj);
183            }
184    
185            /**
186            * Returns a range of all the s c framework versions.
187            *
188            * <p>
189            * 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.
190            * </p>
191            *
192            * @param start the lower bound of the range of s c framework versions
193            * @param end the upper bound of the range of s c framework versions (not inclusive)
194            * @return the range of s c framework versions
195            * @throws SystemException if a system exception occurred
196            */
197            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getSCFrameworkVersions(
198                    int start, int end)
199                    throws com.liferay.portal.kernel.exception.SystemException {
200                    return _scFrameworkVersionLocalService.getSCFrameworkVersions(start, end);
201            }
202    
203            /**
204            * Returns the number of s c framework versions.
205            *
206            * @return the number of s c framework versions
207            * @throws SystemException if a system exception occurred
208            */
209            public int getSCFrameworkVersionsCount()
210                    throws com.liferay.portal.kernel.exception.SystemException {
211                    return _scFrameworkVersionLocalService.getSCFrameworkVersionsCount();
212            }
213    
214            /**
215            * Updates the s c framework version in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
216            *
217            * @param scFrameworkVersion the s c framework version
218            * @return the s c framework version that was updated
219            * @throws SystemException if a system exception occurred
220            */
221            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateSCFrameworkVersion(
222                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion)
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return _scFrameworkVersionLocalService.updateSCFrameworkVersion(scFrameworkVersion);
225            }
226    
227            /**
228            * Updates the s c framework version in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
229            *
230            * @param scFrameworkVersion the s c framework version
231            * @param merge whether to merge the s c framework version 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.
232            * @return the s c framework version that was updated
233            * @throws SystemException if a system exception occurred
234            */
235            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateSCFrameworkVersion(
236                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion scFrameworkVersion,
237                    boolean merge)
238                    throws com.liferay.portal.kernel.exception.SystemException {
239                    return _scFrameworkVersionLocalService.updateSCFrameworkVersion(scFrameworkVersion,
240                            merge);
241            }
242    
243            /**
244            * Returns the Spring bean ID for this bean.
245            *
246            * @return the Spring bean ID for this bean
247            */
248            public java.lang.String getBeanIdentifier() {
249                    return _scFrameworkVersionLocalService.getBeanIdentifier();
250            }
251    
252            /**
253            * Sets the Spring bean ID for this bean.
254            *
255            * @param beanIdentifier the Spring bean ID for this bean
256            */
257            public void setBeanIdentifier(java.lang.String beanIdentifier) {
258                    _scFrameworkVersionLocalService.setBeanIdentifier(beanIdentifier);
259            }
260    
261            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion addFrameworkVersion(
262                    long userId, java.lang.String name, java.lang.String url,
263                    boolean active, int priority,
264                    com.liferay.portal.service.ServiceContext serviceContext)
265                    throws com.liferay.portal.kernel.exception.PortalException,
266                            com.liferay.portal.kernel.exception.SystemException {
267                    return _scFrameworkVersionLocalService.addFrameworkVersion(userId,
268                            name, url, active, priority, serviceContext);
269            }
270    
271            public void addFrameworkVersionResources(long frameworkVersionId,
272                    boolean addGroupPermissions, boolean addGuestPermissions)
273                    throws com.liferay.portal.kernel.exception.PortalException,
274                            com.liferay.portal.kernel.exception.SystemException {
275                    _scFrameworkVersionLocalService.addFrameworkVersionResources(frameworkVersionId,
276                            addGroupPermissions, addGuestPermissions);
277            }
278    
279            public void addFrameworkVersionResources(long frameworkVersionId,
280                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
281                    throws com.liferay.portal.kernel.exception.PortalException,
282                            com.liferay.portal.kernel.exception.SystemException {
283                    _scFrameworkVersionLocalService.addFrameworkVersionResources(frameworkVersionId,
284                            groupPermissions, guestPermissions);
285            }
286    
287            public void addFrameworkVersionResources(
288                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion frameworkVersion,
289                    boolean addGroupPermissions, boolean addGuestPermissions)
290                    throws com.liferay.portal.kernel.exception.PortalException,
291                            com.liferay.portal.kernel.exception.SystemException {
292                    _scFrameworkVersionLocalService.addFrameworkVersionResources(frameworkVersion,
293                            addGroupPermissions, addGuestPermissions);
294            }
295    
296            public void addFrameworkVersionResources(
297                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion frameworkVersion,
298                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
299                    throws com.liferay.portal.kernel.exception.PortalException,
300                            com.liferay.portal.kernel.exception.SystemException {
301                    _scFrameworkVersionLocalService.addFrameworkVersionResources(frameworkVersion,
302                            groupPermissions, guestPermissions);
303            }
304    
305            public void deleteFrameworkVersion(long frameworkVersionId)
306                    throws com.liferay.portal.kernel.exception.PortalException,
307                            com.liferay.portal.kernel.exception.SystemException {
308                    _scFrameworkVersionLocalService.deleteFrameworkVersion(frameworkVersionId);
309            }
310    
311            public void deleteFrameworkVersion(
312                    com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion frameworkVersion)
313                    throws com.liferay.portal.kernel.exception.SystemException {
314                    _scFrameworkVersionLocalService.deleteFrameworkVersion(frameworkVersion);
315            }
316    
317            public void deleteFrameworkVersions(long groupId)
318                    throws com.liferay.portal.kernel.exception.SystemException {
319                    _scFrameworkVersionLocalService.deleteFrameworkVersions(groupId);
320            }
321    
322            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion getFrameworkVersion(
323                    long frameworkVersionId)
324                    throws com.liferay.portal.kernel.exception.PortalException,
325                            com.liferay.portal.kernel.exception.SystemException {
326                    return _scFrameworkVersionLocalService.getFrameworkVersion(frameworkVersionId);
327            }
328    
329            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
330                    long groupId, boolean active)
331                    throws com.liferay.portal.kernel.exception.SystemException {
332                    return _scFrameworkVersionLocalService.getFrameworkVersions(groupId,
333                            active);
334            }
335    
336            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
337                    long groupId, boolean active, int start, int end)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    return _scFrameworkVersionLocalService.getFrameworkVersions(groupId,
340                            active, start, end);
341            }
342    
343            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getFrameworkVersions(
344                    long groupId, int start, int end)
345                    throws com.liferay.portal.kernel.exception.SystemException {
346                    return _scFrameworkVersionLocalService.getFrameworkVersions(groupId,
347                            start, end);
348            }
349    
350            public int getFrameworkVersionsCount(long groupId)
351                    throws com.liferay.portal.kernel.exception.SystemException {
352                    return _scFrameworkVersionLocalService.getFrameworkVersionsCount(groupId);
353            }
354    
355            public int getFrameworkVersionsCount(long groupId, boolean active)
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    return _scFrameworkVersionLocalService.getFrameworkVersionsCount(groupId,
358                            active);
359            }
360    
361            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> getProductVersionFrameworkVersions(
362                    long productVersionId)
363                    throws com.liferay.portal.kernel.exception.SystemException {
364                    return _scFrameworkVersionLocalService.getProductVersionFrameworkVersions(productVersionId);
365            }
366    
367            public com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion updateFrameworkVersion(
368                    long frameworkVersionId, java.lang.String name, java.lang.String url,
369                    boolean active, int priority)
370                    throws com.liferay.portal.kernel.exception.PortalException,
371                            com.liferay.portal.kernel.exception.SystemException {
372                    return _scFrameworkVersionLocalService.updateFrameworkVersion(frameworkVersionId,
373                            name, url, active, priority);
374            }
375    
376            /**
377             * @deprecated Renamed to {@link #getWrappedService}
378             */
379            public SCFrameworkVersionLocalService getWrappedSCFrameworkVersionLocalService() {
380                    return _scFrameworkVersionLocalService;
381            }
382    
383            /**
384             * @deprecated Renamed to {@link #setWrappedService}
385             */
386            public void setWrappedSCFrameworkVersionLocalService(
387                    SCFrameworkVersionLocalService scFrameworkVersionLocalService) {
388                    _scFrameworkVersionLocalService = scFrameworkVersionLocalService;
389            }
390    
391            public SCFrameworkVersionLocalService getWrappedService() {
392                    return _scFrameworkVersionLocalService;
393            }
394    
395            public void setWrappedService(
396                    SCFrameworkVersionLocalService scFrameworkVersionLocalService) {
397                    _scFrameworkVersionLocalService = scFrameworkVersionLocalService;
398            }
399    
400            private SCFrameworkVersionLocalService _scFrameworkVersionLocalService;
401    }