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="SCProductScreenshotLocalServiceUtil.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.SCProductScreenshotLocalService</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.SCProductScreenshotLocalServiceFactory</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.SCProductScreenshotLocalService
047: * @see com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalServiceFactory
048: *
049: */
050: public class SCProductScreenshotLocalServiceUtil {
051: public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot addSCProductScreenshot(
052: com.liferay.portlet.softwarecatalog.model.SCProductScreenshot model)
053: throws com.liferay.portal.SystemException {
054: SCProductScreenshotLocalService scProductScreenshotLocalService = SCProductScreenshotLocalServiceFactory
055: .getService();
056:
057: return scProductScreenshotLocalService
058: .addSCProductScreenshot(model);
059: }
060:
061: public static java.util.List dynamicQuery(
062: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
063: throws com.liferay.portal.SystemException {
064: SCProductScreenshotLocalService scProductScreenshotLocalService = SCProductScreenshotLocalServiceFactory
065: .getService();
066:
067: return scProductScreenshotLocalService
068: .dynamicQuery(queryInitializer);
069: }
070:
071: public static java.util.List dynamicQuery(
072: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
073: int begin, int end)
074: throws com.liferay.portal.SystemException {
075: SCProductScreenshotLocalService scProductScreenshotLocalService = SCProductScreenshotLocalServiceFactory
076: .getService();
077:
078: return scProductScreenshotLocalService.dynamicQuery(
079: queryInitializer, begin, end);
080: }
081:
082: public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot updateSCProductScreenshot(
083: com.liferay.portlet.softwarecatalog.model.SCProductScreenshot model)
084: throws com.liferay.portal.SystemException {
085: SCProductScreenshotLocalService scProductScreenshotLocalService = SCProductScreenshotLocalServiceFactory
086: .getService();
087:
088: return scProductScreenshotLocalService
089: .updateSCProductScreenshot(model);
090: }
091:
092: public static com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence getSCLicensePersistence() {
093: SCProductScreenshotLocalService scProductScreenshotLocalService = SCProductScreenshotLocalServiceFactory
094: .getService();
095:
096: return scProductScreenshotLocalService
097: .getSCLicensePersistence();
098: }
099:
100: public static void setSCLicensePersistence(
101: com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence scLicensePersistence) {
102: SCProductScreenshotLocalService scProductScreenshotLocalService = SCProductScreenshotLocalServiceFactory
103: .getService();
104:
105: scProductScreenshotLocalService
106: .setSCLicensePersistence(scLicensePersistence);
107: }
108:
109: public static com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence getSCFrameworkVersionPersistence() {
110: SCProductScreenshotLocalService scProductScreenshotLocalService = SCProductScreenshotLocalServiceFactory
111: .getService();
112:
113: return scProductScreenshotLocalService
114: .getSCFrameworkVersionPersistence();
115: }
116:
117: public static void setSCFrameworkVersionPersistence(
118: com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence scFrameworkVersionPersistence) {
119: SCProductScreenshotLocalService scProductScreenshotLocalService = SCProductScreenshotLocalServiceFactory
120: .getService();
121:
122: scProductScreenshotLocalService
123: .setSCFrameworkVersionPersistence(scFrameworkVersionPersistence);
124: }
125:
126: public static com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence getSCProductEntryPersistence() {
127: SCProductScreenshotLocalService scProductScreenshotLocalService = SCProductScreenshotLocalServiceFactory
128: .getService();
129:
130: return scProductScreenshotLocalService
131: .getSCProductEntryPersistence();
132: }
133:
134: public static void setSCProductEntryPersistence(
135: com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence scProductEntryPersistence) {
136: SCProductScreenshotLocalService scProductScreenshotLocalService = SCProductScreenshotLocalServiceFactory
137: .getService();
138:
139: scProductScreenshotLocalService
140: .setSCProductEntryPersistence(scProductEntryPersistence);
141: }
142:
143: public static com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence getSCProductScreenshotPersistence() {
144: SCProductScreenshotLocalService scProductScreenshotLocalService = SCProductScreenshotLocalServiceFactory
145: .getService();
146:
147: return scProductScreenshotLocalService
148: .getSCProductScreenshotPersistence();
149: }
150:
151: public static void setSCProductScreenshotPersistence(
152: com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence scProductScreenshotPersistence) {
153: SCProductScreenshotLocalService scProductScreenshotLocalService = SCProductScreenshotLocalServiceFactory
154: .getService();
155:
156: scProductScreenshotLocalService
157: .setSCProductScreenshotPersistence(scProductScreenshotPersistence);
158: }
159:
160: public static com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence getSCProductVersionPersistence() {
161: SCProductScreenshotLocalService scProductScreenshotLocalService = SCProductScreenshotLocalServiceFactory
162: .getService();
163:
164: return scProductScreenshotLocalService
165: .getSCProductVersionPersistence();
166: }
167:
168: public static void setSCProductVersionPersistence(
169: com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence scProductVersionPersistence) {
170: SCProductScreenshotLocalService scProductScreenshotLocalService = SCProductScreenshotLocalServiceFactory
171: .getService();
172:
173: scProductScreenshotLocalService
174: .setSCProductVersionPersistence(scProductVersionPersistence);
175: }
176:
177: public static void afterPropertiesSet() {
178: SCProductScreenshotLocalService scProductScreenshotLocalService = SCProductScreenshotLocalServiceFactory
179: .getService();
180:
181: scProductScreenshotLocalService.afterPropertiesSet();
182: }
183:
184: public static void deleteProductScreenshot(
185: com.liferay.portlet.softwarecatalog.model.SCProductScreenshot productScreenshot)
186: throws com.liferay.portal.SystemException {
187: SCProductScreenshotLocalService scProductScreenshotLocalService = SCProductScreenshotLocalServiceFactory
188: .getService();
189:
190: scProductScreenshotLocalService
191: .deleteProductScreenshot(productScreenshot);
192: }
193:
194: public static void deleteProductScreenshots(long productEntryId)
195: throws com.liferay.portal.SystemException {
196: SCProductScreenshotLocalService scProductScreenshotLocalService = SCProductScreenshotLocalServiceFactory
197: .getService();
198:
199: scProductScreenshotLocalService
200: .deleteProductScreenshots(productEntryId);
201: }
202:
203: public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot getProductScreenshot(
204: long productEntryId, int priority)
205: throws com.liferay.portal.PortalException,
206: com.liferay.portal.SystemException {
207: SCProductScreenshotLocalService scProductScreenshotLocalService = SCProductScreenshotLocalServiceFactory
208: .getService();
209:
210: return scProductScreenshotLocalService.getProductScreenshot(
211: productEntryId, priority);
212: }
213:
214: public static java.util.List getProductScreenshots(
215: long productEntryId)
216: throws com.liferay.portal.SystemException {
217: SCProductScreenshotLocalService scProductScreenshotLocalService = SCProductScreenshotLocalServiceFactory
218: .getService();
219:
220: return scProductScreenshotLocalService
221: .getProductScreenshots(productEntryId);
222: }
223:
224: public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot getProductScreenshotByFullImageId(
225: long fullImageId)
226: throws com.liferay.portal.PortalException,
227: com.liferay.portal.SystemException {
228: SCProductScreenshotLocalService scProductScreenshotLocalService = SCProductScreenshotLocalServiceFactory
229: .getService();
230:
231: return scProductScreenshotLocalService
232: .getProductScreenshotByFullImageId(fullImageId);
233: }
234:
235: public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot getProductScreenshotByThumbnailId(
236: long thumbnailId)
237: throws com.liferay.portal.PortalException,
238: com.liferay.portal.SystemException {
239: SCProductScreenshotLocalService scProductScreenshotLocalService = SCProductScreenshotLocalServiceFactory
240: .getService();
241:
242: return scProductScreenshotLocalService
243: .getProductScreenshotByThumbnailId(thumbnailId);
244: }
245: }
|