001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.softwarecatalog.service;
022:
023: /**
024: * <a href="SCProductEntryLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * <p>
027: * ServiceBuilder generated this class. Modifications in this class will be
028: * overwritten the next time is generated.
029: * </p>
030: *
031: * <p>
032: * This class provides static methods for the
033: * <code>com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService</code>
034: * bean. The static methods of this class calls the same methods of the bean
035: * instance. It's convenient to be able to just write one line to call a method
036: * on a bean instead of writing a lookup call and a method call.
037: * </p>
038: *
039: * <p>
040: * <code>com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalServiceFactory</code>
041: * is responsible for the lookup of the bean.
042: * </p>
043: *
044: * @author Brian Wing Shun Chan
045: *
046: * @see com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService
047: * @see com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalServiceFactory
048: *
049: */
050: public class SCProductEntryLocalServiceUtil {
051: public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addSCProductEntry(
052: com.liferay.portlet.softwarecatalog.model.SCProductEntry model)
053: throws com.liferay.portal.SystemException {
054: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
055: .getService();
056:
057: return scProductEntryLocalService.addSCProductEntry(model);
058: }
059:
060: public static java.util.List dynamicQuery(
061: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
062: throws com.liferay.portal.SystemException {
063: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
064: .getService();
065:
066: return scProductEntryLocalService
067: .dynamicQuery(queryInitializer);
068: }
069:
070: public static java.util.List dynamicQuery(
071: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
072: int begin, int end)
073: throws com.liferay.portal.SystemException {
074: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
075: .getService();
076:
077: return scProductEntryLocalService.dynamicQuery(
078: queryInitializer, begin, end);
079: }
080:
081: public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
082: com.liferay.portlet.softwarecatalog.model.SCProductEntry model)
083: throws com.liferay.portal.SystemException {
084: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
085: .getService();
086:
087: return scProductEntryLocalService.updateSCProductEntry(model);
088: }
089:
090: public static com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence getSCLicensePersistence() {
091: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
092: .getService();
093:
094: return scProductEntryLocalService.getSCLicensePersistence();
095: }
096:
097: public static void setSCLicensePersistence(
098: com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence scLicensePersistence) {
099: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
100: .getService();
101:
102: scProductEntryLocalService
103: .setSCLicensePersistence(scLicensePersistence);
104: }
105:
106: public static com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence getSCFrameworkVersionPersistence() {
107: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
108: .getService();
109:
110: return scProductEntryLocalService
111: .getSCFrameworkVersionPersistence();
112: }
113:
114: public static void setSCFrameworkVersionPersistence(
115: com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence scFrameworkVersionPersistence) {
116: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
117: .getService();
118:
119: scProductEntryLocalService
120: .setSCFrameworkVersionPersistence(scFrameworkVersionPersistence);
121: }
122:
123: public static com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence getSCProductEntryPersistence() {
124: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
125: .getService();
126:
127: return scProductEntryLocalService
128: .getSCProductEntryPersistence();
129: }
130:
131: public static void setSCProductEntryPersistence(
132: com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence scProductEntryPersistence) {
133: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
134: .getService();
135:
136: scProductEntryLocalService
137: .setSCProductEntryPersistence(scProductEntryPersistence);
138: }
139:
140: public static com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence getSCProductScreenshotPersistence() {
141: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
142: .getService();
143:
144: return scProductEntryLocalService
145: .getSCProductScreenshotPersistence();
146: }
147:
148: public static void setSCProductScreenshotPersistence(
149: com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence scProductScreenshotPersistence) {
150: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
151: .getService();
152:
153: scProductEntryLocalService
154: .setSCProductScreenshotPersistence(scProductScreenshotPersistence);
155: }
156:
157: public static com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence getSCProductVersionPersistence() {
158: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
159: .getService();
160:
161: return scProductEntryLocalService
162: .getSCProductVersionPersistence();
163: }
164:
165: public static void setSCProductVersionPersistence(
166: com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence scProductVersionPersistence) {
167: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
168: .getService();
169:
170: scProductEntryLocalService
171: .setSCProductVersionPersistence(scProductVersionPersistence);
172: }
173:
174: public static com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence() {
175: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
176: .getService();
177:
178: return scProductEntryLocalService.getResourcePersistence();
179: }
180:
181: public static void setResourcePersistence(
182: com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence) {
183: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
184: .getService();
185:
186: scProductEntryLocalService
187: .setResourcePersistence(resourcePersistence);
188: }
189:
190: public static com.liferay.portal.service.persistence.ResourceFinder getResourceFinder() {
191: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
192: .getService();
193:
194: return scProductEntryLocalService.getResourceFinder();
195: }
196:
197: public static void setResourceFinder(
198: com.liferay.portal.service.persistence.ResourceFinder resourceFinder) {
199: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
200: .getService();
201:
202: scProductEntryLocalService.setResourceFinder(resourceFinder);
203: }
204:
205: public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
206: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
207: .getService();
208:
209: return scProductEntryLocalService.getUserPersistence();
210: }
211:
212: public static void setUserPersistence(
213: com.liferay.portal.service.persistence.UserPersistence userPersistence) {
214: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
215: .getService();
216:
217: scProductEntryLocalService.setUserPersistence(userPersistence);
218: }
219:
220: public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
221: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
222: .getService();
223:
224: return scProductEntryLocalService.getUserFinder();
225: }
226:
227: public static void setUserFinder(
228: com.liferay.portal.service.persistence.UserFinder userFinder) {
229: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
230: .getService();
231:
232: scProductEntryLocalService.setUserFinder(userFinder);
233: }
234:
235: public static com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence getMBMessagePersistence() {
236: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
237: .getService();
238:
239: return scProductEntryLocalService.getMBMessagePersistence();
240: }
241:
242: public static void setMBMessagePersistence(
243: com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence mbMessagePersistence) {
244: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
245: .getService();
246:
247: scProductEntryLocalService
248: .setMBMessagePersistence(mbMessagePersistence);
249: }
250:
251: public static com.liferay.portlet.messageboards.service.persistence.MBMessageFinder getMBMessageFinder() {
252: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
253: .getService();
254:
255: return scProductEntryLocalService.getMBMessageFinder();
256: }
257:
258: public static void setMBMessageFinder(
259: com.liferay.portlet.messageboards.service.persistence.MBMessageFinder mbMessageFinder) {
260: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
261: .getService();
262:
263: scProductEntryLocalService.setMBMessageFinder(mbMessageFinder);
264: }
265:
266: public static com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence getRatingsStatsPersistence() {
267: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
268: .getService();
269:
270: return scProductEntryLocalService.getRatingsStatsPersistence();
271: }
272:
273: public static void setRatingsStatsPersistence(
274: com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence ratingsStatsPersistence) {
275: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
276: .getService();
277:
278: scProductEntryLocalService
279: .setRatingsStatsPersistence(ratingsStatsPersistence);
280: }
281:
282: public static void afterPropertiesSet() {
283: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
284: .getService();
285:
286: scProductEntryLocalService.afterPropertiesSet();
287: }
288:
289: public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
290: long userId, long plid, java.lang.String name,
291: java.lang.String type, java.lang.String tags,
292: java.lang.String shortDescription,
293: java.lang.String longDescription, java.lang.String pageURL,
294: java.lang.String author, java.lang.String repoGroupId,
295: java.lang.String repoArtifactId, long[] licenseIds,
296: java.util.List thumbnails, java.util.List fullImages,
297: boolean addCommunityPermissions, boolean addGuestPermissions)
298: throws com.liferay.portal.PortalException,
299: com.liferay.portal.SystemException {
300: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
301: .getService();
302:
303: return scProductEntryLocalService.addProductEntry(userId, plid,
304: name, type, tags, shortDescription, longDescription,
305: pageURL, author, repoGroupId, repoArtifactId,
306: licenseIds, thumbnails, fullImages,
307: addCommunityPermissions, addGuestPermissions);
308: }
309:
310: public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
311: long userId, long plid, java.lang.String name,
312: java.lang.String type, java.lang.String tags,
313: java.lang.String shortDescription,
314: java.lang.String longDescription, java.lang.String pageURL,
315: java.lang.String author, java.lang.String repoGroupId,
316: java.lang.String repoArtifactId, long[] licenseIds,
317: java.util.List thumbnails, java.util.List fullImages,
318: java.lang.String[] communityPermissions,
319: java.lang.String[] guestPermissions)
320: throws com.liferay.portal.PortalException,
321: com.liferay.portal.SystemException {
322: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
323: .getService();
324:
325: return scProductEntryLocalService.addProductEntry(userId, plid,
326: name, type, tags, shortDescription, longDescription,
327: pageURL, author, repoGroupId, repoArtifactId,
328: licenseIds, thumbnails, fullImages,
329: communityPermissions, guestPermissions);
330: }
331:
332: public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
333: long userId, long plid, java.lang.String name,
334: java.lang.String type, java.lang.String tags,
335: java.lang.String shortDescription,
336: java.lang.String longDescription, java.lang.String pageURL,
337: java.lang.String author, java.lang.String repoGroupId,
338: java.lang.String repoArtifactId, long[] licenseIds,
339: java.util.List thumbnails, java.util.List fullImages,
340: java.lang.Boolean addCommunityPermissions,
341: java.lang.Boolean addGuestPermissions,
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
347: .getService();
348:
349: return scProductEntryLocalService.addProductEntry(userId, plid,
350: name, type, tags, shortDescription, longDescription,
351: pageURL, author, repoGroupId, repoArtifactId,
352: licenseIds, thumbnails, fullImages,
353: addCommunityPermissions, addGuestPermissions,
354: communityPermissions, guestPermissions);
355: }
356:
357: public static void addProductEntryResources(long productEntryId,
358: boolean addCommunityPermissions, boolean addGuestPermissions)
359: throws com.liferay.portal.PortalException,
360: com.liferay.portal.SystemException {
361: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
362: .getService();
363:
364: scProductEntryLocalService.addProductEntryResources(
365: productEntryId, addCommunityPermissions,
366: addGuestPermissions);
367: }
368:
369: public static void addProductEntryResources(
370: com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
371: boolean addCommunityPermissions, boolean addGuestPermissions)
372: throws com.liferay.portal.PortalException,
373: com.liferay.portal.SystemException {
374: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
375: .getService();
376:
377: scProductEntryLocalService.addProductEntryResources(
378: productEntry, addCommunityPermissions,
379: addGuestPermissions);
380: }
381:
382: public static void addProductEntryResources(long productEntryId,
383: java.lang.String[] communityPermissions,
384: java.lang.String[] guestPermissions)
385: throws com.liferay.portal.PortalException,
386: com.liferay.portal.SystemException {
387: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
388: .getService();
389:
390: scProductEntryLocalService.addProductEntryResources(
391: productEntryId, communityPermissions, guestPermissions);
392: }
393:
394: public static void addProductEntryResources(
395: com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
396: java.lang.String[] communityPermissions,
397: java.lang.String[] guestPermissions)
398: throws com.liferay.portal.PortalException,
399: com.liferay.portal.SystemException {
400: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
401: .getService();
402:
403: scProductEntryLocalService.addProductEntryResources(
404: productEntry, communityPermissions, guestPermissions);
405: }
406:
407: public static void deleteProductEntries(long groupId)
408: throws com.liferay.portal.PortalException,
409: com.liferay.portal.SystemException {
410: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
411: .getService();
412:
413: scProductEntryLocalService.deleteProductEntries(groupId);
414: }
415:
416: public static void deleteProductEntry(long productEntryId)
417: throws com.liferay.portal.PortalException,
418: com.liferay.portal.SystemException {
419: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
420: .getService();
421:
422: scProductEntryLocalService.deleteProductEntry(productEntryId);
423: }
424:
425: public static void deleteProductEntry(
426: com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
427: throws com.liferay.portal.PortalException,
428: com.liferay.portal.SystemException {
429: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
430: .getService();
431:
432: scProductEntryLocalService.deleteProductEntry(productEntry);
433: }
434:
435: public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
436: long productEntryId)
437: throws com.liferay.portal.PortalException,
438: com.liferay.portal.SystemException {
439: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
440: .getService();
441:
442: return scProductEntryLocalService
443: .getProductEntry(productEntryId);
444: }
445:
446: public static java.util.List getProductEntries(long groupId,
447: int begin, int end)
448: throws com.liferay.portal.SystemException {
449: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
450: .getService();
451:
452: return scProductEntryLocalService.getProductEntries(groupId,
453: begin, end);
454: }
455:
456: public static java.util.List getProductEntries(long groupId,
457: int begin, int end,
458: com.liferay.portal.kernel.util.OrderByComparator obc)
459: throws com.liferay.portal.SystemException {
460: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
461: .getService();
462:
463: return scProductEntryLocalService.getProductEntries(groupId,
464: begin, end, obc);
465: }
466:
467: public static java.util.List getProductEntries(long groupId,
468: long userId, int begin, int end)
469: throws com.liferay.portal.SystemException {
470: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
471: .getService();
472:
473: return scProductEntryLocalService.getProductEntries(groupId,
474: userId, begin, end);
475: }
476:
477: public static java.util.List getProductEntries(long groupId,
478: long userId, int begin, int end,
479: com.liferay.portal.kernel.util.OrderByComparator obc)
480: throws com.liferay.portal.SystemException {
481: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
482: .getService();
483:
484: return scProductEntryLocalService.getProductEntries(groupId,
485: userId, begin, end, obc);
486: }
487:
488: public static int getProductEntriesCount(long groupId)
489: throws com.liferay.portal.SystemException {
490: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
491: .getService();
492:
493: return scProductEntryLocalService
494: .getProductEntriesCount(groupId);
495: }
496:
497: public static int getProductEntriesCount(long groupId, long userId)
498: throws com.liferay.portal.SystemException {
499: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
500: .getService();
501:
502: return scProductEntryLocalService.getProductEntriesCount(
503: groupId, userId);
504: }
505:
506: public static java.lang.String getRepositoryXML(long groupId,
507: java.lang.String baseImageURL, java.util.Date oldestDate,
508: int maxNumOfVersions, java.util.Properties repoSettings)
509: throws com.liferay.portal.PortalException,
510: com.liferay.portal.SystemException {
511: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
512: .getService();
513:
514: return scProductEntryLocalService.getRepositoryXML(groupId,
515: baseImageURL, oldestDate, maxNumOfVersions,
516: repoSettings);
517: }
518:
519: public static java.lang.String getRepositoryXML(long groupId,
520: java.lang.String version, java.lang.String baseImageURL,
521: java.util.Date oldestDate, int maxNumOfVersions,
522: java.util.Properties repoSettings)
523: throws com.liferay.portal.PortalException,
524: com.liferay.portal.SystemException {
525: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
526: .getService();
527:
528: return scProductEntryLocalService.getRepositoryXML(groupId,
529: version, baseImageURL, oldestDate, maxNumOfVersions,
530: repoSettings);
531: }
532:
533: public static void reIndex(java.lang.String[] ids)
534: throws com.liferay.portal.SystemException {
535: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
536: .getService();
537:
538: scProductEntryLocalService.reIndex(ids);
539: }
540:
541: public static com.liferay.portal.kernel.search.Hits search(
542: long companyId, long groupId, java.lang.String keywords,
543: java.lang.String type)
544: throws com.liferay.portal.SystemException {
545: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
546: .getService();
547:
548: return scProductEntryLocalService.search(companyId, groupId,
549: keywords, type);
550: }
551:
552: public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
553: long productEntryId, java.lang.String name,
554: java.lang.String type, java.lang.String tags,
555: java.lang.String shortDescription,
556: java.lang.String longDescription, java.lang.String pageURL,
557: java.lang.String author, java.lang.String repoGroupId,
558: java.lang.String repoArtifactId, long[] licenseIds,
559: java.util.List thumbnails, java.util.List fullImages)
560: throws com.liferay.portal.PortalException,
561: com.liferay.portal.SystemException {
562: SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory
563: .getService();
564:
565: return scProductEntryLocalService.updateProductEntry(
566: productEntryId, name, type, tags, shortDescription,
567: longDescription, pageURL, author, repoGroupId,
568: repoArtifactId, licenseIds, thumbnails, fullImages);
569: }
570: }
|