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