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