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="SCProductVersionServiceUtil.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 SCProductVersionService} 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       SCProductVersionService
37   * @generated
38   */
39  public class SCProductVersionServiceUtil {
40      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
41          long productEntryId, java.lang.String version,
42          java.lang.String changeLog, java.lang.String downloadPageURL,
43          java.lang.String directDownloadURL, boolean testDirectDownloadURL,
44          boolean repoStoreArtifact, long[] frameworkVersionIds,
45          boolean addCommunityPermissions, boolean addGuestPermissions)
46          throws com.liferay.portal.PortalException,
47              com.liferay.portal.SystemException, java.rmi.RemoteException {
48          return getService()
49                     .addProductVersion(productEntryId, version, changeLog,
50              downloadPageURL, directDownloadURL, testDirectDownloadURL,
51              repoStoreArtifact, frameworkVersionIds, addCommunityPermissions,
52              addGuestPermissions);
53      }
54  
55      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
56          long productEntryId, java.lang.String version,
57          java.lang.String changeLog, java.lang.String downloadPageURL,
58          java.lang.String directDownloadURL, boolean testDirectDownloadURL,
59          boolean repoStoreArtifact, long[] frameworkVersionIds,
60          java.lang.String[] communityPermissions,
61          java.lang.String[] guestPermissions)
62          throws com.liferay.portal.PortalException,
63              com.liferay.portal.SystemException, java.rmi.RemoteException {
64          return getService()
65                     .addProductVersion(productEntryId, version, changeLog,
66              downloadPageURL, directDownloadURL, testDirectDownloadURL,
67              repoStoreArtifact, frameworkVersionIds, communityPermissions,
68              guestPermissions);
69      }
70  
71      public static void deleteProductVersion(long productVersionId)
72          throws com.liferay.portal.PortalException,
73              com.liferay.portal.SystemException, java.rmi.RemoteException {
74          getService().deleteProductVersion(productVersionId);
75      }
76  
77      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersion(
78          long productVersionId)
79          throws com.liferay.portal.PortalException,
80              com.liferay.portal.SystemException, java.rmi.RemoteException {
81          return getService().getProductVersion(productVersionId);
82      }
83  
84      public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getProductVersions(
85          long productEntryId, int start, int end)
86          throws com.liferay.portal.PortalException,
87              com.liferay.portal.SystemException, java.rmi.RemoteException {
88          return getService().getProductVersions(productEntryId, start, end);
89      }
90  
91      public static int getProductVersionsCount(long productEntryId)
92          throws com.liferay.portal.PortalException,
93              com.liferay.portal.SystemException, java.rmi.RemoteException {
94          return getService().getProductVersionsCount(productEntryId);
95      }
96  
97      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateProductVersion(
98          long productVersionId, java.lang.String version,
99          java.lang.String changeLog, java.lang.String downloadPageURL,
100         java.lang.String directDownloadURL, boolean testDirectDownloadURL,
101         boolean repoStoreArtifact, long[] frameworkVersionIds)
102         throws com.liferay.portal.PortalException,
103             com.liferay.portal.SystemException, java.rmi.RemoteException {
104         return getService()
105                    .updateProductVersion(productVersionId, version, changeLog,
106             downloadPageURL, directDownloadURL, testDirectDownloadURL,
107             repoStoreArtifact, frameworkVersionIds);
108     }
109 
110     public static SCProductVersionService getService() {
111         if (_service == null) {
112             _service = (SCProductVersionService)PortalBeanLocatorUtil.locate(SCProductVersionService.class.getName());
113         }
114 
115         return _service;
116     }
117 
118     public void setService(SCProductVersionService service) {
119         _service = service;
120     }
121 
122     private static SCProductVersionService _service;
123 }