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="SCProductVersionLocalServiceUtil.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.SCProductVersionLocalService</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.SCProductVersionLocalServiceFactory</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.SCProductVersionLocalService
047: * @see com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalServiceFactory
048: *
049: */
050: public class SCProductVersionLocalServiceUtil {
051: public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addSCProductVersion(
052: com.liferay.portlet.softwarecatalog.model.SCProductVersion model)
053: throws com.liferay.portal.SystemException {
054: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
055: .getService();
056:
057: return scProductVersionLocalService.addSCProductVersion(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: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
064: .getService();
065:
066: return scProductVersionLocalService
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: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
075: .getService();
076:
077: return scProductVersionLocalService.dynamicQuery(
078: queryInitializer, begin, end);
079: }
080:
081: public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
082: com.liferay.portlet.softwarecatalog.model.SCProductVersion model)
083: throws com.liferay.portal.SystemException {
084: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
085: .getService();
086:
087: return scProductVersionLocalService
088: .updateSCProductVersion(model);
089: }
090:
091: public static com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence getSCLicensePersistence() {
092: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
093: .getService();
094:
095: return scProductVersionLocalService.getSCLicensePersistence();
096: }
097:
098: public static void setSCLicensePersistence(
099: com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence scLicensePersistence) {
100: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
101: .getService();
102:
103: scProductVersionLocalService
104: .setSCLicensePersistence(scLicensePersistence);
105: }
106:
107: public static com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence getSCFrameworkVersionPersistence() {
108: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
109: .getService();
110:
111: return scProductVersionLocalService
112: .getSCFrameworkVersionPersistence();
113: }
114:
115: public static void setSCFrameworkVersionPersistence(
116: com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence scFrameworkVersionPersistence) {
117: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
118: .getService();
119:
120: scProductVersionLocalService
121: .setSCFrameworkVersionPersistence(scFrameworkVersionPersistence);
122: }
123:
124: public static com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence getSCProductEntryPersistence() {
125: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
126: .getService();
127:
128: return scProductVersionLocalService
129: .getSCProductEntryPersistence();
130: }
131:
132: public static void setSCProductEntryPersistence(
133: com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence scProductEntryPersistence) {
134: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
135: .getService();
136:
137: scProductVersionLocalService
138: .setSCProductEntryPersistence(scProductEntryPersistence);
139: }
140:
141: public static com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence getSCProductScreenshotPersistence() {
142: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
143: .getService();
144:
145: return scProductVersionLocalService
146: .getSCProductScreenshotPersistence();
147: }
148:
149: public static void setSCProductScreenshotPersistence(
150: com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence scProductScreenshotPersistence) {
151: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
152: .getService();
153:
154: scProductVersionLocalService
155: .setSCProductScreenshotPersistence(scProductScreenshotPersistence);
156: }
157:
158: public static com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence getSCProductVersionPersistence() {
159: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
160: .getService();
161:
162: return scProductVersionLocalService
163: .getSCProductVersionPersistence();
164: }
165:
166: public static void setSCProductVersionPersistence(
167: com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence scProductVersionPersistence) {
168: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
169: .getService();
170:
171: scProductVersionLocalService
172: .setSCProductVersionPersistence(scProductVersionPersistence);
173: }
174:
175: public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
176: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
177: .getService();
178:
179: return scProductVersionLocalService.getUserPersistence();
180: }
181:
182: public static void setUserPersistence(
183: com.liferay.portal.service.persistence.UserPersistence userPersistence) {
184: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
185: .getService();
186:
187: scProductVersionLocalService
188: .setUserPersistence(userPersistence);
189: }
190:
191: public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
192: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
193: .getService();
194:
195: return scProductVersionLocalService.getUserFinder();
196: }
197:
198: public static void setUserFinder(
199: com.liferay.portal.service.persistence.UserFinder userFinder) {
200: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
201: .getService();
202:
203: scProductVersionLocalService.setUserFinder(userFinder);
204: }
205:
206: public static void afterPropertiesSet() {
207: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
208: .getService();
209:
210: scProductVersionLocalService.afterPropertiesSet();
211: }
212:
213: public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
214: long userId, long productEntryId, java.lang.String version,
215: java.lang.String changeLog,
216: java.lang.String downloadPageURL,
217: java.lang.String directDownloadURL,
218: boolean repoStoreArtifact, long[] frameworkVersionIds,
219: boolean addCommunityPermissions, boolean addGuestPermissions)
220: throws com.liferay.portal.PortalException,
221: com.liferay.portal.SystemException {
222: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
223: .getService();
224:
225: return scProductVersionLocalService.addProductVersion(userId,
226: productEntryId, version, changeLog, downloadPageURL,
227: directDownloadURL, repoStoreArtifact,
228: frameworkVersionIds, addCommunityPermissions,
229: addGuestPermissions);
230: }
231:
232: public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
233: long userId, long productEntryId, java.lang.String version,
234: java.lang.String changeLog,
235: java.lang.String downloadPageURL,
236: java.lang.String directDownloadURL,
237: boolean repoStoreArtifact, long[] frameworkVersionIds,
238: java.lang.String[] communityPermissions,
239: java.lang.String[] guestPermissions)
240: throws com.liferay.portal.PortalException,
241: com.liferay.portal.SystemException {
242: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
243: .getService();
244:
245: return scProductVersionLocalService.addProductVersion(userId,
246: productEntryId, version, changeLog, downloadPageURL,
247: directDownloadURL, repoStoreArtifact,
248: frameworkVersionIds, communityPermissions,
249: guestPermissions);
250: }
251:
252: public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
253: long userId, long productEntryId, java.lang.String version,
254: java.lang.String changeLog,
255: java.lang.String downloadPageURL,
256: java.lang.String directDownloadURL,
257: boolean repoStoreArtifact, long[] frameworkVersionIds,
258: java.lang.Boolean addCommunityPermissions,
259: java.lang.Boolean addGuestPermissions,
260: java.lang.String[] communityPermissions,
261: java.lang.String[] guestPermissions)
262: throws com.liferay.portal.PortalException,
263: com.liferay.portal.SystemException {
264: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
265: .getService();
266:
267: return scProductVersionLocalService.addProductVersion(userId,
268: productEntryId, version, changeLog, downloadPageURL,
269: directDownloadURL, repoStoreArtifact,
270: frameworkVersionIds, addCommunityPermissions,
271: addGuestPermissions, communityPermissions,
272: guestPermissions);
273: }
274:
275: public static void deleteProductVersion(long productVersionId)
276: throws com.liferay.portal.PortalException,
277: com.liferay.portal.SystemException {
278: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
279: .getService();
280:
281: scProductVersionLocalService
282: .deleteProductVersion(productVersionId);
283: }
284:
285: public static void deleteProductVersion(
286: com.liferay.portlet.softwarecatalog.model.SCProductVersion productVersion)
287: throws com.liferay.portal.PortalException,
288: com.liferay.portal.SystemException {
289: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
290: .getService();
291:
292: scProductVersionLocalService
293: .deleteProductVersion(productVersion);
294: }
295:
296: public static void deleteProductVersions(long productEntryId)
297: throws com.liferay.portal.PortalException,
298: com.liferay.portal.SystemException {
299: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
300: .getService();
301:
302: scProductVersionLocalService
303: .deleteProductVersions(productEntryId);
304: }
305:
306: public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersion(
307: long productVersionId)
308: throws com.liferay.portal.PortalException,
309: com.liferay.portal.SystemException {
310: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
311: .getService();
312:
313: return scProductVersionLocalService
314: .getProductVersion(productVersionId);
315: }
316:
317: public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersionByDirectDownloadURL(
318: java.lang.String directDownloadURL)
319: throws com.liferay.portal.PortalException,
320: com.liferay.portal.SystemException {
321: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
322: .getService();
323:
324: return scProductVersionLocalService
325: .getProductVersionByDirectDownloadURL(directDownloadURL);
326: }
327:
328: public static java.util.List getProductVersions(
329: long productEntryId, int begin, int end)
330: throws com.liferay.portal.SystemException {
331: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
332: .getService();
333:
334: return scProductVersionLocalService.getProductVersions(
335: productEntryId, begin, end);
336: }
337:
338: public static int getProductVersionsCount(long productEntryId)
339: throws com.liferay.portal.SystemException {
340: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
341: .getService();
342:
343: return scProductVersionLocalService
344: .getProductVersionsCount(productEntryId);
345: }
346:
347: public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateProductVersion(
348: long productVersionId, java.lang.String version,
349: java.lang.String changeLog,
350: java.lang.String downloadPageURL,
351: java.lang.String directDownloadURL,
352: boolean repoStoreArtifact, long[] frameworkVersionIds)
353: throws com.liferay.portal.PortalException,
354: com.liferay.portal.SystemException {
355: SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory
356: .getService();
357:
358: return scProductVersionLocalService.updateProductVersion(
359: productVersionId, version, changeLog, downloadPageURL,
360: directDownloadURL, repoStoreArtifact,
361: frameworkVersionIds);
362: }
363: }
|