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