001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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.
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.
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.
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            * Updates the s c product entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
235            *
236            * @param scProductEntry the s c product entry
237            * @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.
238            * @return the s c product entry that was updated
239            * @throws SystemException if a system exception occurred
240            */
241            public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
242                    com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
243                    boolean merge)
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    return _scProductEntryLocalService.updateSCProductEntry(scProductEntry,
246                            merge);
247            }
248    
249            /**
250            * Returns the Spring bean ID for this bean.
251            *
252            * @return the Spring bean ID for this bean
253            */
254            public java.lang.String getBeanIdentifier() {
255                    return _scProductEntryLocalService.getBeanIdentifier();
256            }
257    
258            /**
259            * Sets the Spring bean ID for this bean.
260            *
261            * @param beanIdentifier the Spring bean ID for this bean
262            */
263            public void setBeanIdentifier(java.lang.String beanIdentifier) {
264                    _scProductEntryLocalService.setBeanIdentifier(beanIdentifier);
265            }
266    
267            public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
268                    long userId, java.lang.String name, java.lang.String type,
269                    java.lang.String tags, java.lang.String shortDescription,
270                    java.lang.String longDescription, java.lang.String pageURL,
271                    java.lang.String author, java.lang.String repoGroupId,
272                    java.lang.String repoArtifactId, long[] licenseIds,
273                    java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
274                    com.liferay.portal.service.ServiceContext serviceContext)
275                    throws com.liferay.portal.kernel.exception.PortalException,
276                            com.liferay.portal.kernel.exception.SystemException {
277                    return _scProductEntryLocalService.addProductEntry(userId, name, type,
278                            tags, shortDescription, longDescription, pageURL, author,
279                            repoGroupId, repoArtifactId, licenseIds, thumbnails, fullImages,
280                            serviceContext);
281            }
282    
283            public void addProductEntryResources(long productEntryId,
284                    boolean addGroupPermissions, boolean addGuestPermissions)
285                    throws com.liferay.portal.kernel.exception.PortalException,
286                            com.liferay.portal.kernel.exception.SystemException {
287                    _scProductEntryLocalService.addProductEntryResources(productEntryId,
288                            addGroupPermissions, addGuestPermissions);
289            }
290    
291            public void addProductEntryResources(long productEntryId,
292                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
293                    throws com.liferay.portal.kernel.exception.PortalException,
294                            com.liferay.portal.kernel.exception.SystemException {
295                    _scProductEntryLocalService.addProductEntryResources(productEntryId,
296                            groupPermissions, guestPermissions);
297            }
298    
299            public void addProductEntryResources(
300                    com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
301                    boolean addGroupPermissions, boolean addGuestPermissions)
302                    throws com.liferay.portal.kernel.exception.PortalException,
303                            com.liferay.portal.kernel.exception.SystemException {
304                    _scProductEntryLocalService.addProductEntryResources(productEntry,
305                            addGroupPermissions, addGuestPermissions);
306            }
307    
308            public void addProductEntryResources(
309                    com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
310                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
311                    throws com.liferay.portal.kernel.exception.PortalException,
312                            com.liferay.portal.kernel.exception.SystemException {
313                    _scProductEntryLocalService.addProductEntryResources(productEntry,
314                            groupPermissions, guestPermissions);
315            }
316    
317            public void deleteProductEntries(long groupId)
318                    throws com.liferay.portal.kernel.exception.PortalException,
319                            com.liferay.portal.kernel.exception.SystemException {
320                    _scProductEntryLocalService.deleteProductEntries(groupId);
321            }
322    
323            public void deleteProductEntry(long productEntryId)
324                    throws com.liferay.portal.kernel.exception.PortalException,
325                            com.liferay.portal.kernel.exception.SystemException {
326                    _scProductEntryLocalService.deleteProductEntry(productEntryId);
327            }
328    
329            public void deleteProductEntry(
330                    com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
331                    throws com.liferay.portal.kernel.exception.PortalException,
332                            com.liferay.portal.kernel.exception.SystemException {
333                    _scProductEntryLocalService.deleteProductEntry(productEntry);
334            }
335    
336            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getCompanyProductEntries(
337                    long companyId, int start, int end)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    return _scProductEntryLocalService.getCompanyProductEntries(companyId,
340                            start, end);
341            }
342    
343            public int getCompanyProductEntriesCount(long companyId)
344                    throws com.liferay.portal.kernel.exception.SystemException {
345                    return _scProductEntryLocalService.getCompanyProductEntriesCount(companyId);
346            }
347    
348            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
349                    long groupId, int start, int end)
350                    throws com.liferay.portal.kernel.exception.SystemException {
351                    return _scProductEntryLocalService.getProductEntries(groupId, start, end);
352            }
353    
354            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
355                    long groupId, 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, start,
359                            end, obc);
360            }
361    
362            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
363                    long groupId, long userId, int start, int end)
364                    throws com.liferay.portal.kernel.exception.SystemException {
365                    return _scProductEntryLocalService.getProductEntries(groupId, userId,
366                            start, end);
367            }
368    
369            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
370                    long groupId, long userId, int start, int end,
371                    com.liferay.portal.kernel.util.OrderByComparator obc)
372                    throws com.liferay.portal.kernel.exception.SystemException {
373                    return _scProductEntryLocalService.getProductEntries(groupId, userId,
374                            start, end, obc);
375            }
376    
377            public int getProductEntriesCount(long groupId)
378                    throws com.liferay.portal.kernel.exception.SystemException {
379                    return _scProductEntryLocalService.getProductEntriesCount(groupId);
380            }
381    
382            public int getProductEntriesCount(long groupId, long userId)
383                    throws com.liferay.portal.kernel.exception.SystemException {
384                    return _scProductEntryLocalService.getProductEntriesCount(groupId,
385                            userId);
386            }
387    
388            public com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
389                    long productEntryId)
390                    throws com.liferay.portal.kernel.exception.PortalException,
391                            com.liferay.portal.kernel.exception.SystemException {
392                    return _scProductEntryLocalService.getProductEntry(productEntryId);
393            }
394    
395            public java.lang.String getRepositoryXML(long groupId,
396                    java.lang.String baseImageURL, java.util.Date oldestDate,
397                    int maxNumOfVersions, java.util.Properties repoSettings)
398                    throws com.liferay.portal.kernel.exception.SystemException {
399                    return _scProductEntryLocalService.getRepositoryXML(groupId,
400                            baseImageURL, oldestDate, maxNumOfVersions, repoSettings);
401            }
402    
403            public java.lang.String getRepositoryXML(long groupId,
404                    java.lang.String version, java.lang.String baseImageURL,
405                    java.util.Date oldestDate, int maxNumOfVersions,
406                    java.util.Properties repoSettings)
407                    throws com.liferay.portal.kernel.exception.SystemException {
408                    return _scProductEntryLocalService.getRepositoryXML(groupId, version,
409                            baseImageURL, oldestDate, maxNumOfVersions, repoSettings);
410            }
411    
412            public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
413                    long productEntryId, java.lang.String name, java.lang.String type,
414                    java.lang.String tags, java.lang.String shortDescription,
415                    java.lang.String longDescription, java.lang.String pageURL,
416                    java.lang.String author, java.lang.String repoGroupId,
417                    java.lang.String repoArtifactId, long[] licenseIds,
418                    java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
419                    throws com.liferay.portal.kernel.exception.PortalException,
420                            com.liferay.portal.kernel.exception.SystemException {
421                    return _scProductEntryLocalService.updateProductEntry(productEntryId,
422                            name, type, tags, shortDescription, longDescription, pageURL,
423                            author, repoGroupId, repoArtifactId, licenseIds, thumbnails,
424                            fullImages);
425            }
426    
427            /**
428             * @deprecated Renamed to {@link #getWrappedService}
429             */
430            public SCProductEntryLocalService getWrappedSCProductEntryLocalService() {
431                    return _scProductEntryLocalService;
432            }
433    
434            /**
435             * @deprecated Renamed to {@link #setWrappedService}
436             */
437            public void setWrappedSCProductEntryLocalService(
438                    SCProductEntryLocalService scProductEntryLocalService) {
439                    _scProductEntryLocalService = scProductEntryLocalService;
440            }
441    
442            public SCProductEntryLocalService getWrappedService() {
443                    return _scProductEntryLocalService;
444            }
445    
446            public void setWrappedService(
447                    SCProductEntryLocalService scProductEntryLocalService) {
448                    _scProductEntryLocalService = scProductEntryLocalService;
449            }
450    
451            private SCProductEntryLocalService _scProductEntryLocalService;
452    }