001    /**
002     * Copyright (c) 2000-2010 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.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * The utility for the s c product entry remote service. This utility wraps {@link com.liferay.portlet.softwarecatalog.service.impl.SCProductEntryServiceImpl} and is the primary access point for service operations in application layer code running on a remote server.
021     *
022     * <p>
023     * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.softwarecatalog.service.impl.SCProductEntryServiceImpl} and rerun ServiceBuilder to regenerate this class.
024     * </p>
025     *
026     * <p>
027     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see SCProductEntryService
032     * @see com.liferay.portlet.softwarecatalog.service.base.SCProductEntryServiceBaseImpl
033     * @see com.liferay.portlet.softwarecatalog.service.impl.SCProductEntryServiceImpl
034     * @generated
035     */
036    public class SCProductEntryServiceUtil {
037            public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
038                    java.lang.String name, java.lang.String type, java.lang.String tags,
039                    java.lang.String shortDescription, java.lang.String longDescription,
040                    java.lang.String pageURL, java.lang.String author,
041                    java.lang.String repoGroupId, java.lang.String repoArtifactId,
042                    long[] licenseIds, java.util.List<byte[]> thumbnails,
043                    java.util.List<byte[]> fullImages,
044                    com.liferay.portal.service.ServiceContext serviceContext)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    return getService()
048                                       .addProductEntry(name, type, tags, shortDescription,
049                            longDescription, pageURL, author, repoGroupId, repoArtifactId,
050                            licenseIds, thumbnails, fullImages, serviceContext);
051            }
052    
053            public static void deleteProductEntry(long productEntryId)
054                    throws com.liferay.portal.kernel.exception.PortalException,
055                            com.liferay.portal.kernel.exception.SystemException {
056                    getService().deleteProductEntry(productEntryId);
057            }
058    
059            public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
060                    long productEntryId)
061                    throws com.liferay.portal.kernel.exception.PortalException,
062                            com.liferay.portal.kernel.exception.SystemException {
063                    return getService().getProductEntry(productEntryId);
064            }
065    
066            public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
067                    long productEntryId, java.lang.String name, java.lang.String type,
068                    java.lang.String tags, java.lang.String shortDescription,
069                    java.lang.String longDescription, java.lang.String pageURL,
070                    java.lang.String author, java.lang.String repoGroupId,
071                    java.lang.String repoArtifactId, long[] licenseIds,
072                    java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
073                    throws com.liferay.portal.kernel.exception.PortalException,
074                            com.liferay.portal.kernel.exception.SystemException {
075                    return getService()
076                                       .updateProductEntry(productEntryId, name, type, tags,
077                            shortDescription, longDescription, pageURL, author, repoGroupId,
078                            repoArtifactId, licenseIds, thumbnails, fullImages);
079            }
080    
081            public static SCProductEntryService getService() {
082                    if (_service == null) {
083                            _service = (SCProductEntryService)PortalBeanLocatorUtil.locate(SCProductEntryService.class.getName());
084                    }
085    
086                    return _service;
087            }
088    
089            public void setService(SCProductEntryService service) {
090                    _service = service;
091            }
092    
093            private static SCProductEntryService _service;
094    }