1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.softwarecatalog.service;
24  
25  
26  /**
27   * <a href="SCProductVersionLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class provides static methods for the
36   * <code>com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService</code>
37   * bean. The static methods of this class calls the same methods of the bean
38   * instance. It's convenient to be able to just write one line to call a method
39   * on a bean instead of writing a lookup call and a method call.
40   * </p>
41   *
42   * @author Brian Wing Shun Chan
43   *
44   * @see com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService
45   *
46   */
47  public class SCProductVersionLocalServiceUtil {
48      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addSCProductVersion(
49          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
50          throws com.liferay.portal.SystemException {
51          return _service.addSCProductVersion(scProductVersion);
52      }
53  
54      public static void deleteSCProductVersion(long productVersionId)
55          throws com.liferay.portal.PortalException,
56              com.liferay.portal.SystemException {
57          _service.deleteSCProductVersion(productVersionId);
58      }
59  
60      public static void deleteSCProductVersion(
61          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
62          throws com.liferay.portal.SystemException {
63          _service.deleteSCProductVersion(scProductVersion);
64      }
65  
66      public static java.util.List<Object> dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException {
69          return _service.dynamicQuery(dynamicQuery);
70      }
71  
72      public static java.util.List<Object> dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
74          int end) throws com.liferay.portal.SystemException {
75          return _service.dynamicQuery(dynamicQuery, start, end);
76      }
77  
78      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getSCProductVersion(
79          long productVersionId)
80          throws com.liferay.portal.PortalException,
81              com.liferay.portal.SystemException {
82          return _service.getSCProductVersion(productVersionId);
83      }
84  
85      public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
86          int start, int end) throws com.liferay.portal.SystemException {
87          return _service.getSCProductVersions(start, end);
88      }
89  
90      public static int getSCProductVersionsCount()
91          throws com.liferay.portal.SystemException {
92          return _service.getSCProductVersionsCount();
93      }
94  
95      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
96          com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
97          throws com.liferay.portal.SystemException {
98          return _service.updateSCProductVersion(scProductVersion);
99      }
100 
101     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
102         long userId, long productEntryId, java.lang.String version,
103         java.lang.String changeLog, java.lang.String downloadPageURL,
104         java.lang.String directDownloadURL, boolean repoStoreArtifact,
105         long[] frameworkVersionIds, boolean addCommunityPermissions,
106         boolean addGuestPermissions)
107         throws com.liferay.portal.PortalException,
108             com.liferay.portal.SystemException {
109         return _service.addProductVersion(userId, productEntryId, version,
110             changeLog, downloadPageURL, directDownloadURL, repoStoreArtifact,
111             frameworkVersionIds, addCommunityPermissions, addGuestPermissions);
112     }
113 
114     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
115         long userId, long productEntryId, java.lang.String version,
116         java.lang.String changeLog, java.lang.String downloadPageURL,
117         java.lang.String directDownloadURL, boolean repoStoreArtifact,
118         long[] frameworkVersionIds, java.lang.String[] communityPermissions,
119         java.lang.String[] guestPermissions)
120         throws com.liferay.portal.PortalException,
121             com.liferay.portal.SystemException {
122         return _service.addProductVersion(userId, productEntryId, version,
123             changeLog, downloadPageURL, directDownloadURL, repoStoreArtifact,
124             frameworkVersionIds, communityPermissions, guestPermissions);
125     }
126 
127     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
128         long userId, long productEntryId, java.lang.String version,
129         java.lang.String changeLog, java.lang.String downloadPageURL,
130         java.lang.String directDownloadURL, boolean repoStoreArtifact,
131         long[] frameworkVersionIds, java.lang.Boolean addCommunityPermissions,
132         java.lang.Boolean addGuestPermissions,
133         java.lang.String[] communityPermissions,
134         java.lang.String[] guestPermissions)
135         throws com.liferay.portal.PortalException,
136             com.liferay.portal.SystemException {
137         return _service.addProductVersion(userId, productEntryId, version,
138             changeLog, downloadPageURL, directDownloadURL, repoStoreArtifact,
139             frameworkVersionIds, addCommunityPermissions, addGuestPermissions,
140             communityPermissions, guestPermissions);
141     }
142 
143     public static void deleteProductVersion(long productVersionId)
144         throws com.liferay.portal.PortalException,
145             com.liferay.portal.SystemException {
146         _service.deleteProductVersion(productVersionId);
147     }
148 
149     public static void deleteProductVersion(
150         com.liferay.portlet.softwarecatalog.model.SCProductVersion productVersion)
151         throws com.liferay.portal.SystemException {
152         _service.deleteProductVersion(productVersion);
153     }
154 
155     public static void deleteProductVersions(long productEntryId)
156         throws com.liferay.portal.SystemException {
157         _service.deleteProductVersions(productEntryId);
158     }
159 
160     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersion(
161         long productVersionId)
162         throws com.liferay.portal.PortalException,
163             com.liferay.portal.SystemException {
164         return _service.getProductVersion(productVersionId);
165     }
166 
167     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersionByDirectDownloadURL(
168         java.lang.String directDownloadURL)
169         throws com.liferay.portal.PortalException,
170             com.liferay.portal.SystemException {
171         return _service.getProductVersionByDirectDownloadURL(directDownloadURL);
172     }
173 
174     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getProductVersions(
175         long productEntryId, int start, int end)
176         throws com.liferay.portal.SystemException {
177         return _service.getProductVersions(productEntryId, start, end);
178     }
179 
180     public static int getProductVersionsCount(long productEntryId)
181         throws com.liferay.portal.SystemException {
182         return _service.getProductVersionsCount(productEntryId);
183     }
184 
185     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateProductVersion(
186         long productVersionId, java.lang.String version,
187         java.lang.String changeLog, java.lang.String downloadPageURL,
188         java.lang.String directDownloadURL, boolean repoStoreArtifact,
189         long[] frameworkVersionIds)
190         throws com.liferay.portal.PortalException,
191             com.liferay.portal.SystemException {
192         return _service.updateProductVersion(productVersionId, version,
193             changeLog, downloadPageURL, directDownloadURL, repoStoreArtifact,
194             frameworkVersionIds);
195     }
196 
197     public static SCProductVersionLocalService getService() {
198         return _service;
199     }
200 
201     public void setService(SCProductVersionLocalService service) {
202         _service = service;
203     }
204 
205     private static SCProductVersionLocalService _service;
206 }