1   /**
2    * Copyright (c) 2000-2007 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   * <a href="SCProductVersionLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be overwritten
30   * the next time is generated.
31   * </p>
32   *
33   * <p>
34   * This class provides static methods for the <code>com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService</code>
35   * bean. The static methods of this class calls the same methods of the bean instance.
36   * It's convenient to be able to just write one line to call a method on a bean
37   * instead of writing a lookup call and a method call.
38   * </p>
39   *
40   * <p>
41   * <code>com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalServiceFactory</code>
42   * is responsible for the lookup of the bean.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService
48   * @see com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalServiceFactory
49   *
50   */
51  public class SCProductVersionLocalServiceUtil {
52      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addSCProductVersion(
53          com.liferay.portlet.softwarecatalog.model.SCProductVersion model)
54          throws com.liferay.portal.SystemException {
55          SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
56  
57          return scProductVersionLocalService.addSCProductVersion(model);
58      }
59  
60      public static java.util.List dynamicQuery(
61          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
62          throws com.liferay.portal.SystemException {
63          SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
64  
65          return scProductVersionLocalService.dynamicQuery(queryInitializer);
66      }
67  
68      public static java.util.List dynamicQuery(
69          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
70          int begin, int end) throws com.liferay.portal.SystemException {
71          SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
72  
73          return scProductVersionLocalService.dynamicQuery(queryInitializer,
74              begin, end);
75      }
76  
77      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
78          com.liferay.portlet.softwarecatalog.model.SCProductVersion model)
79          throws com.liferay.portal.SystemException {
80          SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
81  
82          return scProductVersionLocalService.updateSCProductVersion(model);
83      }
84  
85      public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
86          long userId, long productEntryId, java.lang.String version,
87          java.lang.String changeLog, java.lang.String downloadPageURL,
88          java.lang.String directDownloadURL, boolean repoStoreArtifact,
89          long[] frameworkVersionIds, boolean addCommunityPermissions,
90          boolean addGuestPermissions)
91          throws com.liferay.portal.PortalException, 
92              com.liferay.portal.SystemException {
93          SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
94  
95          return scProductVersionLocalService.addProductVersion(userId,
96              productEntryId, version, changeLog, downloadPageURL,
97              directDownloadURL, repoStoreArtifact, frameworkVersionIds,
98              addCommunityPermissions, addGuestPermissions);
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, java.lang.String[] communityPermissions,
106         java.lang.String[] guestPermissions)
107         throws com.liferay.portal.PortalException, 
108             com.liferay.portal.SystemException {
109         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
110 
111         return scProductVersionLocalService.addProductVersion(userId,
112             productEntryId, version, changeLog, downloadPageURL,
113             directDownloadURL, repoStoreArtifact, frameworkVersionIds,
114             communityPermissions, guestPermissions);
115     }
116 
117     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
118         long userId, long productEntryId, java.lang.String version,
119         java.lang.String changeLog, java.lang.String downloadPageURL,
120         java.lang.String directDownloadURL, boolean repoStoreArtifact,
121         long[] frameworkVersionIds, java.lang.Boolean addCommunityPermissions,
122         java.lang.Boolean addGuestPermissions,
123         java.lang.String[] communityPermissions,
124         java.lang.String[] guestPermissions)
125         throws com.liferay.portal.PortalException, 
126             com.liferay.portal.SystemException {
127         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
128 
129         return scProductVersionLocalService.addProductVersion(userId,
130             productEntryId, version, changeLog, downloadPageURL,
131             directDownloadURL, repoStoreArtifact, frameworkVersionIds,
132             addCommunityPermissions, addGuestPermissions, communityPermissions,
133             guestPermissions);
134     }
135 
136     public static void deleteProductVersion(long productVersionId)
137         throws com.liferay.portal.PortalException, 
138             com.liferay.portal.SystemException {
139         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
140         scProductVersionLocalService.deleteProductVersion(productVersionId);
141     }
142 
143     public static void deleteProductVersion(
144         com.liferay.portlet.softwarecatalog.model.SCProductVersion productVersion)
145         throws com.liferay.portal.PortalException, 
146             com.liferay.portal.SystemException {
147         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
148         scProductVersionLocalService.deleteProductVersion(productVersion);
149     }
150 
151     public static void deleteProductVersions(long productEntryId)
152         throws com.liferay.portal.PortalException, 
153             com.liferay.portal.SystemException {
154         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
155         scProductVersionLocalService.deleteProductVersions(productEntryId);
156     }
157 
158     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersion(
159         long productVersionId)
160         throws com.liferay.portal.PortalException, 
161             com.liferay.portal.SystemException {
162         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
163 
164         return scProductVersionLocalService.getProductVersion(productVersionId);
165     }
166 
167     public static java.util.List getProductVersions(long productEntryId,
168         int begin, int end) throws com.liferay.portal.SystemException {
169         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
170 
171         return scProductVersionLocalService.getProductVersions(productEntryId,
172             begin, end);
173     }
174 
175     public static int getProductVersionsCount(long productEntryId)
176         throws com.liferay.portal.SystemException {
177         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
178 
179         return scProductVersionLocalService.getProductVersionsCount(productEntryId);
180     }
181 
182     public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateProductVersion(
183         long productVersionId, java.lang.String version,
184         java.lang.String changeLog, java.lang.String downloadPageURL,
185         java.lang.String directDownloadURL, boolean repoStoreArtifact,
186         long[] frameworkVersionIds)
187         throws com.liferay.portal.PortalException, 
188             com.liferay.portal.SystemException {
189         SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
190 
191         return scProductVersionLocalService.updateProductVersion(productVersionId,
192             version, changeLog, downloadPageURL, directDownloadURL,
193             repoStoreArtifact, frameworkVersionIds);
194     }
195 }