001    /**
002     * Copyright (c) 2000-2011 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    /**
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
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
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
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
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
104            * @param start the lower bound of the range of model instances
105            * @param end the upper bound of the range of model instances (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
124            * @param start the lower bound of the range of model instances
125            * @param end the upper bound of the range of model instances (not inclusive)
126            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns the number of rows that match the dynamic query.
142            *
143            * @param dynamicQuery the dynamic query
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            * Returns the s c product entry with the primary key.
155            *
156            * @param productEntryId the primary key of the s c product entry
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            public com.liferay.portal.model.PersistedModel getPersistedModel(
169                    java.io.Serializable primaryKeyObj)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException {
172                    return _scProductEntryLocalService.getPersistedModel(primaryKeyObj);
173            }
174    
175            /**
176            * Returns a range of all the s c product entries.
177            *
178            * <p>
179            * 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.
180            * </p>
181            *
182            * @param start the lower bound of the range of s c product entries
183            * @param end the upper bound of the range of s c product entries (not inclusive)
184            * @return the range of s c product entries
185            * @throws SystemException if a system exception occurred
186            */
187            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
188                    int start, int end)
189                    throws com.liferay.portal.kernel.exception.SystemException {
190                    return _scProductEntryLocalService.getSCProductEntries(start, end);
191            }
192    
193            /**
194            * Returns the number of s c product entries.
195            *
196            * @return the number of s c product entries
197            * @throws SystemException if a system exception occurred
198            */
199            public int getSCProductEntriesCount()
200                    throws com.liferay.portal.kernel.exception.SystemException {
201                    return _scProductEntryLocalService.getSCProductEntriesCount();
202            }
203    
204            /**
205            * Updates the s c product entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
206            *
207            * @param scProductEntry the s c product entry
208            * @return the s c product entry that was updated
209            * @throws SystemException if a system exception occurred
210            */
211            public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
212                    com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
213                    throws com.liferay.portal.kernel.exception.SystemException {
214                    return _scProductEntryLocalService.updateSCProductEntry(scProductEntry);
215            }
216    
217            /**
218            * Updates the s c product entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
219            *
220            * @param scProductEntry the s c product entry
221            * @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.
222            * @return the s c product entry that was updated
223            * @throws SystemException if a system exception occurred
224            */
225            public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
226                    com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
227                    boolean merge)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return _scProductEntryLocalService.updateSCProductEntry(scProductEntry,
230                            merge);
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 addCommunityPermissions, boolean addGuestPermissions)
269                    throws com.liferay.portal.kernel.exception.PortalException,
270                            com.liferay.portal.kernel.exception.SystemException {
271                    _scProductEntryLocalService.addProductEntryResources(productEntryId,
272                            addCommunityPermissions, addGuestPermissions);
273            }
274    
275            public void addProductEntryResources(long productEntryId,
276                    java.lang.String[] communityPermissions,
277                    java.lang.String[] guestPermissions)
278                    throws com.liferay.portal.kernel.exception.PortalException,
279                            com.liferay.portal.kernel.exception.SystemException {
280                    _scProductEntryLocalService.addProductEntryResources(productEntryId,
281                            communityPermissions, guestPermissions);
282            }
283    
284            public void addProductEntryResources(
285                    com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
286                    boolean addCommunityPermissions, boolean addGuestPermissions)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    _scProductEntryLocalService.addProductEntryResources(productEntry,
290                            addCommunityPermissions, addGuestPermissions);
291            }
292    
293            public void addProductEntryResources(
294                    com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
295                    java.lang.String[] communityPermissions,
296                    java.lang.String[] guestPermissions)
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException {
299                    _scProductEntryLocalService.addProductEntryResources(productEntry,
300                            communityPermissions, guestPermissions);
301            }
302    
303            public void deleteProductEntries(long groupId)
304                    throws com.liferay.portal.kernel.exception.PortalException,
305                            com.liferay.portal.kernel.exception.SystemException {
306                    _scProductEntryLocalService.deleteProductEntries(groupId);
307            }
308    
309            public void deleteProductEntry(long productEntryId)
310                    throws com.liferay.portal.kernel.exception.PortalException,
311                            com.liferay.portal.kernel.exception.SystemException {
312                    _scProductEntryLocalService.deleteProductEntry(productEntryId);
313            }
314    
315            public void deleteProductEntry(
316                    com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
317                    throws com.liferay.portal.kernel.exception.PortalException,
318                            com.liferay.portal.kernel.exception.SystemException {
319                    _scProductEntryLocalService.deleteProductEntry(productEntry);
320            }
321    
322            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getCompanyProductEntries(
323                    long companyId, int start, int end)
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    return _scProductEntryLocalService.getCompanyProductEntries(companyId,
326                            start, end);
327            }
328    
329            public int getCompanyProductEntriesCount(long companyId)
330                    throws com.liferay.portal.kernel.exception.SystemException {
331                    return _scProductEntryLocalService.getCompanyProductEntriesCount(companyId);
332            }
333    
334            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
335                    long groupId, int start, int end)
336                    throws com.liferay.portal.kernel.exception.SystemException {
337                    return _scProductEntryLocalService.getProductEntries(groupId, start, end);
338            }
339    
340            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
341                    long groupId, int start, int end,
342                    com.liferay.portal.kernel.util.OrderByComparator obc)
343                    throws com.liferay.portal.kernel.exception.SystemException {
344                    return _scProductEntryLocalService.getProductEntries(groupId, start,
345                            end, obc);
346            }
347    
348            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
349                    long groupId, long userId, int start, int end)
350                    throws com.liferay.portal.kernel.exception.SystemException {
351                    return _scProductEntryLocalService.getProductEntries(groupId, userId,
352                            start, end);
353            }
354    
355            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
356                    long groupId, long userId, int start, int end,
357                    com.liferay.portal.kernel.util.OrderByComparator obc)
358                    throws com.liferay.portal.kernel.exception.SystemException {
359                    return _scProductEntryLocalService.getProductEntries(groupId, userId,
360                            start, end, obc);
361            }
362    
363            public int getProductEntriesCount(long groupId)
364                    throws com.liferay.portal.kernel.exception.SystemException {
365                    return _scProductEntryLocalService.getProductEntriesCount(groupId);
366            }
367    
368            public int getProductEntriesCount(long groupId, long userId)
369                    throws com.liferay.portal.kernel.exception.SystemException {
370                    return _scProductEntryLocalService.getProductEntriesCount(groupId,
371                            userId);
372            }
373    
374            public com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
375                    long productEntryId)
376                    throws com.liferay.portal.kernel.exception.PortalException,
377                            com.liferay.portal.kernel.exception.SystemException {
378                    return _scProductEntryLocalService.getProductEntry(productEntryId);
379            }
380    
381            public java.lang.String getRepositoryXML(long groupId,
382                    java.lang.String baseImageURL, java.util.Date oldestDate,
383                    int maxNumOfVersions, java.util.Properties repoSettings)
384                    throws com.liferay.portal.kernel.exception.SystemException {
385                    return _scProductEntryLocalService.getRepositoryXML(groupId,
386                            baseImageURL, oldestDate, maxNumOfVersions, repoSettings);
387            }
388    
389            public java.lang.String getRepositoryXML(long groupId,
390                    java.lang.String version, java.lang.String baseImageURL,
391                    java.util.Date oldestDate, int maxNumOfVersions,
392                    java.util.Properties repoSettings)
393                    throws com.liferay.portal.kernel.exception.SystemException {
394                    return _scProductEntryLocalService.getRepositoryXML(groupId, version,
395                            baseImageURL, oldestDate, maxNumOfVersions, repoSettings);
396            }
397    
398            public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
399                    long productEntryId, java.lang.String name, java.lang.String type,
400                    java.lang.String tags, java.lang.String shortDescription,
401                    java.lang.String longDescription, java.lang.String pageURL,
402                    java.lang.String author, java.lang.String repoGroupId,
403                    java.lang.String repoArtifactId, long[] licenseIds,
404                    java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
405                    throws com.liferay.portal.kernel.exception.PortalException,
406                            com.liferay.portal.kernel.exception.SystemException {
407                    return _scProductEntryLocalService.updateProductEntry(productEntryId,
408                            name, type, tags, shortDescription, longDescription, pageURL,
409                            author, repoGroupId, repoArtifactId, licenseIds, thumbnails,
410                            fullImages);
411            }
412    
413            public SCProductEntryLocalService getWrappedSCProductEntryLocalService() {
414                    return _scProductEntryLocalService;
415            }
416    
417            public void setWrappedSCProductEntryLocalService(
418                    SCProductEntryLocalService scProductEntryLocalService) {
419                    _scProductEntryLocalService = scProductEntryLocalService;
420            }
421    
422            private SCProductEntryLocalService _scProductEntryLocalService;
423    }