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          long plid, java.lang.String name, java.lang.String type,
42          java.lang.String tags, java.lang.String shortDescription,
43          java.lang.String longDescription, java.lang.String pageURL,
44          java.lang.String author, java.lang.String repoGroupId,
45          java.lang.String repoArtifactId, long[] licenseIds,
46          java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
47          boolean addCommunityPermissions, boolean addGuestPermissions)
48          throws com.liferay.portal.PortalException,
49              com.liferay.portal.SystemException, java.rmi.RemoteException {
50          return getService()
51                     .addProductEntry(plid, name, type, tags, shortDescription,
52              longDescription, pageURL, author, repoGroupId, repoArtifactId,
53              licenseIds, thumbnails, fullImages, addCommunityPermissions,
54              addGuestPermissions);
55      }
56  
57      public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
58          long plid, java.lang.String name, java.lang.String type,
59          java.lang.String tags, java.lang.String shortDescription,
60          java.lang.String longDescription, java.lang.String pageURL,
61          java.lang.String author, java.lang.String repoGroupId,
62          java.lang.String repoArtifactId, long[] licenseIds,
63          java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
64          java.lang.String[] communityPermissions,
65          java.lang.String[] guestPermissions)
66          throws com.liferay.portal.PortalException,
67              com.liferay.portal.SystemException, java.rmi.RemoteException {
68          return getService()
69                     .addProductEntry(plid, name, type, tags, shortDescription,
70              longDescription, pageURL, author, repoGroupId, repoArtifactId,
71              licenseIds, thumbnails, fullImages, communityPermissions,
72              guestPermissions);
73      }
74  
75      public static void deleteProductEntry(long productEntryId)
76          throws com.liferay.portal.PortalException,
77              com.liferay.portal.SystemException, java.rmi.RemoteException {
78          getService().deleteProductEntry(productEntryId);
79      }
80  
81      public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
82          long productEntryId)
83          throws com.liferay.portal.PortalException,
84              com.liferay.portal.SystemException, java.rmi.RemoteException {
85          return getService().getProductEntry(productEntryId);
86      }
87  
88      public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
89          long productEntryId, java.lang.String name, java.lang.String type,
90          java.lang.String tags, java.lang.String shortDescription,
91          java.lang.String longDescription, java.lang.String pageURL,
92          java.lang.String author, java.lang.String repoGroupId,
93          java.lang.String repoArtifactId, long[] licenseIds,
94          java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
95          throws com.liferay.portal.PortalException,
96              com.liferay.portal.SystemException, java.rmi.RemoteException {
97          return getService()
98                     .updateProductEntry(productEntryId, name, type, tags,
99              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 
108         return _service;
109     }
110 
111     public void setService(SCProductEntryService service) {
112         _service = service;
113     }
114 
115     private static SCProductEntryService _service;
116 }