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.kernel.exception.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.kernel.exception.PortalException,
53              com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.PortalException,
78              com.liferay.portal.kernel.exception.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)
84          throws com.liferay.portal.kernel.exception.SystemException {
85          return getService().getSCProductEntries(start, end);
86      }
87  
88      public static int getSCProductEntriesCount()
89          throws com.liferay.portal.kernel.exception.SystemException {
90          return getService().getSCProductEntriesCount();
91      }
92  
93      public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
94          com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
95          throws com.liferay.portal.kernel.exception.SystemException {
96          return getService().updateSCProductEntry(scProductEntry);
97      }
98  
99      public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
100         com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
101         boolean merge)
102         throws com.liferay.portal.kernel.exception.SystemException {
103         return getService().updateSCProductEntry(scProductEntry, merge);
104     }
105 
106     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
107         long userId, 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         com.liferay.portal.service.ServiceContext serviceContext)
114         throws com.liferay.portal.kernel.exception.PortalException,
115             com.liferay.portal.kernel.exception.SystemException {
116         return getService()
117                    .addProductEntry(userId, name, type, tags, shortDescription,
118             longDescription, pageURL, author, repoGroupId, repoArtifactId,
119             licenseIds, thumbnails, fullImages, serviceContext);
120     }
121 
122     public static void addProductEntryResources(long productEntryId,
123         boolean addCommunityPermissions, boolean addGuestPermissions)
124         throws com.liferay.portal.kernel.exception.PortalException,
125             com.liferay.portal.kernel.exception.SystemException {
126         getService()
127             .addProductEntryResources(productEntryId, addCommunityPermissions,
128             addGuestPermissions);
129     }
130 
131     public static void addProductEntryResources(long productEntryId,
132         java.lang.String[] communityPermissions,
133         java.lang.String[] guestPermissions)
134         throws com.liferay.portal.kernel.exception.PortalException,
135             com.liferay.portal.kernel.exception.SystemException {
136         getService()
137             .addProductEntryResources(productEntryId, communityPermissions,
138             guestPermissions);
139     }
140 
141     public static void addProductEntryResources(
142         com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
143         boolean addCommunityPermissions, boolean addGuestPermissions)
144         throws com.liferay.portal.kernel.exception.PortalException,
145             com.liferay.portal.kernel.exception.SystemException {
146         getService()
147             .addProductEntryResources(productEntry, addCommunityPermissions,
148             addGuestPermissions);
149     }
150 
151     public static void addProductEntryResources(
152         com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
153         java.lang.String[] communityPermissions,
154         java.lang.String[] guestPermissions)
155         throws com.liferay.portal.kernel.exception.PortalException,
156             com.liferay.portal.kernel.exception.SystemException {
157         getService()
158             .addProductEntryResources(productEntry, communityPermissions,
159             guestPermissions);
160     }
161 
162     public static void deleteProductEntries(long groupId)
163         throws com.liferay.portal.kernel.exception.PortalException,
164             com.liferay.portal.kernel.exception.SystemException {
165         getService().deleteProductEntries(groupId);
166     }
167 
168     public static void deleteProductEntry(long productEntryId)
169         throws com.liferay.portal.kernel.exception.PortalException,
170             com.liferay.portal.kernel.exception.SystemException {
171         getService().deleteProductEntry(productEntryId);
172     }
173 
174     public static void deleteProductEntry(
175         com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
176         throws com.liferay.portal.kernel.exception.PortalException,
177             com.liferay.portal.kernel.exception.SystemException {
178         getService().deleteProductEntry(productEntry);
179     }
180 
181     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getCompanyProductEntries(
182         long companyId, int start, int end)
183         throws com.liferay.portal.kernel.exception.SystemException {
184         return getService().getCompanyProductEntries(companyId, start, end);
185     }
186 
187     public static int getCompanyProductEntriesCount(long companyId)
188         throws com.liferay.portal.kernel.exception.SystemException {
189         return getService().getCompanyProductEntriesCount(companyId);
190     }
191 
192     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
193         long groupId, int start, int end)
194         throws com.liferay.portal.kernel.exception.SystemException {
195         return getService().getProductEntries(groupId, start, end);
196     }
197 
198     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
199         long groupId, int start, int end,
200         com.liferay.portal.kernel.util.OrderByComparator obc)
201         throws com.liferay.portal.kernel.exception.SystemException {
202         return getService().getProductEntries(groupId, start, end, obc);
203     }
204 
205     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
206         long groupId, long userId, int start, int end)
207         throws com.liferay.portal.kernel.exception.SystemException {
208         return getService().getProductEntries(groupId, userId, start, end);
209     }
210 
211     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
212         long groupId, long userId, int start, int end,
213         com.liferay.portal.kernel.util.OrderByComparator obc)
214         throws com.liferay.portal.kernel.exception.SystemException {
215         return getService().getProductEntries(groupId, userId, start, end, obc);
216     }
217 
218     public static int getProductEntriesCount(long groupId)
219         throws com.liferay.portal.kernel.exception.SystemException {
220         return getService().getProductEntriesCount(groupId);
221     }
222 
223     public static int getProductEntriesCount(long groupId, long userId)
224         throws com.liferay.portal.kernel.exception.SystemException {
225         return getService().getProductEntriesCount(groupId, userId);
226     }
227 
228     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
229         long productEntryId)
230         throws com.liferay.portal.kernel.exception.PortalException,
231             com.liferay.portal.kernel.exception.SystemException {
232         return getService().getProductEntry(productEntryId);
233     }
234 
235     public static java.lang.String getRepositoryXML(long groupId,
236         java.lang.String baseImageURL, java.util.Date oldestDate,
237         int maxNumOfVersions, java.util.Properties repoSettings)
238         throws com.liferay.portal.kernel.exception.SystemException {
239         return getService()
240                    .getRepositoryXML(groupId, baseImageURL, oldestDate,
241             maxNumOfVersions, repoSettings);
242     }
243 
244     public static java.lang.String getRepositoryXML(long groupId,
245         java.lang.String version, java.lang.String baseImageURL,
246         java.util.Date oldestDate, int maxNumOfVersions,
247         java.util.Properties repoSettings)
248         throws com.liferay.portal.kernel.exception.SystemException {
249         return getService()
250                    .getRepositoryXML(groupId, version, baseImageURL,
251             oldestDate, maxNumOfVersions, repoSettings);
252     }
253 
254     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
255         long productEntryId, java.lang.String name, java.lang.String type,
256         java.lang.String tags, java.lang.String shortDescription,
257         java.lang.String longDescription, java.lang.String pageURL,
258         java.lang.String author, java.lang.String repoGroupId,
259         java.lang.String repoArtifactId, long[] licenseIds,
260         java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
261         throws com.liferay.portal.kernel.exception.PortalException,
262             com.liferay.portal.kernel.exception.SystemException {
263         return getService()
264                    .updateProductEntry(productEntryId, name, type, tags,
265             shortDescription, longDescription, pageURL, author, repoGroupId,
266             repoArtifactId, licenseIds, thumbnails, fullImages);
267     }
268 
269     public static SCProductEntryLocalService getService() {
270         if (_service == null) {
271             _service = (SCProductEntryLocalService)PortalBeanLocatorUtil.locate(SCProductEntryLocalService.class.getName());
272         }
273 
274         return _service;
275     }
276 
277     public void setService(SCProductEntryLocalService service) {
278         _service = service;
279     }
280 
281     private static SCProductEntryLocalService _service;
282 }