1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.softwarecatalog.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.util.MethodCache;
19  import com.liferay.portal.kernel.util.ReferenceRegistry;
20  
21  /**
22   * <a href="SCProductEntryLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * <p>
30   * This class provides static methods for the
31   * {@link SCProductEntryLocalService} bean. The static methods of
32   * this class calls the same methods of the bean instance. It's convenient to be
33   * able to just write one line to call a method on a bean instead of writing a
34   * lookup call and a method call.
35   * </p>
36   *
37   * @author    Brian Wing Shun Chan
38   * @see       SCProductEntryLocalService
39   * @generated
40   */
41  public class SCProductEntryLocalServiceUtil {
42      public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addSCProductEntry(
43          com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
44          throws com.liferay.portal.SystemException {
45          return getService().addSCProductEntry(scProductEntry);
46      }
47  
48      public static com.liferay.portlet.softwarecatalog.model.SCProductEntry createSCProductEntry(
49          long productEntryId) {
50          return getService().createSCProductEntry(productEntryId);
51      }
52  
53      public static void deleteSCProductEntry(long productEntryId)
54          throws com.liferay.portal.PortalException,
55              com.liferay.portal.SystemException {
56          getService().deleteSCProductEntry(productEntryId);
57      }
58  
59      public static void deleteSCProductEntry(
60          com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
61          throws com.liferay.portal.SystemException {
62          getService().deleteSCProductEntry(scProductEntry);
63      }
64  
65      @SuppressWarnings("rawtypes")
66      public static java.util.List dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException {
69          return getService().dynamicQuery(dynamicQuery);
70      }
71  
72      @SuppressWarnings("rawtypes")
73      public static java.util.List dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75          int end) throws com.liferay.portal.SystemException {
76          return getService().dynamicQuery(dynamicQuery, start, end);
77      }
78  
79      @SuppressWarnings("rawtypes")
80      public static java.util.List dynamicQuery(
81          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82          int end,
83          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84          throws com.liferay.portal.SystemException {
85          return getService()
86                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87      }
88  
89      public static int dynamicQueryCount(
90          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91          throws com.liferay.portal.SystemException {
92          return getService().dynamicQueryCount(dynamicQuery);
93      }
94  
95      public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getSCProductEntry(
96          long productEntryId)
97          throws com.liferay.portal.PortalException,
98              com.liferay.portal.SystemException {
99          return getService().getSCProductEntry(productEntryId);
100     }
101 
102     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
103         int start, int end) throws com.liferay.portal.SystemException {
104         return getService().getSCProductEntries(start, end);
105     }
106 
107     public static int getSCProductEntriesCount()
108         throws com.liferay.portal.SystemException {
109         return getService().getSCProductEntriesCount();
110     }
111 
112     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
113         com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
114         throws com.liferay.portal.SystemException {
115         return getService().updateSCProductEntry(scProductEntry);
116     }
117 
118     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
119         com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
120         boolean merge) throws com.liferay.portal.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.PortalException,
133             com.liferay.portal.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.PortalException,
143             com.liferay.portal.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.PortalException,
153             com.liferay.portal.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.PortalException,
163             com.liferay.portal.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.PortalException,
174             com.liferay.portal.SystemException {
175         getService()
176             .addProductEntryResources(productEntry, communityPermissions,
177             guestPermissions);
178     }
179 
180     public static void deleteProductEntries(long groupId)
181         throws com.liferay.portal.PortalException,
182             com.liferay.portal.SystemException {
183         getService().deleteProductEntries(groupId);
184     }
185 
186     public static void deleteProductEntry(long productEntryId)
187         throws com.liferay.portal.PortalException,
188             com.liferay.portal.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.PortalException,
195             com.liferay.portal.SystemException {
196         getService().deleteProductEntry(productEntry);
197     }
198 
199     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
200         long groupId, int start, int end)
201         throws com.liferay.portal.SystemException {
202         return getService().getProductEntries(groupId, start, end);
203     }
204 
205     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
206         long groupId, int start, int end,
207         com.liferay.portal.kernel.util.OrderByComparator obc)
208         throws com.liferay.portal.SystemException {
209         return getService().getProductEntries(groupId, start, end, obc);
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         throws com.liferay.portal.SystemException {
215         return getService().getProductEntries(groupId, userId, start, end);
216     }
217 
218     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
219         long groupId, long userId, int start, int end,
220         com.liferay.portal.kernel.util.OrderByComparator obc)
221         throws com.liferay.portal.SystemException {
222         return getService().getProductEntries(groupId, userId, start, end, obc);
223     }
224 
225     public static int getProductEntriesCount(long groupId)
226         throws com.liferay.portal.SystemException {
227         return getService().getProductEntriesCount(groupId);
228     }
229 
230     public static int getProductEntriesCount(long groupId, long userId)
231         throws com.liferay.portal.SystemException {
232         return getService().getProductEntriesCount(groupId, userId);
233     }
234 
235     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
236         long productEntryId)
237         throws com.liferay.portal.PortalException,
238             com.liferay.portal.SystemException {
239         return getService().getProductEntry(productEntryId);
240     }
241 
242     public static java.lang.String getRepositoryXML(long groupId,
243         java.lang.String baseImageURL, java.util.Date oldestDate,
244         int maxNumOfVersions, java.util.Properties repoSettings)
245         throws com.liferay.portal.SystemException {
246         return getService()
247                    .getRepositoryXML(groupId, baseImageURL, oldestDate,
248             maxNumOfVersions, repoSettings);
249     }
250 
251     public static java.lang.String getRepositoryXML(long groupId,
252         java.lang.String version, java.lang.String baseImageURL,
253         java.util.Date oldestDate, int maxNumOfVersions,
254         java.util.Properties repoSettings)
255         throws com.liferay.portal.SystemException {
256         return getService()
257                    .getRepositoryXML(groupId, version, baseImageURL,
258             oldestDate, maxNumOfVersions, repoSettings);
259     }
260 
261     public static void reIndex(long productEntryId)
262         throws com.liferay.portal.SystemException {
263         getService().reIndex(productEntryId);
264     }
265 
266     public static void reIndex(
267         com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
268         throws com.liferay.portal.SystemException {
269         getService().reIndex(productEntry);
270     }
271 
272     public static void reIndex(java.lang.String[] ids)
273         throws com.liferay.portal.SystemException {
274         getService().reIndex(ids);
275     }
276 
277     public static com.liferay.portal.kernel.search.Hits search(long companyId,
278         long groupId, java.lang.String keywords, java.lang.String type,
279         int start, int end) throws com.liferay.portal.SystemException {
280         return getService()
281                    .search(companyId, groupId, keywords, type, start, end);
282     }
283 
284     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
285         long productEntryId, java.lang.String name, java.lang.String type,
286         java.lang.String tags, java.lang.String shortDescription,
287         java.lang.String longDescription, java.lang.String pageURL,
288         java.lang.String author, java.lang.String repoGroupId,
289         java.lang.String repoArtifactId, long[] licenseIds,
290         java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
291         throws com.liferay.portal.PortalException,
292             com.liferay.portal.SystemException {
293         return getService()
294                    .updateProductEntry(productEntryId, name, type, tags,
295             shortDescription, longDescription, pageURL, author, repoGroupId,
296             repoArtifactId, licenseIds, thumbnails, fullImages);
297     }
298 
299     public static SCProductEntryLocalService getService() {
300         if (_service == null) {
301             _service = (SCProductEntryLocalService)PortalBeanLocatorUtil.locate(SCProductEntryLocalService.class.getName());
302 
303             ReferenceRegistry.registerReference(SCProductEntryLocalServiceUtil.class,
304                 "_service");
305             MethodCache.remove(SCProductEntryLocalService.class);
306         }
307 
308         return _service;
309     }
310 
311     public void setService(SCProductEntryLocalService service) {
312         MethodCache.remove(SCProductEntryLocalService.class);
313 
314         _service = service;
315 
316         ReferenceRegistry.registerReference(SCProductEntryLocalServiceUtil.class,
317             "_service");
318         MethodCache.remove(SCProductEntryLocalService.class);
319     }
320 
321     private static SCProductEntryLocalService _service;
322 }