001    /**
002     * Copyright (c) 2000-2013 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.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * Provides the local service utility for SCProductEntry. This utility wraps
022     * {@link com.liferay.portlet.softwarecatalog.service.impl.SCProductEntryLocalServiceImpl} and is the
023     * primary access point for service operations in application layer code running
024     * on the local server. Methods of this service will not have security checks
025     * based on the propagated JAAS credentials because this service can only be
026     * accessed from within the same VM.
027     *
028     * @author Brian Wing Shun Chan
029     * @see SCProductEntryLocalService
030     * @see com.liferay.portlet.softwarecatalog.service.base.SCProductEntryLocalServiceBaseImpl
031     * @see com.liferay.portlet.softwarecatalog.service.impl.SCProductEntryLocalServiceImpl
032     * @generated
033     */
034    public class SCProductEntryLocalServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.softwarecatalog.service.impl.SCProductEntryLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
039             */
040    
041            /**
042            * Adds the s c product entry to the database. Also notifies the appropriate model listeners.
043            *
044            * @param scProductEntry the s c product entry
045            * @return the s c product entry that was added
046            * @throws SystemException if a system exception occurred
047            */
048            public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addSCProductEntry(
049                    com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
050                    throws com.liferay.portal.kernel.exception.SystemException {
051                    return getService().addSCProductEntry(scProductEntry);
052            }
053    
054            /**
055            * Creates a new s c product entry with the primary key. Does not add the s c product entry to the database.
056            *
057            * @param productEntryId the primary key for the new s c product entry
058            * @return the new s c product entry
059            */
060            public static com.liferay.portlet.softwarecatalog.model.SCProductEntry createSCProductEntry(
061                    long productEntryId) {
062                    return getService().createSCProductEntry(productEntryId);
063            }
064    
065            /**
066            * Deletes the s c product entry with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param productEntryId the primary key of the s c product entry
069            * @return the s c product entry that was removed
070            * @throws PortalException if a s c product entry with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public static com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteSCProductEntry(
074                    long productEntryId)
075                    throws com.liferay.portal.kernel.exception.PortalException,
076                            com.liferay.portal.kernel.exception.SystemException {
077                    return getService().deleteSCProductEntry(productEntryId);
078            }
079    
080            /**
081            * Deletes the s c product entry from the database. Also notifies the appropriate model listeners.
082            *
083            * @param scProductEntry the s c product entry
084            * @return the s c product entry that was removed
085            * @throws SystemException if a system exception occurred
086            */
087            public static com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteSCProductEntry(
088                    com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
089                    throws com.liferay.portal.kernel.exception.SystemException {
090                    return getService().deleteSCProductEntry(scProductEntry);
091            }
092    
093            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
094                    return getService().dynamicQuery();
095            }
096    
097            /**
098            * Performs a dynamic query on the database and returns the matching rows.
099            *
100            * @param dynamicQuery the dynamic query
101            * @return the matching rows
102            * @throws SystemException if a system exception occurred
103            */
104            @SuppressWarnings("rawtypes")
105            public static java.util.List dynamicQuery(
106                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
107                    throws com.liferay.portal.kernel.exception.SystemException {
108                    return getService().dynamicQuery(dynamicQuery);
109            }
110    
111            /**
112            * Performs a dynamic query on the database and returns a range of the matching rows.
113            *
114            * <p>
115            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCProductEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
116            * </p>
117            *
118            * @param dynamicQuery the dynamic query
119            * @param start the lower bound of the range of model instances
120            * @param end the upper bound of the range of model instances (not inclusive)
121            * @return the range of matching rows
122            * @throws SystemException if a system exception occurred
123            */
124            @SuppressWarnings("rawtypes")
125            public static java.util.List dynamicQuery(
126                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
127                    int end) throws com.liferay.portal.kernel.exception.SystemException {
128                    return getService().dynamicQuery(dynamicQuery, start, end);
129            }
130    
131            /**
132            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
133            *
134            * <p>
135            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCProductEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
136            * </p>
137            *
138            * @param dynamicQuery the dynamic query
139            * @param start the lower bound of the range of model instances
140            * @param end the upper bound of the range of model instances (not inclusive)
141            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
142            * @return the ordered range of matching rows
143            * @throws SystemException if a system exception occurred
144            */
145            @SuppressWarnings("rawtypes")
146            public static java.util.List dynamicQuery(
147                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148                    int end,
149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150                    throws com.liferay.portal.kernel.exception.SystemException {
151                    return getService()
152                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
153            }
154    
155            /**
156            * Returns the number of rows that match the dynamic query.
157            *
158            * @param dynamicQuery the dynamic query
159            * @return the number of rows that match the dynamic query
160            * @throws SystemException if a system exception occurred
161            */
162            public static long dynamicQueryCount(
163                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return getService().dynamicQueryCount(dynamicQuery);
166            }
167    
168            /**
169            * Returns the number of rows that match the dynamic query.
170            *
171            * @param dynamicQuery the dynamic query
172            * @param projection the projection to apply to the query
173            * @return the number of rows that match the dynamic query
174            * @throws SystemException if a system exception occurred
175            */
176            public static long dynamicQueryCount(
177                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
178                    com.liferay.portal.kernel.dao.orm.Projection projection)
179                    throws com.liferay.portal.kernel.exception.SystemException {
180                    return getService().dynamicQueryCount(dynamicQuery, projection);
181            }
182    
183            public static com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchSCProductEntry(
184                    long productEntryId)
185                    throws com.liferay.portal.kernel.exception.SystemException {
186                    return getService().fetchSCProductEntry(productEntryId);
187            }
188    
189            /**
190            * Returns the s c product entry with the primary key.
191            *
192            * @param productEntryId the primary key of the s c product entry
193            * @return the s c product entry
194            * @throws PortalException if a s c product entry with the primary key could not be found
195            * @throws SystemException if a system exception occurred
196            */
197            public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getSCProductEntry(
198                    long productEntryId)
199                    throws com.liferay.portal.kernel.exception.PortalException,
200                            com.liferay.portal.kernel.exception.SystemException {
201                    return getService().getSCProductEntry(productEntryId);
202            }
203    
204            public static com.liferay.portal.model.PersistedModel getPersistedModel(
205                    java.io.Serializable primaryKeyObj)
206                    throws com.liferay.portal.kernel.exception.PortalException,
207                            com.liferay.portal.kernel.exception.SystemException {
208                    return getService().getPersistedModel(primaryKeyObj);
209            }
210    
211            /**
212            * Returns a range of all the s c product entries.
213            *
214            * <p>
215            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCProductEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
216            * </p>
217            *
218            * @param start the lower bound of the range of s c product entries
219            * @param end the upper bound of the range of s c product entries (not inclusive)
220            * @return the range of s c product entries
221            * @throws SystemException if a system exception occurred
222            */
223            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
224                    int start, int end)
225                    throws com.liferay.portal.kernel.exception.SystemException {
226                    return getService().getSCProductEntries(start, end);
227            }
228    
229            /**
230            * Returns the number of s c product entries.
231            *
232            * @return the number of s c product entries
233            * @throws SystemException if a system exception occurred
234            */
235            public static int getSCProductEntriesCount()
236                    throws com.liferay.portal.kernel.exception.SystemException {
237                    return getService().getSCProductEntriesCount();
238            }
239    
240            /**
241            * Updates the s c product entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
242            *
243            * @param scProductEntry the s c product entry
244            * @return the s c product entry that was updated
245            * @throws SystemException if a system exception occurred
246            */
247            public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
248                    com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
249                    throws com.liferay.portal.kernel.exception.SystemException {
250                    return getService().updateSCProductEntry(scProductEntry);
251            }
252    
253            /**
254            * @throws SystemException if a system exception occurred
255            */
256            public static void addSCLicenseSCProductEntry(long licenseId,
257                    long productEntryId)
258                    throws com.liferay.portal.kernel.exception.SystemException {
259                    getService().addSCLicenseSCProductEntry(licenseId, productEntryId);
260            }
261    
262            /**
263            * @throws SystemException if a system exception occurred
264            */
265            public static void addSCLicenseSCProductEntry(long licenseId,
266                    com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
267                    throws com.liferay.portal.kernel.exception.SystemException {
268                    getService().addSCLicenseSCProductEntry(licenseId, scProductEntry);
269            }
270    
271            /**
272            * @throws SystemException if a system exception occurred
273            */
274            public static void addSCLicenseSCProductEntries(long licenseId,
275                    long[] productEntryIds)
276                    throws com.liferay.portal.kernel.exception.SystemException {
277                    getService().addSCLicenseSCProductEntries(licenseId, productEntryIds);
278            }
279    
280            /**
281            * @throws SystemException if a system exception occurred
282            */
283            public static void addSCLicenseSCProductEntries(long licenseId,
284                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> SCProductEntries)
285                    throws com.liferay.portal.kernel.exception.SystemException {
286                    getService().addSCLicenseSCProductEntries(licenseId, SCProductEntries);
287            }
288    
289            /**
290            * @throws SystemException if a system exception occurred
291            */
292            public static void clearSCLicenseSCProductEntries(long licenseId)
293                    throws com.liferay.portal.kernel.exception.SystemException {
294                    getService().clearSCLicenseSCProductEntries(licenseId);
295            }
296    
297            /**
298            * @throws SystemException if a system exception occurred
299            */
300            public static void deleteSCLicenseSCProductEntry(long licenseId,
301                    long productEntryId)
302                    throws com.liferay.portal.kernel.exception.SystemException {
303                    getService().deleteSCLicenseSCProductEntry(licenseId, productEntryId);
304            }
305    
306            /**
307            * @throws SystemException if a system exception occurred
308            */
309            public static void deleteSCLicenseSCProductEntry(long licenseId,
310                    com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    getService().deleteSCLicenseSCProductEntry(licenseId, scProductEntry);
313            }
314    
315            /**
316            * @throws SystemException if a system exception occurred
317            */
318            public static void deleteSCLicenseSCProductEntries(long licenseId,
319                    long[] productEntryIds)
320                    throws com.liferay.portal.kernel.exception.SystemException {
321                    getService().deleteSCLicenseSCProductEntries(licenseId, productEntryIds);
322            }
323    
324            /**
325            * @throws SystemException if a system exception occurred
326            */
327            public static void deleteSCLicenseSCProductEntries(long licenseId,
328                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> SCProductEntries)
329                    throws com.liferay.portal.kernel.exception.SystemException {
330                    getService().deleteSCLicenseSCProductEntries(licenseId, SCProductEntries);
331            }
332    
333            /**
334            * @throws SystemException if a system exception occurred
335            */
336            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCLicenseSCProductEntries(
337                    long licenseId)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    return getService().getSCLicenseSCProductEntries(licenseId);
340            }
341    
342            /**
343            * @throws SystemException if a system exception occurred
344            */
345            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCLicenseSCProductEntries(
346                    long licenseId, int start, int end)
347                    throws com.liferay.portal.kernel.exception.SystemException {
348                    return getService().getSCLicenseSCProductEntries(licenseId, start, end);
349            }
350    
351            /**
352            * @throws SystemException if a system exception occurred
353            */
354            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCLicenseSCProductEntries(
355                    long licenseId, int start, int end,
356                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
357                    throws com.liferay.portal.kernel.exception.SystemException {
358                    return getService()
359                                       .getSCLicenseSCProductEntries(licenseId, start, end,
360                            orderByComparator);
361            }
362    
363            /**
364            * @throws SystemException if a system exception occurred
365            */
366            public static int getSCLicenseSCProductEntriesCount(long licenseId)
367                    throws com.liferay.portal.kernel.exception.SystemException {
368                    return getService().getSCLicenseSCProductEntriesCount(licenseId);
369            }
370    
371            /**
372            * @throws SystemException if a system exception occurred
373            */
374            public static boolean hasSCLicenseSCProductEntry(long licenseId,
375                    long productEntryId)
376                    throws com.liferay.portal.kernel.exception.SystemException {
377                    return getService().hasSCLicenseSCProductEntry(licenseId, productEntryId);
378            }
379    
380            /**
381            * @throws SystemException if a system exception occurred
382            */
383            public static boolean hasSCLicenseSCProductEntries(long licenseId)
384                    throws com.liferay.portal.kernel.exception.SystemException {
385                    return getService().hasSCLicenseSCProductEntries(licenseId);
386            }
387    
388            /**
389            * @throws SystemException if a system exception occurred
390            */
391            public static void setSCLicenseSCProductEntries(long licenseId,
392                    long[] productEntryIds)
393                    throws com.liferay.portal.kernel.exception.SystemException {
394                    getService().setSCLicenseSCProductEntries(licenseId, productEntryIds);
395            }
396    
397            /**
398            * Returns the Spring bean ID for this bean.
399            *
400            * @return the Spring bean ID for this bean
401            */
402            public static java.lang.String getBeanIdentifier() {
403                    return getService().getBeanIdentifier();
404            }
405    
406            /**
407            * Sets the Spring bean ID for this bean.
408            *
409            * @param beanIdentifier the Spring bean ID for this bean
410            */
411            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
412                    getService().setBeanIdentifier(beanIdentifier);
413            }
414    
415            public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
416                    long userId, java.lang.String name, java.lang.String type,
417                    java.lang.String tags, java.lang.String shortDescription,
418                    java.lang.String longDescription, java.lang.String pageURL,
419                    java.lang.String author, java.lang.String repoGroupId,
420                    java.lang.String repoArtifactId, long[] licenseIds,
421                    java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
422                    com.liferay.portal.service.ServiceContext serviceContext)
423                    throws com.liferay.portal.kernel.exception.PortalException,
424                            com.liferay.portal.kernel.exception.SystemException {
425                    return getService()
426                                       .addProductEntry(userId, name, type, tags, shortDescription,
427                            longDescription, pageURL, author, repoGroupId, repoArtifactId,
428                            licenseIds, thumbnails, fullImages, serviceContext);
429            }
430    
431            public static void addProductEntryResources(long productEntryId,
432                    boolean addGroupPermissions, boolean addGuestPermissions)
433                    throws com.liferay.portal.kernel.exception.PortalException,
434                            com.liferay.portal.kernel.exception.SystemException {
435                    getService()
436                            .addProductEntryResources(productEntryId, addGroupPermissions,
437                            addGuestPermissions);
438            }
439    
440            public static void addProductEntryResources(long productEntryId,
441                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
442                    throws com.liferay.portal.kernel.exception.PortalException,
443                            com.liferay.portal.kernel.exception.SystemException {
444                    getService()
445                            .addProductEntryResources(productEntryId, groupPermissions,
446                            guestPermissions);
447            }
448    
449            public static void addProductEntryResources(
450                    com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
451                    boolean addGroupPermissions, boolean addGuestPermissions)
452                    throws com.liferay.portal.kernel.exception.PortalException,
453                            com.liferay.portal.kernel.exception.SystemException {
454                    getService()
455                            .addProductEntryResources(productEntry, addGroupPermissions,
456                            addGuestPermissions);
457            }
458    
459            public static void addProductEntryResources(
460                    com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
461                    java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
462                    throws com.liferay.portal.kernel.exception.PortalException,
463                            com.liferay.portal.kernel.exception.SystemException {
464                    getService()
465                            .addProductEntryResources(productEntry, groupPermissions,
466                            guestPermissions);
467            }
468    
469            public static void deleteProductEntries(long groupId)
470                    throws com.liferay.portal.kernel.exception.PortalException,
471                            com.liferay.portal.kernel.exception.SystemException {
472                    getService().deleteProductEntries(groupId);
473            }
474    
475            public static com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteProductEntry(
476                    long productEntryId)
477                    throws com.liferay.portal.kernel.exception.PortalException,
478                            com.liferay.portal.kernel.exception.SystemException {
479                    return getService().deleteProductEntry(productEntryId);
480            }
481    
482            public static com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteProductEntry(
483                    com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
484                    throws com.liferay.portal.kernel.exception.PortalException,
485                            com.liferay.portal.kernel.exception.SystemException {
486                    return getService().deleteProductEntry(productEntry);
487            }
488    
489            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getCompanyProductEntries(
490                    long companyId, int start, int end)
491                    throws com.liferay.portal.kernel.exception.SystemException {
492                    return getService().getCompanyProductEntries(companyId, start, end);
493            }
494    
495            public static int getCompanyProductEntriesCount(long companyId)
496                    throws com.liferay.portal.kernel.exception.SystemException {
497                    return getService().getCompanyProductEntriesCount(companyId);
498            }
499    
500            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
501                    long groupId, int start, int end)
502                    throws com.liferay.portal.kernel.exception.SystemException {
503                    return getService().getProductEntries(groupId, start, end);
504            }
505    
506            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
507                    long groupId, int start, int end,
508                    com.liferay.portal.kernel.util.OrderByComparator obc)
509                    throws com.liferay.portal.kernel.exception.SystemException {
510                    return getService().getProductEntries(groupId, start, end, obc);
511            }
512    
513            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
514                    long groupId, long userId, int start, int end)
515                    throws com.liferay.portal.kernel.exception.SystemException {
516                    return getService().getProductEntries(groupId, userId, start, end);
517            }
518    
519            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
520                    long groupId, long userId, int start, int end,
521                    com.liferay.portal.kernel.util.OrderByComparator obc)
522                    throws com.liferay.portal.kernel.exception.SystemException {
523                    return getService().getProductEntries(groupId, userId, start, end, obc);
524            }
525    
526            public static int getProductEntriesCount(long groupId)
527                    throws com.liferay.portal.kernel.exception.SystemException {
528                    return getService().getProductEntriesCount(groupId);
529            }
530    
531            public static int getProductEntriesCount(long groupId, long userId)
532                    throws com.liferay.portal.kernel.exception.SystemException {
533                    return getService().getProductEntriesCount(groupId, userId);
534            }
535    
536            public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
537                    long productEntryId)
538                    throws com.liferay.portal.kernel.exception.PortalException,
539                            com.liferay.portal.kernel.exception.SystemException {
540                    return getService().getProductEntry(productEntryId);
541            }
542    
543            public static java.lang.String getRepositoryXML(long groupId,
544                    java.lang.String baseImageURL, java.util.Date oldestDate,
545                    int maxNumOfVersions, java.util.Properties repoSettings)
546                    throws com.liferay.portal.kernel.exception.SystemException {
547                    return getService()
548                                       .getRepositoryXML(groupId, baseImageURL, oldestDate,
549                            maxNumOfVersions, repoSettings);
550            }
551    
552            public static java.lang.String getRepositoryXML(long groupId,
553                    java.lang.String version, java.lang.String baseImageURL,
554                    java.util.Date oldestDate, int maxNumOfVersions,
555                    java.util.Properties repoSettings)
556                    throws com.liferay.portal.kernel.exception.SystemException {
557                    return getService()
558                                       .getRepositoryXML(groupId, version, baseImageURL,
559                            oldestDate, maxNumOfVersions, repoSettings);
560            }
561    
562            public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
563                    long productEntryId, java.lang.String name, java.lang.String type,
564                    java.lang.String tags, java.lang.String shortDescription,
565                    java.lang.String longDescription, java.lang.String pageURL,
566                    java.lang.String author, java.lang.String repoGroupId,
567                    java.lang.String repoArtifactId, long[] licenseIds,
568                    java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
569                    throws com.liferay.portal.kernel.exception.PortalException,
570                            com.liferay.portal.kernel.exception.SystemException {
571                    return getService()
572                                       .updateProductEntry(productEntryId, name, type, tags,
573                            shortDescription, longDescription, pageURL, author, repoGroupId,
574                            repoArtifactId, licenseIds, thumbnails, fullImages);
575            }
576    
577            public static SCProductEntryLocalService getService() {
578                    if (_service == null) {
579                            _service = (SCProductEntryLocalService)PortalBeanLocatorUtil.locate(SCProductEntryLocalService.class.getName());
580    
581                            ReferenceRegistry.registerReference(SCProductEntryLocalServiceUtil.class,
582                                    "_service");
583                    }
584    
585                    return _service;
586            }
587    
588            /**
589             * @deprecated As of 6.2.0
590             */
591            public void setService(SCProductEntryLocalService service) {
592            }
593    
594            private static SCProductEntryLocalService _service;
595    }