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 SCProductEntryLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       SCProductEntryLocalService
026     * @generated
027     */
028    public class SCProductEntryLocalServiceWrapper
029            implements SCProductEntryLocalService,
030                    ServiceWrapper<SCProductEntryLocalService> {
031            public SCProductEntryLocalServiceWrapper(
032                    SCProductEntryLocalService scProductEntryLocalService) {
033                    _scProductEntryLocalService = scProductEntryLocalService;
034            }
035    
036            /**
037            * Adds the s c product entry to the database. Also notifies the appropriate model listeners.
038            *
039            * @param scProductEntry the s c product entry
040            * @return the s c product entry that was added
041            * @throws SystemException if a system exception occurred
042            */
043            public com.liferay.portlet.softwarecatalog.model.SCProductEntry addSCProductEntry(
044                    com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
045                    throws com.liferay.portal.kernel.exception.SystemException {
046                    return _scProductEntryLocalService.addSCProductEntry(scProductEntry);
047            }
048    
049            /**
050            * Creates a new s c product entry with the primary key. Does not add the s c product entry to the database.
051            *
052            * @param productEntryId the primary key for the new s c product entry
053            * @return the new s c product entry
054            */
055            public com.liferay.portlet.softwarecatalog.model.SCProductEntry createSCProductEntry(
056                    long productEntryId) {
057                    return _scProductEntryLocalService.createSCProductEntry(productEntryId);
058            }
059    
060            /**
061            * Deletes the s c product entry with the primary key from the database. Also notifies the appropriate model listeners.
062            *
063            * @param productEntryId the primary key of the s c product entry
064            * @return the s c product entry that was removed
065            * @throws PortalException if a s c product entry with the primary key could not be found
066            * @throws SystemException if a system exception occurred
067            */
068            public com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteSCProductEntry(
069                    long productEntryId)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException {
072                    return _scProductEntryLocalService.deleteSCProductEntry(productEntryId);
073            }
074    
075            /**
076            * Deletes the s c product entry from the database. Also notifies the appropriate model listeners.
077            *
078            * @param scProductEntry the s c product entry
079            * @return the s c product entry that was removed
080            * @throws SystemException if a system exception occurred
081            */
082            public com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteSCProductEntry(
083                    com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
084                    throws com.liferay.portal.kernel.exception.SystemException {
085                    return _scProductEntryLocalService.deleteSCProductEntry(scProductEntry);
086            }
087    
088            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
089                    return _scProductEntryLocalService.dynamicQuery();
090            }
091    
092            /**
093            * Performs a dynamic query on the database and returns the matching rows.
094            *
095            * @param dynamicQuery the dynamic query
096            * @return the matching rows
097            * @throws SystemException if a system exception occurred
098            */
099            @SuppressWarnings("rawtypes")
100            public java.util.List dynamicQuery(
101                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
102                    throws com.liferay.portal.kernel.exception.SystemException {
103                    return _scProductEntryLocalService.dynamicQuery(dynamicQuery);
104            }
105    
106            /**
107            * Performs a dynamic query on the database and returns a range of the matching rows.
108            *
109            * <p>
110            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCProductEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
111            * </p>
112            *
113            * @param dynamicQuery the dynamic query
114            * @param start the lower bound of the range of model instances
115            * @param end the upper bound of the range of model instances (not inclusive)
116            * @return the range of matching rows
117            * @throws SystemException if a system exception occurred
118            */
119            @SuppressWarnings("rawtypes")
120            public java.util.List dynamicQuery(
121                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122                    int end) throws com.liferay.portal.kernel.exception.SystemException {
123                    return _scProductEntryLocalService.dynamicQuery(dynamicQuery, start, end);
124            }
125    
126            /**
127            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
128            *
129            * <p>
130            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCProductEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
131            * </p>
132            *
133            * @param dynamicQuery the dynamic query
134            * @param start the lower bound of the range of model instances
135            * @param end the upper bound of the range of model instances (not inclusive)
136            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
137            * @return the ordered range of matching rows
138            * @throws SystemException if a system exception occurred
139            */
140            @SuppressWarnings("rawtypes")
141            public java.util.List dynamicQuery(
142                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
143                    int end,
144                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145                    throws com.liferay.portal.kernel.exception.SystemException {
146                    return _scProductEntryLocalService.dynamicQuery(dynamicQuery, start,
147                            end, orderByComparator);
148            }
149    
150            /**
151            * Returns the number of rows that match the dynamic query.
152            *
153            * @param dynamicQuery the dynamic query
154            * @return the number of rows that match the dynamic query
155            * @throws SystemException if a system exception occurred
156            */
157            public long dynamicQueryCount(
158                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
159                    throws com.liferay.portal.kernel.exception.SystemException {
160                    return _scProductEntryLocalService.dynamicQueryCount(dynamicQuery);
161            }
162    
163            public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchSCProductEntry(
164                    long productEntryId)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return _scProductEntryLocalService.fetchSCProductEntry(productEntryId);
167            }
168    
169            /**
170            * Returns the s c product entry with the primary key.
171            *
172            * @param productEntryId the primary key of the s c product entry
173            * @return the s c product entry
174            * @throws PortalException if a s c product entry with the primary key could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public com.liferay.portlet.softwarecatalog.model.SCProductEntry getSCProductEntry(
178                    long productEntryId)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _scProductEntryLocalService.getSCProductEntry(productEntryId);
182            }
183    
184            public com.liferay.portal.model.PersistedModel getPersistedModel(
185                    java.io.Serializable primaryKeyObj)
186                    throws com.liferay.portal.kernel.exception.PortalException,
187                            com.liferay.portal.kernel.exception.SystemException {
188                    return _scProductEntryLocalService.getPersistedModel(primaryKeyObj);
189            }
190    
191            /**
192            * Returns a range of all the s c product entries.
193            *
194            * <p>
195            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCProductEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
196            * </p>
197            *
198            * @param start the lower bound of the range of s c product entries
199            * @param end the upper bound of the range of s c product entries (not inclusive)
200            * @return the range of s c product entries
201            * @throws SystemException if a system exception occurred
202            */
203            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
204                    int start, int end)
205                    throws com.liferay.portal.kernel.exception.SystemException {
206                    return _scProductEntryLocalService.getSCProductEntries(start, end);
207            }
208    
209            /**
210            * Returns the number of s c product entries.
211            *
212            * @return the number of s c product entries
213            * @throws SystemException if a system exception occurred
214            */
215            public int getSCProductEntriesCount()
216                    throws com.liferay.portal.kernel.exception.SystemException {
217                    return _scProductEntryLocalService.getSCProductEntriesCount();
218            }
219    
220            /**
221            * Updates the s c product entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
222            *
223            * @param scProductEntry the s c product entry
224            * @return the s c product entry that was updated
225            * @throws SystemException if a system exception occurred
226            */
227            public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
228                    com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
229                    throws com.liferay.portal.kernel.exception.SystemException {
230                    return _scProductEntryLocalService.updateSCProductEntry(scProductEntry);
231            }
232    
233            /**
234            * Returns the Spring bean ID for this bean.
235            *
236            * @return the Spring bean ID for this bean
237            */
238            public java.lang.String getBeanIdentifier() {
239                    return _scProductEntryLocalService.getBeanIdentifier();
240            }
241    
242            /**
243            * Sets the Spring bean ID for this bean.
244            *
245            * @param beanIdentifier the Spring bean ID for this bean
246            */
247            public void setBeanIdentifier(java.lang.String beanIdentifier) {
248                    _scProductEntryLocalService.setBeanIdentifier(beanIdentifier);
249            }
250    
251            public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
252                    long userId, java.lang.String name, java.lang.String type,
253                    java.lang.String tags, java.lang.String shortDescription,
254                    java.lang.String longDescription, java.lang.String pageURL,
255                    java.lang.String author, java.lang.String repoGroupId,
256                    java.lang.String repoArtifactId, long[] licenseIds,
257                    java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
258                    com.liferay.portal.service.ServiceContext serviceContext)
259                    throws com.liferay.portal.kernel.exception.PortalException,
260                            com.liferay.portal.kernel.exception.SystemException {
261                    return _scProductEntryLocalService.addProductEntry(userId, name, type,
262                            tags, shortDescription, longDescription, pageURL, author,
263                            repoGroupId, repoArtifactId, licenseIds, thumbnails, fullImages,
264                            serviceContext);
265            }
266    
267            public void addProductEntryResources(long productEntryId,
268                    boolean addGroupPermissions, boolean addGuestPermissions)
269                    throws com.liferay.portal.kernel.exception.PortalException,
270                            com.liferay.portal.kernel.exception.SystemException {
271                    _scProductEntryLocalService.addProductEntryResources(productEntryId,
272                            addGroupPermissions, addGuestPermissions);
273            }
274    
275            public void addProductEntryResources(long productEntryId,
276                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
277                    throws com.liferay.portal.kernel.exception.PortalException,
278                            com.liferay.portal.kernel.exception.SystemException {
279                    _scProductEntryLocalService.addProductEntryResources(productEntryId,
280                            groupPermissions, guestPermissions);
281            }
282    
283            public void addProductEntryResources(
284                    com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
285                    boolean addGroupPermissions, boolean addGuestPermissions)
286                    throws com.liferay.portal.kernel.exception.PortalException,
287                            com.liferay.portal.kernel.exception.SystemException {
288                    _scProductEntryLocalService.addProductEntryResources(productEntry,
289                            addGroupPermissions, addGuestPermissions);
290            }
291    
292            public void addProductEntryResources(
293                    com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
294                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException {
297                    _scProductEntryLocalService.addProductEntryResources(productEntry,
298                            groupPermissions, guestPermissions);
299            }
300    
301            public void deleteProductEntries(long groupId)
302                    throws com.liferay.portal.kernel.exception.PortalException,
303                            com.liferay.portal.kernel.exception.SystemException {
304                    _scProductEntryLocalService.deleteProductEntries(groupId);
305            }
306    
307            public com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteProductEntry(
308                    long productEntryId)
309                    throws com.liferay.portal.kernel.exception.PortalException,
310                            com.liferay.portal.kernel.exception.SystemException {
311                    return _scProductEntryLocalService.deleteProductEntry(productEntryId);
312            }
313    
314            public com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteProductEntry(
315                    com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
316                    throws com.liferay.portal.kernel.exception.PortalException,
317                            com.liferay.portal.kernel.exception.SystemException {
318                    return _scProductEntryLocalService.deleteProductEntry(productEntry);
319            }
320    
321            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getCompanyProductEntries(
322                    long companyId, int start, int end)
323                    throws com.liferay.portal.kernel.exception.SystemException {
324                    return _scProductEntryLocalService.getCompanyProductEntries(companyId,
325                            start, end);
326            }
327    
328            public int getCompanyProductEntriesCount(long companyId)
329                    throws com.liferay.portal.kernel.exception.SystemException {
330                    return _scProductEntryLocalService.getCompanyProductEntriesCount(companyId);
331            }
332    
333            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
334                    long groupId, int start, int end)
335                    throws com.liferay.portal.kernel.exception.SystemException {
336                    return _scProductEntryLocalService.getProductEntries(groupId, start, end);
337            }
338    
339            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
340                    long groupId, int start, int end,
341                    com.liferay.portal.kernel.util.OrderByComparator obc)
342                    throws com.liferay.portal.kernel.exception.SystemException {
343                    return _scProductEntryLocalService.getProductEntries(groupId, start,
344                            end, obc);
345            }
346    
347            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
348                    long groupId, long userId, int start, int end)
349                    throws com.liferay.portal.kernel.exception.SystemException {
350                    return _scProductEntryLocalService.getProductEntries(groupId, userId,
351                            start, end);
352            }
353    
354            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
355                    long groupId, long userId, int start, int end,
356                    com.liferay.portal.kernel.util.OrderByComparator obc)
357                    throws com.liferay.portal.kernel.exception.SystemException {
358                    return _scProductEntryLocalService.getProductEntries(groupId, userId,
359                            start, end, obc);
360            }
361    
362            public int getProductEntriesCount(long groupId)
363                    throws com.liferay.portal.kernel.exception.SystemException {
364                    return _scProductEntryLocalService.getProductEntriesCount(groupId);
365            }
366    
367            public int getProductEntriesCount(long groupId, long userId)
368                    throws com.liferay.portal.kernel.exception.SystemException {
369                    return _scProductEntryLocalService.getProductEntriesCount(groupId,
370                            userId);
371            }
372    
373            public com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
374                    long productEntryId)
375                    throws com.liferay.portal.kernel.exception.PortalException,
376                            com.liferay.portal.kernel.exception.SystemException {
377                    return _scProductEntryLocalService.getProductEntry(productEntryId);
378            }
379    
380            public java.lang.String getRepositoryXML(long groupId,
381                    java.lang.String baseImageURL, java.util.Date oldestDate,
382                    int maxNumOfVersions, java.util.Properties repoSettings)
383                    throws com.liferay.portal.kernel.exception.SystemException {
384                    return _scProductEntryLocalService.getRepositoryXML(groupId,
385                            baseImageURL, oldestDate, maxNumOfVersions, repoSettings);
386            }
387    
388            public java.lang.String getRepositoryXML(long groupId,
389                    java.lang.String version, java.lang.String baseImageURL,
390                    java.util.Date oldestDate, int maxNumOfVersions,
391                    java.util.Properties repoSettings)
392                    throws com.liferay.portal.kernel.exception.SystemException {
393                    return _scProductEntryLocalService.getRepositoryXML(groupId, version,
394                            baseImageURL, oldestDate, maxNumOfVersions, repoSettings);
395            }
396    
397            public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
398                    long productEntryId, java.lang.String name, java.lang.String type,
399                    java.lang.String tags, java.lang.String shortDescription,
400                    java.lang.String longDescription, java.lang.String pageURL,
401                    java.lang.String author, java.lang.String repoGroupId,
402                    java.lang.String repoArtifactId, long[] licenseIds,
403                    java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
404                    throws com.liferay.portal.kernel.exception.PortalException,
405                            com.liferay.portal.kernel.exception.SystemException {
406                    return _scProductEntryLocalService.updateProductEntry(productEntryId,
407                            name, type, tags, shortDescription, longDescription, pageURL,
408                            author, repoGroupId, repoArtifactId, licenseIds, thumbnails,
409                            fullImages);
410            }
411    
412            /**
413             * @deprecated Renamed to {@link #getWrappedService}
414             */
415            public SCProductEntryLocalService getWrappedSCProductEntryLocalService() {
416                    return _scProductEntryLocalService;
417            }
418    
419            /**
420             * @deprecated Renamed to {@link #setWrappedService}
421             */
422            public void setWrappedSCProductEntryLocalService(
423                    SCProductEntryLocalService scProductEntryLocalService) {
424                    _scProductEntryLocalService = scProductEntryLocalService;
425            }
426    
427            public SCProductEntryLocalService getWrappedService() {
428                    return _scProductEntryLocalService;
429            }
430    
431            public void setWrappedService(
432                    SCProductEntryLocalService scProductEntryLocalService) {
433                    _scProductEntryLocalService = scProductEntryLocalService;
434            }
435    
436            private SCProductEntryLocalService _scProductEntryLocalService;
437    }