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="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 addProductEntry(
107         long userId, long plid, java.lang.String name, java.lang.String type,
108         java.lang.String tags, java.lang.String shortDescription,
109         java.lang.String longDescription, java.lang.String pageURL,
110         java.lang.String author, java.lang.String repoGroupId,
111         java.lang.String repoArtifactId, long[] licenseIds,
112         java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
113         boolean addCommunityPermissions, boolean addGuestPermissions)
114         throws com.liferay.portal.PortalException,
115             com.liferay.portal.SystemException {
116         return getService()
117                    .addProductEntry(userId, plid, name, type, tags,
118             shortDescription, longDescription, pageURL, author, repoGroupId,
119             repoArtifactId, licenseIds, thumbnails, fullImages,
120             addCommunityPermissions, addGuestPermissions);
121     }
122 
123     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
124         long userId, long plid, java.lang.String name, java.lang.String type,
125         java.lang.String tags, java.lang.String shortDescription,
126         java.lang.String longDescription, java.lang.String pageURL,
127         java.lang.String author, java.lang.String repoGroupId,
128         java.lang.String repoArtifactId, long[] licenseIds,
129         java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
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             communityPermissions, guestPermissions);
139     }
140 
141     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
142         long userId, long plid, java.lang.String name, java.lang.String type,
143         java.lang.String tags, java.lang.String shortDescription,
144         java.lang.String longDescription, java.lang.String pageURL,
145         java.lang.String author, java.lang.String repoGroupId,
146         java.lang.String repoArtifactId, long[] licenseIds,
147         java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
148         java.lang.Boolean addCommunityPermissions,
149         java.lang.Boolean addGuestPermissions,
150         java.lang.String[] communityPermissions,
151         java.lang.String[] guestPermissions)
152         throws com.liferay.portal.PortalException,
153             com.liferay.portal.SystemException {
154         return getService()
155                    .addProductEntry(userId, plid, name, type, tags,
156             shortDescription, longDescription, pageURL, author, repoGroupId,
157             repoArtifactId, licenseIds, thumbnails, fullImages,
158             addCommunityPermissions, addGuestPermissions, communityPermissions,
159             guestPermissions);
160     }
161 
162     public static void addProductEntryResources(long productEntryId,
163         boolean addCommunityPermissions, boolean addGuestPermissions)
164         throws com.liferay.portal.PortalException,
165             com.liferay.portal.SystemException {
166         getService()
167             .addProductEntryResources(productEntryId, addCommunityPermissions,
168             addGuestPermissions);
169     }
170 
171     public static void addProductEntryResources(
172         com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
173         boolean addCommunityPermissions, boolean addGuestPermissions)
174         throws com.liferay.portal.PortalException,
175             com.liferay.portal.SystemException {
176         getService()
177             .addProductEntryResources(productEntry, addCommunityPermissions,
178             addGuestPermissions);
179     }
180 
181     public static void addProductEntryResources(long productEntryId,
182         java.lang.String[] communityPermissions,
183         java.lang.String[] guestPermissions)
184         throws com.liferay.portal.PortalException,
185             com.liferay.portal.SystemException {
186         getService()
187             .addProductEntryResources(productEntryId, communityPermissions,
188             guestPermissions);
189     }
190 
191     public static void addProductEntryResources(
192         com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
193         java.lang.String[] communityPermissions,
194         java.lang.String[] guestPermissions)
195         throws com.liferay.portal.PortalException,
196             com.liferay.portal.SystemException {
197         getService()
198             .addProductEntryResources(productEntry, communityPermissions,
199             guestPermissions);
200     }
201 
202     public static void deleteProductEntries(long groupId)
203         throws com.liferay.portal.PortalException,
204             com.liferay.portal.SystemException {
205         getService().deleteProductEntries(groupId);
206     }
207 
208     public static void deleteProductEntry(long productEntryId)
209         throws com.liferay.portal.PortalException,
210             com.liferay.portal.SystemException {
211         getService().deleteProductEntry(productEntryId);
212     }
213 
214     public static void deleteProductEntry(
215         com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
216         throws com.liferay.portal.PortalException,
217             com.liferay.portal.SystemException {
218         getService().deleteProductEntry(productEntry);
219     }
220 
221     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
222         long productEntryId)
223         throws com.liferay.portal.PortalException,
224             com.liferay.portal.SystemException {
225         return getService().getProductEntry(productEntryId);
226     }
227 
228     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
229         long groupId, int start, int end)
230         throws com.liferay.portal.SystemException {
231         return getService().getProductEntries(groupId, start, end);
232     }
233 
234     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
235         long groupId, int start, int end,
236         com.liferay.portal.kernel.util.OrderByComparator obc)
237         throws com.liferay.portal.SystemException {
238         return getService().getProductEntries(groupId, start, end, obc);
239     }
240 
241     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
242         long groupId, long userId, int start, int end)
243         throws com.liferay.portal.SystemException {
244         return getService().getProductEntries(groupId, userId, start, end);
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         com.liferay.portal.kernel.util.OrderByComparator obc)
250         throws com.liferay.portal.SystemException {
251         return getService().getProductEntries(groupId, userId, start, end, obc);
252     }
253 
254     public static int getProductEntriesCount(long groupId)
255         throws com.liferay.portal.SystemException {
256         return getService().getProductEntriesCount(groupId);
257     }
258 
259     public static int getProductEntriesCount(long groupId, long userId)
260         throws com.liferay.portal.SystemException {
261         return getService().getProductEntriesCount(groupId, userId);
262     }
263 
264     public static java.lang.String getRepositoryXML(long groupId,
265         java.lang.String baseImageURL, java.util.Date oldestDate,
266         int maxNumOfVersions, java.util.Properties repoSettings)
267         throws com.liferay.portal.SystemException {
268         return getService()
269                    .getRepositoryXML(groupId, baseImageURL, oldestDate,
270             maxNumOfVersions, repoSettings);
271     }
272 
273     public static java.lang.String getRepositoryXML(long groupId,
274         java.lang.String version, java.lang.String baseImageURL,
275         java.util.Date oldestDate, int maxNumOfVersions,
276         java.util.Properties repoSettings)
277         throws com.liferay.portal.SystemException {
278         return getService()
279                    .getRepositoryXML(groupId, version, baseImageURL,
280             oldestDate, maxNumOfVersions, repoSettings);
281     }
282 
283     public static void reIndex(java.lang.String[] ids)
284         throws com.liferay.portal.SystemException {
285         getService().reIndex(ids);
286     }
287 
288     public static com.liferay.portal.kernel.search.Hits search(long companyId,
289         long groupId, java.lang.String keywords, java.lang.String type,
290         int start, int end) throws com.liferay.portal.SystemException {
291         return getService()
292                    .search(companyId, groupId, keywords, type, start, end);
293     }
294 
295     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
296         long productEntryId, java.lang.String name, java.lang.String type,
297         java.lang.String tags, java.lang.String shortDescription,
298         java.lang.String longDescription, java.lang.String pageURL,
299         java.lang.String author, java.lang.String repoGroupId,
300         java.lang.String repoArtifactId, long[] licenseIds,
301         java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
302         throws com.liferay.portal.PortalException,
303             com.liferay.portal.SystemException {
304         return getService()
305                    .updateProductEntry(productEntryId, name, type, tags,
306             shortDescription, longDescription, pageURL, author, repoGroupId,
307             repoArtifactId, licenseIds, thumbnails, fullImages);
308     }
309 
310     public static SCProductEntryLocalService getService() {
311         if (_service == null) {
312             throw new RuntimeException("SCProductEntryLocalService is not set");
313         }
314 
315         return _service;
316     }
317 
318     public void setService(SCProductEntryLocalService service) {
319         _service = service;
320     }
321 
322     private static SCProductEntryLocalService _service;
323 }