1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.softwarecatalog.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="SCProductEntryServiceUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * <p>
28   * This class provides static methods for the
29   * {@link SCProductEntryService} bean. The static methods of
30   * this class calls the same methods of the bean instance. It's convenient to be
31   * able to just write one line to call a method on a bean instead of writing a
32   * lookup call and a method call.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       SCProductEntryService
37   * @generated
38   */
39  public class SCProductEntryServiceUtil {
40      public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
41          java.lang.String name, java.lang.String type, java.lang.String tags,
42          java.lang.String shortDescription, java.lang.String longDescription,
43          java.lang.String pageURL, java.lang.String author,
44          java.lang.String repoGroupId, java.lang.String repoArtifactId,
45          long[] licenseIds, java.util.List<byte[]> thumbnails,
46          java.util.List<byte[]> fullImages,
47          com.liferay.portal.service.ServiceContext serviceContext)
48          throws com.liferay.portal.kernel.exception.PortalException,
49              com.liferay.portal.kernel.exception.SystemException {
50          return getService()
51                     .addProductEntry(name, type, tags, shortDescription,
52              longDescription, pageURL, author, repoGroupId, repoArtifactId,
53              licenseIds, thumbnails, fullImages, serviceContext);
54      }
55  
56      public static void deleteProductEntry(long productEntryId)
57          throws com.liferay.portal.kernel.exception.PortalException,
58              com.liferay.portal.kernel.exception.SystemException {
59          getService().deleteProductEntry(productEntryId);
60      }
61  
62      public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
63          long productEntryId)
64          throws com.liferay.portal.kernel.exception.PortalException,
65              com.liferay.portal.kernel.exception.SystemException {
66          return getService().getProductEntry(productEntryId);
67      }
68  
69      public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
70          long productEntryId, java.lang.String name, java.lang.String type,
71          java.lang.String tags, java.lang.String shortDescription,
72          java.lang.String longDescription, java.lang.String pageURL,
73          java.lang.String author, java.lang.String repoGroupId,
74          java.lang.String repoArtifactId, long[] licenseIds,
75          java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
76          throws com.liferay.portal.kernel.exception.PortalException,
77              com.liferay.portal.kernel.exception.SystemException {
78          return getService()
79                     .updateProductEntry(productEntryId, name, type, tags,
80              shortDescription, longDescription, pageURL, author, repoGroupId,
81              repoArtifactId, licenseIds, thumbnails, fullImages);
82      }
83  
84      public static SCProductEntryService getService() {
85          if (_service == null) {
86              _service = (SCProductEntryService)PortalBeanLocatorUtil.locate(SCProductEntryService.class.getName());
87          }
88  
89          return _service;
90      }
91  
92      public void setService(SCProductEntryService service) {
93          _service = service;
94      }
95  
96      private static SCProductEntryService _service;
97  }