001
014
015 package com.liferay.portlet.softwarecatalog.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class SCProductEntryLocalServiceUtil {
034
039
040
047 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addSCProductEntry(
048 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addSCProductEntry(scProductEntry);
051 }
052
053
059 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry createSCProductEntry(
060 long productEntryId) {
061 return getService().createSCProductEntry(productEntryId);
062 }
063
064
072 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteSCProductEntry(
073 long productEntryId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().deleteSCProductEntry(productEntryId);
077 }
078
079
086 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry deleteSCProductEntry(
087 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return getService().deleteSCProductEntry(scProductEntry);
090 }
091
092 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093 return getService().dynamicQuery();
094 }
095
096
103 @SuppressWarnings("rawtypes")
104 public static java.util.List dynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().dynamicQuery(dynamicQuery);
108 }
109
110
123 @SuppressWarnings("rawtypes")
124 public static java.util.List dynamicQuery(
125 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126 int end) throws com.liferay.portal.kernel.exception.SystemException {
127 return getService().dynamicQuery(dynamicQuery, start, end);
128 }
129
130
144 @SuppressWarnings("rawtypes")
145 public static java.util.List dynamicQuery(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147 int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getService()
151 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
152 }
153
154
161 public static long dynamicQueryCount(
162 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().dynamicQueryCount(dynamicQuery);
165 }
166
167 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry fetchSCProductEntry(
168 long productEntryId)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().fetchSCProductEntry(productEntryId);
171 }
172
173
181 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getSCProductEntry(
182 long productEntryId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().getSCProductEntry(productEntryId);
186 }
187
188 public static com.liferay.portal.model.PersistedModel getPersistedModel(
189 java.io.Serializable primaryKeyObj)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException {
192 return getService().getPersistedModel(primaryKeyObj);
193 }
194
195
207 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
208 int start, int end)
209 throws com.liferay.portal.kernel.exception.SystemException {
210 return getService().getSCProductEntries(start, end);
211 }
212
213
219 public static int getSCProductEntriesCount()
220 throws com.liferay.portal.kernel.exception.SystemException {
221 return getService().getSCProductEntriesCount();
222 }
223
224
231 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
232 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
233 throws com.liferay.portal.kernel.exception.SystemException {
234 return getService().updateSCProductEntry(scProductEntry);
235 }
236
237
245 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
246 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
247 boolean merge)
248 throws com.liferay.portal.kernel.exception.SystemException {
249 return getService().updateSCProductEntry(scProductEntry, merge);
250 }
251
252
257 public static java.lang.String getBeanIdentifier() {
258 return getService().getBeanIdentifier();
259 }
260
261
266 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
267 getService().setBeanIdentifier(beanIdentifier);
268 }
269
270 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
271 long userId, java.lang.String name, java.lang.String type,
272 java.lang.String tags, java.lang.String shortDescription,
273 java.lang.String longDescription, java.lang.String pageURL,
274 java.lang.String author, java.lang.String repoGroupId,
275 java.lang.String repoArtifactId, long[] licenseIds,
276 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
277 com.liferay.portal.service.ServiceContext serviceContext)
278 throws com.liferay.portal.kernel.exception.PortalException,
279 com.liferay.portal.kernel.exception.SystemException {
280 return getService()
281 .addProductEntry(userId, name, type, tags, shortDescription,
282 longDescription, pageURL, author, repoGroupId, repoArtifactId,
283 licenseIds, thumbnails, fullImages, serviceContext);
284 }
285
286 public static void addProductEntryResources(long productEntryId,
287 boolean addGroupPermissions, boolean addGuestPermissions)
288 throws com.liferay.portal.kernel.exception.PortalException,
289 com.liferay.portal.kernel.exception.SystemException {
290 getService()
291 .addProductEntryResources(productEntryId, addGroupPermissions,
292 addGuestPermissions);
293 }
294
295 public static void addProductEntryResources(long productEntryId,
296 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
297 throws com.liferay.portal.kernel.exception.PortalException,
298 com.liferay.portal.kernel.exception.SystemException {
299 getService()
300 .addProductEntryResources(productEntryId, groupPermissions,
301 guestPermissions);
302 }
303
304 public static void addProductEntryResources(
305 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
306 boolean addGroupPermissions, boolean addGuestPermissions)
307 throws com.liferay.portal.kernel.exception.PortalException,
308 com.liferay.portal.kernel.exception.SystemException {
309 getService()
310 .addProductEntryResources(productEntry, addGroupPermissions,
311 addGuestPermissions);
312 }
313
314 public static void addProductEntryResources(
315 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
316 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
317 throws com.liferay.portal.kernel.exception.PortalException,
318 com.liferay.portal.kernel.exception.SystemException {
319 getService()
320 .addProductEntryResources(productEntry, groupPermissions,
321 guestPermissions);
322 }
323
324 public static void deleteProductEntries(long groupId)
325 throws com.liferay.portal.kernel.exception.PortalException,
326 com.liferay.portal.kernel.exception.SystemException {
327 getService().deleteProductEntries(groupId);
328 }
329
330 public static void deleteProductEntry(long productEntryId)
331 throws com.liferay.portal.kernel.exception.PortalException,
332 com.liferay.portal.kernel.exception.SystemException {
333 getService().deleteProductEntry(productEntryId);
334 }
335
336 public static void deleteProductEntry(
337 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
338 throws com.liferay.portal.kernel.exception.PortalException,
339 com.liferay.portal.kernel.exception.SystemException {
340 getService().deleteProductEntry(productEntry);
341 }
342
343 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getCompanyProductEntries(
344 long companyId, int start, int end)
345 throws com.liferay.portal.kernel.exception.SystemException {
346 return getService().getCompanyProductEntries(companyId, start, end);
347 }
348
349 public static int getCompanyProductEntriesCount(long companyId)
350 throws com.liferay.portal.kernel.exception.SystemException {
351 return getService().getCompanyProductEntriesCount(companyId);
352 }
353
354 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
355 long groupId, int start, int end)
356 throws com.liferay.portal.kernel.exception.SystemException {
357 return getService().getProductEntries(groupId, start, end);
358 }
359
360 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
361 long groupId, int start, int end,
362 com.liferay.portal.kernel.util.OrderByComparator obc)
363 throws com.liferay.portal.kernel.exception.SystemException {
364 return getService().getProductEntries(groupId, start, end, obc);
365 }
366
367 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
368 long groupId, long userId, int start, int end)
369 throws com.liferay.portal.kernel.exception.SystemException {
370 return getService().getProductEntries(groupId, userId, start, end);
371 }
372
373 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
374 long groupId, long userId, int start, int end,
375 com.liferay.portal.kernel.util.OrderByComparator obc)
376 throws com.liferay.portal.kernel.exception.SystemException {
377 return getService().getProductEntries(groupId, userId, start, end, obc);
378 }
379
380 public static int getProductEntriesCount(long groupId)
381 throws com.liferay.portal.kernel.exception.SystemException {
382 return getService().getProductEntriesCount(groupId);
383 }
384
385 public static int getProductEntriesCount(long groupId, long userId)
386 throws com.liferay.portal.kernel.exception.SystemException {
387 return getService().getProductEntriesCount(groupId, userId);
388 }
389
390 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
391 long productEntryId)
392 throws com.liferay.portal.kernel.exception.PortalException,
393 com.liferay.portal.kernel.exception.SystemException {
394 return getService().getProductEntry(productEntryId);
395 }
396
397 public static java.lang.String getRepositoryXML(long groupId,
398 java.lang.String baseImageURL, java.util.Date oldestDate,
399 int maxNumOfVersions, java.util.Properties repoSettings)
400 throws com.liferay.portal.kernel.exception.SystemException {
401 return getService()
402 .getRepositoryXML(groupId, baseImageURL, oldestDate,
403 maxNumOfVersions, repoSettings);
404 }
405
406 public static java.lang.String getRepositoryXML(long groupId,
407 java.lang.String version, java.lang.String baseImageURL,
408 java.util.Date oldestDate, int maxNumOfVersions,
409 java.util.Properties repoSettings)
410 throws com.liferay.portal.kernel.exception.SystemException {
411 return getService()
412 .getRepositoryXML(groupId, version, baseImageURL,
413 oldestDate, maxNumOfVersions, repoSettings);
414 }
415
416 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
417 long productEntryId, java.lang.String name, java.lang.String type,
418 java.lang.String tags, java.lang.String shortDescription,
419 java.lang.String longDescription, java.lang.String pageURL,
420 java.lang.String author, java.lang.String repoGroupId,
421 java.lang.String repoArtifactId, long[] licenseIds,
422 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
423 throws com.liferay.portal.kernel.exception.PortalException,
424 com.liferay.portal.kernel.exception.SystemException {
425 return getService()
426 .updateProductEntry(productEntryId, name, type, tags,
427 shortDescription, longDescription, pageURL, author, repoGroupId,
428 repoArtifactId, licenseIds, thumbnails, fullImages);
429 }
430
431 public static SCProductEntryLocalService getService() {
432 if (_service == null) {
433 _service = (SCProductEntryLocalService)PortalBeanLocatorUtil.locate(SCProductEntryLocalService.class.getName());
434
435 ReferenceRegistry.registerReference(SCProductEntryLocalServiceUtil.class,
436 "_service");
437 }
438
439 return _service;
440 }
441
442
445 public void setService(SCProductEntryLocalService service) {
446 }
447
448 private static SCProductEntryLocalService _service;
449 }