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="SCProductEntryLocalServiceUtil.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 SCProductEntryLocalService} 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       SCProductEntryLocalService
37   * @generated
38   */
39  public class SCProductEntryLocalServiceUtil {
40      public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addSCProductEntry(
41          com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
42          throws com.liferay.portal.kernel.exception.SystemException {
43          return getService().addSCProductEntry(scProductEntry);
44      }
45  
46      public static com.liferay.portlet.softwarecatalog.model.SCProductEntry createSCProductEntry(
47          long productEntryId) {
48          return getService().createSCProductEntry(productEntryId);
49      }
50  
51      public static void deleteSCProductEntry(long productEntryId)
52          throws com.liferay.portal.kernel.exception.PortalException,
53              com.liferay.portal.kernel.exception.SystemException {
54          getService().deleteSCProductEntry(productEntryId);
55      }
56  
57      public static void deleteSCProductEntry(
58          com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
59          throws com.liferay.portal.kernel.exception.SystemException {
60          getService().deleteSCProductEntry(scProductEntry);
61      }
62  
63      @SuppressWarnings("unchecked")
64      public static java.util.List dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.kernel.exception.SystemException {
67          return getService().dynamicQuery(dynamicQuery);
68      }
69  
70      @SuppressWarnings("unchecked")
71      public static java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.kernel.exception.SystemException {
74          return getService().dynamicQuery(dynamicQuery, start, end);
75      }
76  
77      @SuppressWarnings("unchecked")
78      public static java.util.List dynamicQuery(
79          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80          int end,
81          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82          throws com.liferay.portal.kernel.exception.SystemException {
83          return getService()
84                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
85      }
86  
87      public static long dynamicQueryCount(
88          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
89          throws com.liferay.portal.kernel.exception.SystemException {
90          return getService().dynamicQueryCount(dynamicQuery);
91      }
92  
93      public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getSCProductEntry(
94          long productEntryId)
95          throws com.liferay.portal.kernel.exception.PortalException,
96              com.liferay.portal.kernel.exception.SystemException {
97          return getService().getSCProductEntry(productEntryId);
98      }
99  
100     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
101         int start, int end)
102         throws com.liferay.portal.kernel.exception.SystemException {
103         return getService().getSCProductEntries(start, end);
104     }
105 
106     public static int getSCProductEntriesCount()
107         throws com.liferay.portal.kernel.exception.SystemException {
108         return getService().getSCProductEntriesCount();
109     }
110 
111     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
112         com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
113         throws com.liferay.portal.kernel.exception.SystemException {
114         return getService().updateSCProductEntry(scProductEntry);
115     }
116 
117     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
118         com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
119         boolean merge)
120         throws com.liferay.portal.kernel.exception.SystemException {
121         return getService().updateSCProductEntry(scProductEntry, merge);
122     }
123 
124     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
125         long userId, java.lang.String name, java.lang.String type,
126         java.lang.String tags, java.lang.String shortDescription,
127         java.lang.String longDescription, java.lang.String pageURL,
128         java.lang.String author, java.lang.String repoGroupId,
129         java.lang.String repoArtifactId, long[] licenseIds,
130         java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
131         com.liferay.portal.service.ServiceContext serviceContext)
132         throws com.liferay.portal.kernel.exception.PortalException,
133             com.liferay.portal.kernel.exception.SystemException {
134         return getService()
135                    .addProductEntry(userId, name, type, tags, shortDescription,
136             longDescription, pageURL, author, repoGroupId, repoArtifactId,
137             licenseIds, thumbnails, fullImages, serviceContext);
138     }
139 
140     public static void addProductEntryResources(long productEntryId,
141         boolean addCommunityPermissions, boolean addGuestPermissions)
142         throws com.liferay.portal.kernel.exception.PortalException,
143             com.liferay.portal.kernel.exception.SystemException {
144         getService()
145             .addProductEntryResources(productEntryId, addCommunityPermissions,
146             addGuestPermissions);
147     }
148 
149     public static void addProductEntryResources(long productEntryId,
150         java.lang.String[] communityPermissions,
151         java.lang.String[] guestPermissions)
152         throws com.liferay.portal.kernel.exception.PortalException,
153             com.liferay.portal.kernel.exception.SystemException {
154         getService()
155             .addProductEntryResources(productEntryId, communityPermissions,
156             guestPermissions);
157     }
158 
159     public static void addProductEntryResources(
160         com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
161         boolean addCommunityPermissions, boolean addGuestPermissions)
162         throws com.liferay.portal.kernel.exception.PortalException,
163             com.liferay.portal.kernel.exception.SystemException {
164         getService()
165             .addProductEntryResources(productEntry, addCommunityPermissions,
166             addGuestPermissions);
167     }
168 
169     public static void addProductEntryResources(
170         com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
171         java.lang.String[] communityPermissions,
172         java.lang.String[] guestPermissions)
173         throws com.liferay.portal.kernel.exception.PortalException,
174             com.liferay.portal.kernel.exception.SystemException {
175         getService()
176             .addProductEntryResources(productEntry, communityPermissions,
177             guestPermissions);
178     }
179 
180     public static void deleteProductEntries(long groupId)
181         throws com.liferay.portal.kernel.exception.PortalException,
182             com.liferay.portal.kernel.exception.SystemException {
183         getService().deleteProductEntries(groupId);
184     }
185 
186     public static void deleteProductEntry(long productEntryId)
187         throws com.liferay.portal.kernel.exception.PortalException,
188             com.liferay.portal.kernel.exception.SystemException {
189         getService().deleteProductEntry(productEntryId);
190     }
191 
192     public static void deleteProductEntry(
193         com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
194         throws com.liferay.portal.kernel.exception.PortalException,
195             com.liferay.portal.kernel.exception.SystemException {
196         getService().deleteProductEntry(productEntry);
197     }
198 
199     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getCompanyProductEntries(
200         long companyId, int start, int end)
201         throws com.liferay.portal.kernel.exception.SystemException {
202         return getService().getCompanyProductEntries(companyId, start, end);
203     }
204 
205     public static int getCompanyProductEntriesCount(long companyId)
206         throws com.liferay.portal.kernel.exception.SystemException {
207         return getService().getCompanyProductEntriesCount(companyId);
208     }
209 
210     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
211         long groupId, int start, int end)
212         throws com.liferay.portal.kernel.exception.SystemException {
213         return getService().getProductEntries(groupId, start, end);
214     }
215 
216     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
217         long groupId, int start, int end,
218         com.liferay.portal.kernel.util.OrderByComparator obc)
219         throws com.liferay.portal.kernel.exception.SystemException {
220         return getService().getProductEntries(groupId, start, end, obc);
221     }
222 
223     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
224         long groupId, long userId, int start, int end)
225         throws com.liferay.portal.kernel.exception.SystemException {
226         return getService().getProductEntries(groupId, userId, start, end);
227     }
228 
229     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
230         long groupId, long userId, int start, int end,
231         com.liferay.portal.kernel.util.OrderByComparator obc)
232         throws com.liferay.portal.kernel.exception.SystemException {
233         return getService().getProductEntries(groupId, userId, start, end, obc);
234     }
235 
236     public static int getProductEntriesCount(long groupId)
237         throws com.liferay.portal.kernel.exception.SystemException {
238         return getService().getProductEntriesCount(groupId);
239     }
240 
241     public static int getProductEntriesCount(long groupId, long userId)
242         throws com.liferay.portal.kernel.exception.SystemException {
243         return getService().getProductEntriesCount(groupId, userId);
244     }
245 
246     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
247         long productEntryId)
248         throws com.liferay.portal.kernel.exception.PortalException,
249             com.liferay.portal.kernel.exception.SystemException {
250         return getService().getProductEntry(productEntryId);
251     }
252 
253     public static java.lang.String getRepositoryXML(long groupId,
254         java.lang.String baseImageURL, java.util.Date oldestDate,
255         int maxNumOfVersions, java.util.Properties repoSettings)
256         throws com.liferay.portal.kernel.exception.SystemException {
257         return getService()
258                    .getRepositoryXML(groupId, baseImageURL, oldestDate,
259             maxNumOfVersions, repoSettings);
260     }
261 
262     public static java.lang.String getRepositoryXML(long groupId,
263         java.lang.String version, java.lang.String baseImageURL,
264         java.util.Date oldestDate, int maxNumOfVersions,
265         java.util.Properties repoSettings)
266         throws com.liferay.portal.kernel.exception.SystemException {
267         return getService()
268                    .getRepositoryXML(groupId, version, baseImageURL,
269             oldestDate, maxNumOfVersions, repoSettings);
270     }
271 
272     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
273         long productEntryId, java.lang.String name, java.lang.String type,
274         java.lang.String tags, java.lang.String shortDescription,
275         java.lang.String longDescription, java.lang.String pageURL,
276         java.lang.String author, java.lang.String repoGroupId,
277         java.lang.String repoArtifactId, long[] licenseIds,
278         java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
279         throws com.liferay.portal.kernel.exception.PortalException,
280             com.liferay.portal.kernel.exception.SystemException {
281         return getService()
282                    .updateProductEntry(productEntryId, name, type, tags,
283             shortDescription, longDescription, pageURL, author, repoGroupId,
284             repoArtifactId, licenseIds, thumbnails, fullImages);
285     }
286 
287     public static SCProductEntryLocalService getService() {
288         if (_service == null) {
289             _service = (SCProductEntryLocalService)PortalBeanLocatorUtil.locate(SCProductEntryLocalService.class.getName());
290         }
291 
292         return _service;
293     }
294 
295     public void setService(SCProductEntryLocalService service) {
296         _service = service;
297     }
298 
299     private static SCProductEntryLocalService _service;
300 }