1
22
23 package com.liferay.portlet.softwarecatalog.service;
24
25
26
53 public class SCProductEntryLocalServiceUtil {
54 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addSCProductEntry(
55 com.liferay.portlet.softwarecatalog.model.SCProductEntry model)
56 throws com.liferay.portal.SystemException {
57 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
58
59 return scProductEntryLocalService.addSCProductEntry(model);
60 }
61
62 public static java.util.List dynamicQuery(
63 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
64 throws com.liferay.portal.SystemException {
65 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
66
67 return scProductEntryLocalService.dynamicQuery(queryInitializer);
68 }
69
70 public static java.util.List dynamicQuery(
71 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
72 int begin, int end) throws com.liferay.portal.SystemException {
73 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
74
75 return scProductEntryLocalService.dynamicQuery(queryInitializer, begin,
76 end);
77 }
78
79 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
80 com.liferay.portlet.softwarecatalog.model.SCProductEntry model)
81 throws com.liferay.portal.SystemException {
82 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
83
84 return scProductEntryLocalService.updateSCProductEntry(model);
85 }
86
87 public static com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence getSCLicensePersistence() {
88 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
89
90 return scProductEntryLocalService.getSCLicensePersistence();
91 }
92
93 public static void setSCLicensePersistence(
94 com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence scLicensePersistence) {
95 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
96
97 scProductEntryLocalService.setSCLicensePersistence(scLicensePersistence);
98 }
99
100 public static com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence getSCFrameworkVersionPersistence() {
101 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
102
103 return scProductEntryLocalService.getSCFrameworkVersionPersistence();
104 }
105
106 public static void setSCFrameworkVersionPersistence(
107 com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence scFrameworkVersionPersistence) {
108 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
109
110 scProductEntryLocalService.setSCFrameworkVersionPersistence(scFrameworkVersionPersistence);
111 }
112
113 public static com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence getSCProductEntryPersistence() {
114 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
115
116 return scProductEntryLocalService.getSCProductEntryPersistence();
117 }
118
119 public static void setSCProductEntryPersistence(
120 com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence scProductEntryPersistence) {
121 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
122
123 scProductEntryLocalService.setSCProductEntryPersistence(scProductEntryPersistence);
124 }
125
126 public static com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence getSCProductScreenshotPersistence() {
127 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
128
129 return scProductEntryLocalService.getSCProductScreenshotPersistence();
130 }
131
132 public static void setSCProductScreenshotPersistence(
133 com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence scProductScreenshotPersistence) {
134 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
135
136 scProductEntryLocalService.setSCProductScreenshotPersistence(scProductScreenshotPersistence);
137 }
138
139 public static com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence getSCProductVersionPersistence() {
140 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
141
142 return scProductEntryLocalService.getSCProductVersionPersistence();
143 }
144
145 public static void setSCProductVersionPersistence(
146 com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence scProductVersionPersistence) {
147 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
148
149 scProductEntryLocalService.setSCProductVersionPersistence(scProductVersionPersistence);
150 }
151
152 public static com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence() {
153 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
154
155 return scProductEntryLocalService.getResourcePersistence();
156 }
157
158 public static void setResourcePersistence(
159 com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence) {
160 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
161
162 scProductEntryLocalService.setResourcePersistence(resourcePersistence);
163 }
164
165 public static com.liferay.portal.service.persistence.ResourceFinder getResourceFinder() {
166 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
167
168 return scProductEntryLocalService.getResourceFinder();
169 }
170
171 public static void setResourceFinder(
172 com.liferay.portal.service.persistence.ResourceFinder resourceFinder) {
173 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
174
175 scProductEntryLocalService.setResourceFinder(resourceFinder);
176 }
177
178 public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
179 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
180
181 return scProductEntryLocalService.getUserPersistence();
182 }
183
184 public static void setUserPersistence(
185 com.liferay.portal.service.persistence.UserPersistence userPersistence) {
186 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
187
188 scProductEntryLocalService.setUserPersistence(userPersistence);
189 }
190
191 public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
192 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
193
194 return scProductEntryLocalService.getUserFinder();
195 }
196
197 public static void setUserFinder(
198 com.liferay.portal.service.persistence.UserFinder userFinder) {
199 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
200
201 scProductEntryLocalService.setUserFinder(userFinder);
202 }
203
204 public static com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence getMBMessagePersistence() {
205 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
206
207 return scProductEntryLocalService.getMBMessagePersistence();
208 }
209
210 public static void setMBMessagePersistence(
211 com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence mbMessagePersistence) {
212 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
213
214 scProductEntryLocalService.setMBMessagePersistence(mbMessagePersistence);
215 }
216
217 public static com.liferay.portlet.messageboards.service.persistence.MBMessageFinder getMBMessageFinder() {
218 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
219
220 return scProductEntryLocalService.getMBMessageFinder();
221 }
222
223 public static void setMBMessageFinder(
224 com.liferay.portlet.messageboards.service.persistence.MBMessageFinder mbMessageFinder) {
225 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
226
227 scProductEntryLocalService.setMBMessageFinder(mbMessageFinder);
228 }
229
230 public static com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence getRatingsStatsPersistence() {
231 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
232
233 return scProductEntryLocalService.getRatingsStatsPersistence();
234 }
235
236 public static void setRatingsStatsPersistence(
237 com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence ratingsStatsPersistence) {
238 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
239
240 scProductEntryLocalService.setRatingsStatsPersistence(ratingsStatsPersistence);
241 }
242
243 public static void afterPropertiesSet() {
244 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
245
246 scProductEntryLocalService.afterPropertiesSet();
247 }
248
249 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
250 long userId, long plid, java.lang.String name, java.lang.String type,
251 java.lang.String tags, java.lang.String shortDescription,
252 java.lang.String longDescription, java.lang.String pageURL,
253 java.lang.String author, java.lang.String repoGroupId,
254 java.lang.String repoArtifactId, long[] licenseIds,
255 java.util.List thumbnails, java.util.List fullImages,
256 boolean addCommunityPermissions, boolean addGuestPermissions)
257 throws com.liferay.portal.PortalException,
258 com.liferay.portal.SystemException {
259 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
260
261 return scProductEntryLocalService.addProductEntry(userId, plid, name,
262 type, tags, shortDescription, longDescription, pageURL, author,
263 repoGroupId, repoArtifactId, licenseIds, thumbnails, fullImages,
264 addCommunityPermissions, addGuestPermissions);
265 }
266
267 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
268 long userId, long plid, java.lang.String name, java.lang.String type,
269 java.lang.String tags, java.lang.String shortDescription,
270 java.lang.String longDescription, java.lang.String pageURL,
271 java.lang.String author, java.lang.String repoGroupId,
272 java.lang.String repoArtifactId, long[] licenseIds,
273 java.util.List thumbnails, java.util.List fullImages,
274 java.lang.String[] communityPermissions,
275 java.lang.String[] guestPermissions)
276 throws com.liferay.portal.PortalException,
277 com.liferay.portal.SystemException {
278 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
279
280 return scProductEntryLocalService.addProductEntry(userId, plid, name,
281 type, tags, shortDescription, longDescription, pageURL, author,
282 repoGroupId, repoArtifactId, licenseIds, thumbnails, fullImages,
283 communityPermissions, guestPermissions);
284 }
285
286 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
287 long userId, long plid, java.lang.String name, java.lang.String type,
288 java.lang.String tags, java.lang.String shortDescription,
289 java.lang.String longDescription, java.lang.String pageURL,
290 java.lang.String author, java.lang.String repoGroupId,
291 java.lang.String repoArtifactId, long[] licenseIds,
292 java.util.List thumbnails, java.util.List fullImages,
293 java.lang.Boolean addCommunityPermissions,
294 java.lang.Boolean addGuestPermissions,
295 java.lang.String[] communityPermissions,
296 java.lang.String[] guestPermissions)
297 throws com.liferay.portal.PortalException,
298 com.liferay.portal.SystemException {
299 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
300
301 return scProductEntryLocalService.addProductEntry(userId, plid, name,
302 type, tags, shortDescription, longDescription, pageURL, author,
303 repoGroupId, repoArtifactId, licenseIds, thumbnails, fullImages,
304 addCommunityPermissions, addGuestPermissions, communityPermissions,
305 guestPermissions);
306 }
307
308 public static void addProductEntryResources(long productEntryId,
309 boolean addCommunityPermissions, boolean addGuestPermissions)
310 throws com.liferay.portal.PortalException,
311 com.liferay.portal.SystemException {
312 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
313
314 scProductEntryLocalService.addProductEntryResources(productEntryId,
315 addCommunityPermissions, addGuestPermissions);
316 }
317
318 public static void addProductEntryResources(
319 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
320 boolean addCommunityPermissions, boolean addGuestPermissions)
321 throws com.liferay.portal.PortalException,
322 com.liferay.portal.SystemException {
323 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
324
325 scProductEntryLocalService.addProductEntryResources(productEntry,
326 addCommunityPermissions, addGuestPermissions);
327 }
328
329 public static void addProductEntryResources(long productEntryId,
330 java.lang.String[] communityPermissions,
331 java.lang.String[] guestPermissions)
332 throws com.liferay.portal.PortalException,
333 com.liferay.portal.SystemException {
334 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
335
336 scProductEntryLocalService.addProductEntryResources(productEntryId,
337 communityPermissions, guestPermissions);
338 }
339
340 public static void addProductEntryResources(
341 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
342 java.lang.String[] communityPermissions,
343 java.lang.String[] guestPermissions)
344 throws com.liferay.portal.PortalException,
345 com.liferay.portal.SystemException {
346 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
347
348 scProductEntryLocalService.addProductEntryResources(productEntry,
349 communityPermissions, guestPermissions);
350 }
351
352 public static void deleteProductEntries(long groupId)
353 throws com.liferay.portal.PortalException,
354 com.liferay.portal.SystemException {
355 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
356
357 scProductEntryLocalService.deleteProductEntries(groupId);
358 }
359
360 public static void deleteProductEntry(long productEntryId)
361 throws com.liferay.portal.PortalException,
362 com.liferay.portal.SystemException {
363 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
364
365 scProductEntryLocalService.deleteProductEntry(productEntryId);
366 }
367
368 public static void deleteProductEntry(
369 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
370 throws com.liferay.portal.PortalException,
371 com.liferay.portal.SystemException {
372 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
373
374 scProductEntryLocalService.deleteProductEntry(productEntry);
375 }
376
377 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
378 long productEntryId)
379 throws com.liferay.portal.PortalException,
380 com.liferay.portal.SystemException {
381 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
382
383 return scProductEntryLocalService.getProductEntry(productEntryId);
384 }
385
386 public static java.util.List getProductEntries(long groupId, int begin,
387 int end) throws com.liferay.portal.SystemException {
388 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
389
390 return scProductEntryLocalService.getProductEntries(groupId, begin, end);
391 }
392
393 public static java.util.List getProductEntries(long groupId, int begin,
394 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
395 throws com.liferay.portal.SystemException {
396 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
397
398 return scProductEntryLocalService.getProductEntries(groupId, begin,
399 end, obc);
400 }
401
402 public static java.util.List getProductEntries(long groupId, long userId,
403 int begin, int end) throws com.liferay.portal.SystemException {
404 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
405
406 return scProductEntryLocalService.getProductEntries(groupId, userId,
407 begin, end);
408 }
409
410 public static java.util.List getProductEntries(long groupId, long userId,
411 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
412 throws com.liferay.portal.SystemException {
413 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
414
415 return scProductEntryLocalService.getProductEntries(groupId, userId,
416 begin, end, obc);
417 }
418
419 public static int getProductEntriesCount(long groupId)
420 throws com.liferay.portal.SystemException {
421 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
422
423 return scProductEntryLocalService.getProductEntriesCount(groupId);
424 }
425
426 public static int getProductEntriesCount(long groupId, long userId)
427 throws com.liferay.portal.SystemException {
428 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
429
430 return scProductEntryLocalService.getProductEntriesCount(groupId, userId);
431 }
432
433 public static java.lang.String getRepositoryXML(long groupId,
434 java.lang.String baseImageURL, java.util.Date oldestDate,
435 int maxNumOfVersions, java.util.Properties repoSettings)
436 throws com.liferay.portal.PortalException,
437 com.liferay.portal.SystemException {
438 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
439
440 return scProductEntryLocalService.getRepositoryXML(groupId,
441 baseImageURL, oldestDate, maxNumOfVersions, repoSettings);
442 }
443
444 public static java.lang.String getRepositoryXML(long groupId,
445 java.lang.String version, java.lang.String baseImageURL,
446 java.util.Date oldestDate, int maxNumOfVersions,
447 java.util.Properties repoSettings)
448 throws com.liferay.portal.PortalException,
449 com.liferay.portal.SystemException {
450 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
451
452 return scProductEntryLocalService.getRepositoryXML(groupId, version,
453 baseImageURL, oldestDate, maxNumOfVersions, repoSettings);
454 }
455
456 public static void reIndex(java.lang.String[] ids)
457 throws com.liferay.portal.SystemException {
458 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
459
460 scProductEntryLocalService.reIndex(ids);
461 }
462
463 public static com.liferay.portal.kernel.search.Hits search(long companyId,
464 long groupId, java.lang.String keywords, java.lang.String type)
465 throws com.liferay.portal.SystemException {
466 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
467
468 return scProductEntryLocalService.search(companyId, groupId, keywords,
469 type);
470 }
471
472 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
473 long productEntryId, java.lang.String name, java.lang.String type,
474 java.lang.String tags, java.lang.String shortDescription,
475 java.lang.String longDescription, java.lang.String pageURL,
476 java.lang.String author, java.lang.String repoGroupId,
477 java.lang.String repoArtifactId, long[] licenseIds,
478 java.util.List thumbnails, java.util.List fullImages)
479 throws com.liferay.portal.PortalException,
480 com.liferay.portal.SystemException {
481 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
482
483 return scProductEntryLocalService.updateProductEntry(productEntryId,
484 name, type, tags, shortDescription, longDescription, pageURL,
485 author, repoGroupId, repoArtifactId, licenseIds, thumbnails,
486 fullImages);
487 }
488 }