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