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    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * <p>
021     * This class provides static methods for the
022     * {@link SCProductEntryService} bean. The static methods of
023     * this class calls the same methods of the bean instance. It's convenient to be
024     * able to just write one line to call a method on a bean instead of writing a
025     * lookup call and a method call.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       SCProductEntryService
030     * @generated
031     */
032    public class SCProductEntryServiceUtil {
033            public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
034                    java.lang.String name, java.lang.String type, java.lang.String tags,
035                    java.lang.String shortDescription, java.lang.String longDescription,
036                    java.lang.String pageURL, java.lang.String author,
037                    java.lang.String repoGroupId, java.lang.String repoArtifactId,
038                    long[] licenseIds, java.util.List<byte[]> thumbnails,
039                    java.util.List<byte[]> fullImages,
040                    com.liferay.portal.service.ServiceContext serviceContext)
041                    throws com.liferay.portal.kernel.exception.PortalException,
042                            com.liferay.portal.kernel.exception.SystemException {
043                    return getService()
044                                       .addProductEntry(name, type, tags, shortDescription,
045                            longDescription, pageURL, author, repoGroupId, repoArtifactId,
046                            licenseIds, thumbnails, fullImages, serviceContext);
047            }
048    
049            public static void deleteProductEntry(long productEntryId)
050                    throws com.liferay.portal.kernel.exception.PortalException,
051                            com.liferay.portal.kernel.exception.SystemException {
052                    getService().deleteProductEntry(productEntryId);
053            }
054    
055            public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
056                    long productEntryId)
057                    throws com.liferay.portal.kernel.exception.PortalException,
058                            com.liferay.portal.kernel.exception.SystemException {
059                    return getService().getProductEntry(productEntryId);
060            }
061    
062            public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
063                    long productEntryId, java.lang.String name, java.lang.String type,
064                    java.lang.String tags, java.lang.String shortDescription,
065                    java.lang.String longDescription, java.lang.String pageURL,
066                    java.lang.String author, java.lang.String repoGroupId,
067                    java.lang.String repoArtifactId, long[] licenseIds,
068                    java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return getService()
072                                       .updateProductEntry(productEntryId, name, type, tags,
073                            shortDescription, longDescription, pageURL, author, repoGroupId,
074                            repoArtifactId, licenseIds, thumbnails, fullImages);
075            }
076    
077            public static SCProductEntryService getService() {
078                    if (_service == null) {
079                            _service = (SCProductEntryService)PortalBeanLocatorUtil.locate(SCProductEntryService.class.getName());
080                    }
081    
082                    return _service;
083            }
084    
085            public void setService(SCProductEntryService service) {
086                    _service = service;
087            }
088    
089            private static SCProductEntryService _service;
090    }