001
014
015 package com.liferay.portlet.softwarecatalog.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
036 public class SCProductEntryLocalServiceUtil {
037
044 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addSCProductEntry(
045 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
046 throws com.liferay.portal.kernel.exception.SystemException {
047 return getService().addSCProductEntry(scProductEntry);
048 }
049
050
056 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry createSCProductEntry(
057 long productEntryId) {
058 return getService().createSCProductEntry(productEntryId);
059 }
060
061
068 public static void deleteSCProductEntry(long productEntryId)
069 throws com.liferay.portal.kernel.exception.PortalException,
070 com.liferay.portal.kernel.exception.SystemException {
071 getService().deleteSCProductEntry(productEntryId);
072 }
073
074
080 public static void deleteSCProductEntry(
081 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
082 throws com.liferay.portal.kernel.exception.SystemException {
083 getService().deleteSCProductEntry(scProductEntry);
084 }
085
086
093 @SuppressWarnings("rawtypes")
094 public static java.util.List dynamicQuery(
095 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
096 throws com.liferay.portal.kernel.exception.SystemException {
097 return getService().dynamicQuery(dynamicQuery);
098 }
099
100
113 @SuppressWarnings("rawtypes")
114 public static java.util.List dynamicQuery(
115 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
116 int end) throws com.liferay.portal.kernel.exception.SystemException {
117 return getService().dynamicQuery(dynamicQuery, start, end);
118 }
119
120
134 @SuppressWarnings("rawtypes")
135 public static java.util.List dynamicQuery(
136 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
137 int end,
138 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139 throws com.liferay.portal.kernel.exception.SystemException {
140 return getService()
141 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
142 }
143
144
151 public static long dynamicQueryCount(
152 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getService().dynamicQueryCount(dynamicQuery);
155 }
156
157
165 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getSCProductEntry(
166 long productEntryId)
167 throws com.liferay.portal.kernel.exception.PortalException,
168 com.liferay.portal.kernel.exception.SystemException {
169 return getService().getSCProductEntry(productEntryId);
170 }
171
172
184 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
185 int start, int end)
186 throws com.liferay.portal.kernel.exception.SystemException {
187 return getService().getSCProductEntries(start, end);
188 }
189
190
196 public static int getSCProductEntriesCount()
197 throws com.liferay.portal.kernel.exception.SystemException {
198 return getService().getSCProductEntriesCount();
199 }
200
201
208 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
209 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
210 throws com.liferay.portal.kernel.exception.SystemException {
211 return getService().updateSCProductEntry(scProductEntry);
212 }
213
214
222 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
223 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
224 boolean merge)
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getService().updateSCProductEntry(scProductEntry, merge);
227 }
228
229 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
230 long userId, java.lang.String name, java.lang.String type,
231 java.lang.String tags, java.lang.String shortDescription,
232 java.lang.String longDescription, java.lang.String pageURL,
233 java.lang.String author, java.lang.String repoGroupId,
234 java.lang.String repoArtifactId, long[] licenseIds,
235 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
236 com.liferay.portal.service.ServiceContext serviceContext)
237 throws com.liferay.portal.kernel.exception.PortalException,
238 com.liferay.portal.kernel.exception.SystemException {
239 return getService()
240 .addProductEntry(userId, name, type, tags, shortDescription,
241 longDescription, pageURL, author, repoGroupId, repoArtifactId,
242 licenseIds, thumbnails, fullImages, serviceContext);
243 }
244
245 public static void addProductEntryResources(long productEntryId,
246 boolean addCommunityPermissions, boolean addGuestPermissions)
247 throws com.liferay.portal.kernel.exception.PortalException,
248 com.liferay.portal.kernel.exception.SystemException {
249 getService()
250 .addProductEntryResources(productEntryId, addCommunityPermissions,
251 addGuestPermissions);
252 }
253
254 public static void addProductEntryResources(long productEntryId,
255 java.lang.String[] communityPermissions,
256 java.lang.String[] guestPermissions)
257 throws com.liferay.portal.kernel.exception.PortalException,
258 com.liferay.portal.kernel.exception.SystemException {
259 getService()
260 .addProductEntryResources(productEntryId, communityPermissions,
261 guestPermissions);
262 }
263
264 public static void addProductEntryResources(
265 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
266 boolean addCommunityPermissions, boolean addGuestPermissions)
267 throws com.liferay.portal.kernel.exception.PortalException,
268 com.liferay.portal.kernel.exception.SystemException {
269 getService()
270 .addProductEntryResources(productEntry, addCommunityPermissions,
271 addGuestPermissions);
272 }
273
274 public static void addProductEntryResources(
275 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
276 java.lang.String[] communityPermissions,
277 java.lang.String[] guestPermissions)
278 throws com.liferay.portal.kernel.exception.PortalException,
279 com.liferay.portal.kernel.exception.SystemException {
280 getService()
281 .addProductEntryResources(productEntry, communityPermissions,
282 guestPermissions);
283 }
284
285 public static void deleteProductEntries(long groupId)
286 throws com.liferay.portal.kernel.exception.PortalException,
287 com.liferay.portal.kernel.exception.SystemException {
288 getService().deleteProductEntries(groupId);
289 }
290
291 public static void deleteProductEntry(long productEntryId)
292 throws com.liferay.portal.kernel.exception.PortalException,
293 com.liferay.portal.kernel.exception.SystemException {
294 getService().deleteProductEntry(productEntryId);
295 }
296
297 public static void deleteProductEntry(
298 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
299 throws com.liferay.portal.kernel.exception.PortalException,
300 com.liferay.portal.kernel.exception.SystemException {
301 getService().deleteProductEntry(productEntry);
302 }
303
304 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getCompanyProductEntries(
305 long companyId, int start, int end)
306 throws com.liferay.portal.kernel.exception.SystemException {
307 return getService().getCompanyProductEntries(companyId, start, end);
308 }
309
310 public static int getCompanyProductEntriesCount(long companyId)
311 throws com.liferay.portal.kernel.exception.SystemException {
312 return getService().getCompanyProductEntriesCount(companyId);
313 }
314
315 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
316 long groupId, int start, int end)
317 throws com.liferay.portal.kernel.exception.SystemException {
318 return getService().getProductEntries(groupId, start, end);
319 }
320
321 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
322 long groupId, int start, int end,
323 com.liferay.portal.kernel.util.OrderByComparator obc)
324 throws com.liferay.portal.kernel.exception.SystemException {
325 return getService().getProductEntries(groupId, start, end, obc);
326 }
327
328 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
329 long groupId, long userId, int start, int end)
330 throws com.liferay.portal.kernel.exception.SystemException {
331 return getService().getProductEntries(groupId, userId, start, end);
332 }
333
334 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
335 long groupId, long userId, int start, int end,
336 com.liferay.portal.kernel.util.OrderByComparator obc)
337 throws com.liferay.portal.kernel.exception.SystemException {
338 return getService().getProductEntries(groupId, userId, start, end, obc);
339 }
340
341 public static int getProductEntriesCount(long groupId)
342 throws com.liferay.portal.kernel.exception.SystemException {
343 return getService().getProductEntriesCount(groupId);
344 }
345
346 public static int getProductEntriesCount(long groupId, long userId)
347 throws com.liferay.portal.kernel.exception.SystemException {
348 return getService().getProductEntriesCount(groupId, userId);
349 }
350
351 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
352 long productEntryId)
353 throws com.liferay.portal.kernel.exception.PortalException,
354 com.liferay.portal.kernel.exception.SystemException {
355 return getService().getProductEntry(productEntryId);
356 }
357
358 public static java.lang.String getRepositoryXML(long groupId,
359 java.lang.String baseImageURL, java.util.Date oldestDate,
360 int maxNumOfVersions, java.util.Properties repoSettings)
361 throws com.liferay.portal.kernel.exception.SystemException {
362 return getService()
363 .getRepositoryXML(groupId, baseImageURL, oldestDate,
364 maxNumOfVersions, repoSettings);
365 }
366
367 public static java.lang.String getRepositoryXML(long groupId,
368 java.lang.String version, java.lang.String baseImageURL,
369 java.util.Date oldestDate, int maxNumOfVersions,
370 java.util.Properties repoSettings)
371 throws com.liferay.portal.kernel.exception.SystemException {
372 return getService()
373 .getRepositoryXML(groupId, version, baseImageURL,
374 oldestDate, maxNumOfVersions, repoSettings);
375 }
376
377 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
378 long productEntryId, java.lang.String name, java.lang.String type,
379 java.lang.String tags, java.lang.String shortDescription,
380 java.lang.String longDescription, java.lang.String pageURL,
381 java.lang.String author, java.lang.String repoGroupId,
382 java.lang.String repoArtifactId, long[] licenseIds,
383 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
384 throws com.liferay.portal.kernel.exception.PortalException,
385 com.liferay.portal.kernel.exception.SystemException {
386 return getService()
387 .updateProductEntry(productEntryId, name, type, tags,
388 shortDescription, longDescription, pageURL, author, repoGroupId,
389 repoArtifactId, licenseIds, thumbnails, fullImages);
390 }
391
392 public static SCProductEntryLocalService getService() {
393 if (_service == null) {
394 _service = (SCProductEntryLocalService)PortalBeanLocatorUtil.locate(SCProductEntryLocalService.class.getName());
395 }
396
397 return _service;
398 }
399
400 public void setService(SCProductEntryLocalService service) {
401 _service = service;
402 }
403
404 private static SCProductEntryLocalService _service;
405 }