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            * @throws PortalException if a s c product entry with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public void deleteSCProductEntry(long productEntryId)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    _scProductEntryLocalService.deleteSCProductEntry(productEntryId);
071            }
072    
073            /**
074            * Deletes the s c product entry from the database. Also notifies the appropriate model listeners.
075            *
076            * @param scProductEntry the s c product entry
077            * @throws SystemException if a system exception occurred
078            */
079            public void deleteSCProductEntry(
080                    com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
081                    throws com.liferay.portal.kernel.exception.SystemException {
082                    _scProductEntryLocalService.deleteSCProductEntry(scProductEntry);
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 _scProductEntryLocalService.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 _scProductEntryLocalService.dynamicQuery(dynamicQuery, start, end);
117            }
118    
119            /**
120            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
121            *
122            * <p>
123            * 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.
124            * </p>
125            *
126            * @param dynamicQuery the dynamic query
127            * @param start the lower bound of the range of model instances
128            * @param end the upper bound of the range of model instances (not inclusive)
129            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
130            * @return the ordered range of matching rows
131            * @throws SystemException if a system exception occurred
132            */
133            @SuppressWarnings("rawtypes")
134            public java.util.List dynamicQuery(
135                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
136                    int end,
137                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
138                    throws com.liferay.portal.kernel.exception.SystemException {
139                    return _scProductEntryLocalService.dynamicQuery(dynamicQuery, start,
140                            end, orderByComparator);
141            }
142    
143            /**
144            * Returns the number of rows that match the dynamic query.
145            *
146            * @param dynamicQuery the dynamic query
147            * @return the number of rows that match the dynamic query
148            * @throws SystemException if a system exception occurred
149            */
150            public long dynamicQueryCount(
151                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
152                    throws com.liferay.portal.kernel.exception.SystemException {
153                    return _scProductEntryLocalService.dynamicQueryCount(dynamicQuery);
154            }
155    
156            public com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchSCProductEntry(
157                    long productEntryId)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return _scProductEntryLocalService.fetchSCProductEntry(productEntryId);
160            }
161    
162            /**
163            * Returns the s c product entry with the primary key.
164            *
165            * @param productEntryId the primary key of the s c product entry
166            * @return the s c product entry
167            * @throws PortalException if a s c product entry with the primary key could not be found
168            * @throws SystemException if a system exception occurred
169            */
170            public com.liferay.portlet.softwarecatalog.model.SCProductEntry getSCProductEntry(
171                    long productEntryId)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException {
174                    return _scProductEntryLocalService.getSCProductEntry(productEntryId);
175            }
176    
177            public com.liferay.portal.model.PersistedModel getPersistedModel(
178                    java.io.Serializable primaryKeyObj)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _scProductEntryLocalService.getPersistedModel(primaryKeyObj);
182            }
183    
184            /**
185            * Returns a range of all the s c product entries.
186            *
187            * <p>
188            * 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.
189            * </p>
190            *
191            * @param start the lower bound of the range of s c product entries
192            * @param end the upper bound of the range of s c product entries (not inclusive)
193            * @return the range of s c product entries
194            * @throws SystemException if a system exception occurred
195            */
196            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
197                    int start, int end)
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    return _scProductEntryLocalService.getSCProductEntries(start, end);
200            }
201    
202            /**
203            * Returns the number of s c product entries.
204            *
205            * @return the number of s c product entries
206            * @throws SystemException if a system exception occurred
207            */
208            public int getSCProductEntriesCount()
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    return _scProductEntryLocalService.getSCProductEntriesCount();
211            }
212    
213            /**
214            * Updates the s c product entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
215            *
216            * @param scProductEntry the s c product entry
217            * @return the s c product entry that was updated
218            * @throws SystemException if a system exception occurred
219            */
220            public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
221                    com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return _scProductEntryLocalService.updateSCProductEntry(scProductEntry);
224            }
225    
226            /**
227            * Updates the s c product entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
228            *
229            * @param scProductEntry the s c product entry
230            * @param merge whether to merge the s c product entry 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.
231            * @return the s c product entry that was updated
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
235                    com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
236                    boolean merge)
237                    throws com.liferay.portal.kernel.exception.SystemException {
238                    return _scProductEntryLocalService.updateSCProductEntry(scProductEntry,
239                            merge);
240            }
241    
242            /**
243            * Returns the Spring bean ID for this bean.
244            *
245            * @return the Spring bean ID for this bean
246            */
247            public java.lang.String getBeanIdentifier() {
248                    return _scProductEntryLocalService.getBeanIdentifier();
249            }
250    
251            /**
252            * Sets the Spring bean ID for this bean.
253            *
254            * @param beanIdentifier the Spring bean ID for this bean
255            */
256            public void setBeanIdentifier(java.lang.String beanIdentifier) {
257                    _scProductEntryLocalService.setBeanIdentifier(beanIdentifier);
258            }
259    
260            public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
261                    long userId, java.lang.String name, java.lang.String type,
262                    java.lang.String tags, java.lang.String shortDescription,
263                    java.lang.String longDescription, java.lang.String pageURL,
264                    java.lang.String author, java.lang.String repoGroupId,
265                    java.lang.String repoArtifactId, long[] licenseIds,
266                    java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
267                    com.liferay.portal.service.ServiceContext serviceContext)
268                    throws com.liferay.portal.kernel.exception.PortalException,
269                            com.liferay.portal.kernel.exception.SystemException {
270                    return _scProductEntryLocalService.addProductEntry(userId, name, type,
271                            tags, shortDescription, longDescription, pageURL, author,
272                            repoGroupId, repoArtifactId, licenseIds, thumbnails, fullImages,
273                            serviceContext);
274            }
275    
276            public void addProductEntryResources(long productEntryId,
277                    boolean addGroupPermissions, boolean addGuestPermissions)
278                    throws com.liferay.portal.kernel.exception.PortalException,
279                            com.liferay.portal.kernel.exception.SystemException {
280                    _scProductEntryLocalService.addProductEntryResources(productEntryId,
281                            addGroupPermissions, addGuestPermissions);
282            }
283    
284            public void addProductEntryResources(long productEntryId,
285                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
286                    throws com.liferay.portal.kernel.exception.PortalException,
287                            com.liferay.portal.kernel.exception.SystemException {
288                    _scProductEntryLocalService.addProductEntryResources(productEntryId,
289                            groupPermissions, guestPermissions);
290            }
291    
292            public void addProductEntryResources(
293                    com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
294                    boolean addGroupPermissions, boolean addGuestPermissions)
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException {
297                    _scProductEntryLocalService.addProductEntryResources(productEntry,
298                            addGroupPermissions, addGuestPermissions);
299            }
300    
301            public void addProductEntryResources(
302                    com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
303                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
304                    throws com.liferay.portal.kernel.exception.PortalException,
305                            com.liferay.portal.kernel.exception.SystemException {
306                    _scProductEntryLocalService.addProductEntryResources(productEntry,
307                            groupPermissions, guestPermissions);
308            }
309    
310            public void deleteProductEntries(long groupId)
311                    throws com.liferay.portal.kernel.exception.PortalException,
312                            com.liferay.portal.kernel.exception.SystemException {
313                    _scProductEntryLocalService.deleteProductEntries(groupId);
314            }
315    
316            public void deleteProductEntry(long productEntryId)
317                    throws com.liferay.portal.kernel.exception.PortalException,
318                            com.liferay.portal.kernel.exception.SystemException {
319                    _scProductEntryLocalService.deleteProductEntry(productEntryId);
320            }
321    
322            public void deleteProductEntry(
323                    com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
324                    throws com.liferay.portal.kernel.exception.PortalException,
325                            com.liferay.portal.kernel.exception.SystemException {
326                    _scProductEntryLocalService.deleteProductEntry(productEntry);
327            }
328    
329            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getCompanyProductEntries(
330                    long companyId, int start, int end)
331                    throws com.liferay.portal.kernel.exception.SystemException {
332                    return _scProductEntryLocalService.getCompanyProductEntries(companyId,
333                            start, end);
334            }
335    
336            public int getCompanyProductEntriesCount(long companyId)
337                    throws com.liferay.portal.kernel.exception.SystemException {
338                    return _scProductEntryLocalService.getCompanyProductEntriesCount(companyId);
339            }
340    
341            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
342                    long groupId, int start, int end)
343                    throws com.liferay.portal.kernel.exception.SystemException {
344                    return _scProductEntryLocalService.getProductEntries(groupId, start, end);
345            }
346    
347            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
348                    long groupId, int start, int end,
349                    com.liferay.portal.kernel.util.OrderByComparator obc)
350                    throws com.liferay.portal.kernel.exception.SystemException {
351                    return _scProductEntryLocalService.getProductEntries(groupId, start,
352                            end, obc);
353            }
354    
355            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
356                    long groupId, long userId, int start, int end)
357                    throws com.liferay.portal.kernel.exception.SystemException {
358                    return _scProductEntryLocalService.getProductEntries(groupId, userId,
359                            start, end);
360            }
361    
362            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
363                    long groupId, long userId, int start, int end,
364                    com.liferay.portal.kernel.util.OrderByComparator obc)
365                    throws com.liferay.portal.kernel.exception.SystemException {
366                    return _scProductEntryLocalService.getProductEntries(groupId, userId,
367                            start, end, obc);
368            }
369    
370            public int getProductEntriesCount(long groupId)
371                    throws com.liferay.portal.kernel.exception.SystemException {
372                    return _scProductEntryLocalService.getProductEntriesCount(groupId);
373            }
374    
375            public int getProductEntriesCount(long groupId, long userId)
376                    throws com.liferay.portal.kernel.exception.SystemException {
377                    return _scProductEntryLocalService.getProductEntriesCount(groupId,
378                            userId);
379            }
380    
381            public com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
382                    long productEntryId)
383                    throws com.liferay.portal.kernel.exception.PortalException,
384                            com.liferay.portal.kernel.exception.SystemException {
385                    return _scProductEntryLocalService.getProductEntry(productEntryId);
386            }
387    
388            public java.lang.String getRepositoryXML(long groupId,
389                    java.lang.String baseImageURL, java.util.Date oldestDate,
390                    int maxNumOfVersions, java.util.Properties repoSettings)
391                    throws com.liferay.portal.kernel.exception.SystemException {
392                    return _scProductEntryLocalService.getRepositoryXML(groupId,
393                            baseImageURL, oldestDate, maxNumOfVersions, repoSettings);
394            }
395    
396            public java.lang.String getRepositoryXML(long groupId,
397                    java.lang.String version, java.lang.String baseImageURL,
398                    java.util.Date oldestDate, int maxNumOfVersions,
399                    java.util.Properties repoSettings)
400                    throws com.liferay.portal.kernel.exception.SystemException {
401                    return _scProductEntryLocalService.getRepositoryXML(groupId, version,
402                            baseImageURL, oldestDate, maxNumOfVersions, repoSettings);
403            }
404    
405            public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
406                    long productEntryId, java.lang.String name, java.lang.String type,
407                    java.lang.String tags, java.lang.String shortDescription,
408                    java.lang.String longDescription, java.lang.String pageURL,
409                    java.lang.String author, java.lang.String repoGroupId,
410                    java.lang.String repoArtifactId, long[] licenseIds,
411                    java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
412                    throws com.liferay.portal.kernel.exception.PortalException,
413                            com.liferay.portal.kernel.exception.SystemException {
414                    return _scProductEntryLocalService.updateProductEntry(productEntryId,
415                            name, type, tags, shortDescription, longDescription, pageURL,
416                            author, repoGroupId, repoArtifactId, licenseIds, thumbnails,
417                            fullImages);
418            }
419    
420            /**
421             * @deprecated Renamed to {@link #getWrappedService}
422             */
423            public SCProductEntryLocalService getWrappedSCProductEntryLocalService() {
424                    return _scProductEntryLocalService;
425            }
426    
427            /**
428             * @deprecated Renamed to {@link #setWrappedService}
429             */
430            public void setWrappedSCProductEntryLocalService(
431                    SCProductEntryLocalService scProductEntryLocalService) {
432                    _scProductEntryLocalService = scProductEntryLocalService;
433            }
434    
435            public SCProductEntryLocalService getWrappedService() {
436                    return _scProductEntryLocalService;
437            }
438    
439            public void setWrappedService(
440                    SCProductEntryLocalService scProductEntryLocalService) {
441                    _scProductEntryLocalService = scProductEntryLocalService;
442            }
443    
444            private SCProductEntryLocalService _scProductEntryLocalService;
445    }