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