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 remote service utility for SCProductEntry. This utility wraps
022     * {@link com.liferay.portlet.softwarecatalog.service.impl.SCProductEntryServiceImpl} and is the
023     * primary access point for service operations in application layer code running
024     * on a remote server. Methods of this service are expected to have security
025     * checks based on the propagated JAAS credentials because this service can be
026     * accessed remotely.
027     *
028     * @author Brian Wing Shun Chan
029     * @see SCProductEntryService
030     * @see com.liferay.portlet.softwarecatalog.service.base.SCProductEntryServiceBaseImpl
031     * @see com.liferay.portlet.softwarecatalog.service.impl.SCProductEntryServiceImpl
032     * @generated
033     */
034    public class SCProductEntryServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * 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.
039             */
040    
041            /**
042            * Returns the Spring bean ID for this bean.
043            *
044            * @return the Spring bean ID for this bean
045            */
046            public static java.lang.String getBeanIdentifier() {
047                    return getService().getBeanIdentifier();
048            }
049    
050            /**
051            * Sets the Spring bean ID for this bean.
052            *
053            * @param beanIdentifier the Spring bean ID for this bean
054            */
055            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
056                    getService().setBeanIdentifier(beanIdentifier);
057            }
058    
059            public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
060                    java.lang.String name, java.lang.String type, java.lang.String tags,
061                    java.lang.String shortDescription, java.lang.String longDescription,
062                    java.lang.String pageURL, java.lang.String author,
063                    java.lang.String repoGroupId, java.lang.String repoArtifactId,
064                    long[] licenseIds, java.util.List<byte[]> thumbnails,
065                    java.util.List<byte[]> fullImages,
066                    com.liferay.portal.service.ServiceContext serviceContext)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    return getService()
070                                       .addProductEntry(name, type, tags, shortDescription,
071                            longDescription, pageURL, author, repoGroupId, repoArtifactId,
072                            licenseIds, thumbnails, fullImages, serviceContext);
073            }
074    
075            public static void deleteProductEntry(long productEntryId)
076                    throws com.liferay.portal.kernel.exception.PortalException,
077                            com.liferay.portal.kernel.exception.SystemException {
078                    getService().deleteProductEntry(productEntryId);
079            }
080    
081            public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
082                    long productEntryId)
083                    throws com.liferay.portal.kernel.exception.PortalException,
084                            com.liferay.portal.kernel.exception.SystemException {
085                    return getService().getProductEntry(productEntryId);
086            }
087    
088            public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
089                    long productEntryId, java.lang.String name, java.lang.String type,
090                    java.lang.String tags, java.lang.String shortDescription,
091                    java.lang.String longDescription, java.lang.String pageURL,
092                    java.lang.String author, java.lang.String repoGroupId,
093                    java.lang.String repoArtifactId, long[] licenseIds,
094                    java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
095                    throws com.liferay.portal.kernel.exception.PortalException,
096                            com.liferay.portal.kernel.exception.SystemException {
097                    return getService()
098                                       .updateProductEntry(productEntryId, name, type, tags,
099                            shortDescription, longDescription, pageURL, author, repoGroupId,
100                            repoArtifactId, licenseIds, thumbnails, fullImages);
101            }
102    
103            public static SCProductEntryService getService() {
104                    if (_service == null) {
105                            _service = (SCProductEntryService)PortalBeanLocatorUtil.locate(SCProductEntryService.class.getName());
106    
107                            ReferenceRegistry.registerReference(SCProductEntryServiceUtil.class,
108                                    "_service");
109                    }
110    
111                    return _service;
112            }
113    
114            /**
115             * @deprecated As of 6.2.0
116             */
117            public void setService(SCProductEntryService service) {
118            }
119    
120            private static SCProductEntryService _service;
121    }