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   * <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, 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.PortalException,
115             com.liferay.portal.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.PortalException,
125             com.liferay.portal.SystemException {
126         getService()
127             .addProductEntryResources(productEntryId, addCommunityPermissions,
128             addGuestPermissions);
129     }
130 
131     public static void addProductEntryResources(
132         com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
133         boolean addCommunityPermissions, boolean addGuestPermissions)
134         throws com.liferay.portal.PortalException,
135             com.liferay.portal.SystemException {
136         getService()
137             .addProductEntryResources(productEntry, addCommunityPermissions,
138             addGuestPermissions);
139     }
140 
141     public static void addProductEntryResources(long productEntryId,
142         java.lang.String[] communityPermissions,
143         java.lang.String[] guestPermissions)
144         throws com.liferay.portal.PortalException,
145             com.liferay.portal.SystemException {
146         getService()
147             .addProductEntryResources(productEntryId, communityPermissions,
148             guestPermissions);
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.PortalException,
156             com.liferay.portal.SystemException {
157         getService()
158             .addProductEntryResources(productEntry, communityPermissions,
159             guestPermissions);
160     }
161 
162     public static void deleteProductEntries(long groupId)
163         throws com.liferay.portal.PortalException,
164             com.liferay.portal.SystemException {
165         getService().deleteProductEntries(groupId);
166     }
167 
168     public static void deleteProductEntry(long productEntryId)
169         throws com.liferay.portal.PortalException,
170             com.liferay.portal.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.PortalException,
177             com.liferay.portal.SystemException {
178         getService().deleteProductEntry(productEntry);
179     }
180 
181     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
182         long productEntryId)
183         throws com.liferay.portal.PortalException,
184             com.liferay.portal.SystemException {
185         return getService().getProductEntry(productEntryId);
186     }
187 
188     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
189         long groupId, int start, int end)
190         throws com.liferay.portal.SystemException {
191         return getService().getProductEntries(groupId, start, end);
192     }
193 
194     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
195         long groupId, int start, int end,
196         com.liferay.portal.kernel.util.OrderByComparator obc)
197         throws com.liferay.portal.SystemException {
198         return getService().getProductEntries(groupId, start, end, obc);
199     }
200 
201     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
202         long groupId, long userId, int start, int end)
203         throws com.liferay.portal.SystemException {
204         return getService().getProductEntries(groupId, userId, start, end);
205     }
206 
207     public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
208         long groupId, long userId, int start, int end,
209         com.liferay.portal.kernel.util.OrderByComparator obc)
210         throws com.liferay.portal.SystemException {
211         return getService().getProductEntries(groupId, userId, start, end, obc);
212     }
213 
214     public static int getProductEntriesCount(long groupId)
215         throws com.liferay.portal.SystemException {
216         return getService().getProductEntriesCount(groupId);
217     }
218 
219     public static int getProductEntriesCount(long groupId, long userId)
220         throws com.liferay.portal.SystemException {
221         return getService().getProductEntriesCount(groupId, userId);
222     }
223 
224     public static java.lang.String getRepositoryXML(long groupId,
225         java.lang.String baseImageURL, java.util.Date oldestDate,
226         int maxNumOfVersions, java.util.Properties repoSettings)
227         throws com.liferay.portal.SystemException {
228         return getService()
229                    .getRepositoryXML(groupId, baseImageURL, oldestDate,
230             maxNumOfVersions, repoSettings);
231     }
232 
233     public static java.lang.String getRepositoryXML(long groupId,
234         java.lang.String version, java.lang.String baseImageURL,
235         java.util.Date oldestDate, int maxNumOfVersions,
236         java.util.Properties repoSettings)
237         throws com.liferay.portal.SystemException {
238         return getService()
239                    .getRepositoryXML(groupId, version, baseImageURL,
240             oldestDate, maxNumOfVersions, repoSettings);
241     }
242 
243     public static void reIndex(long productEntryId)
244         throws com.liferay.portal.SystemException {
245         getService().reIndex(productEntryId);
246     }
247 
248     public static void reIndex(java.lang.String[] ids)
249         throws com.liferay.portal.SystemException {
250         getService().reIndex(ids);
251     }
252 
253     public static com.liferay.portal.kernel.search.Hits search(long companyId,
254         long groupId, java.lang.String keywords, java.lang.String type,
255         int start, int end) throws com.liferay.portal.SystemException {
256         return getService()
257                    .search(companyId, groupId, keywords, type, start, end);
258     }
259 
260     public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
261         long productEntryId, java.lang.String name, java.lang.String type,
262         java.lang.String tags, java.lang.String shortDescription,
263         java.lang.String longDescription, java.lang.String pageURL,
264         java.lang.String author, java.lang.String repoGroupId,
265         java.lang.String repoArtifactId, long[] licenseIds,
266         java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
267         throws com.liferay.portal.PortalException,
268             com.liferay.portal.SystemException {
269         return getService()
270                    .updateProductEntry(productEntryId, name, type, tags,
271             shortDescription, longDescription, pageURL, author, repoGroupId,
272             repoArtifactId, licenseIds, thumbnails, fullImages);
273     }
274 
275     public static SCProductEntryLocalService getService() {
276         if (_service == null) {
277             throw new RuntimeException("SCProductEntryLocalService is not set");
278         }
279 
280         return _service;
281     }
282 
283     public void setService(SCProductEntryLocalService service) {
284         _service = service;
285     }
286 
287     private static SCProductEntryLocalService _service;
288 }