1
14
15 package com.liferay.portlet.softwarecatalog.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.util.MethodCache;
19 import com.liferay.portal.kernel.util.ReferenceRegistry;
20
21
41 public class SCProductScreenshotLocalServiceUtil {
42 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot addSCProductScreenshot(
43 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot)
44 throws com.liferay.portal.SystemException {
45 return getService().addSCProductScreenshot(scProductScreenshot);
46 }
47
48 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot createSCProductScreenshot(
49 long productScreenshotId) {
50 return getService().createSCProductScreenshot(productScreenshotId);
51 }
52
53 public static void deleteSCProductScreenshot(long productScreenshotId)
54 throws com.liferay.portal.PortalException,
55 com.liferay.portal.SystemException {
56 getService().deleteSCProductScreenshot(productScreenshotId);
57 }
58
59 public static void deleteSCProductScreenshot(
60 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot)
61 throws com.liferay.portal.SystemException {
62 getService().deleteSCProductScreenshot(scProductScreenshot);
63 }
64
65 @SuppressWarnings("rawtypes")
66 public static java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException {
69 return getService().dynamicQuery(dynamicQuery);
70 }
71
72 @SuppressWarnings("rawtypes")
73 public static java.util.List dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.SystemException {
76 return getService().dynamicQuery(dynamicQuery, start, end);
77 }
78
79 @SuppressWarnings("rawtypes")
80 public static java.util.List dynamicQuery(
81 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82 int end,
83 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84 throws com.liferay.portal.SystemException {
85 return getService()
86 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87 }
88
89 public static int dynamicQueryCount(
90 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91 throws com.liferay.portal.SystemException {
92 return getService().dynamicQueryCount(dynamicQuery);
93 }
94
95 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot getSCProductScreenshot(
96 long productScreenshotId)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException {
99 return getService().getSCProductScreenshot(productScreenshotId);
100 }
101
102 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> getSCProductScreenshots(
103 int start, int end) throws com.liferay.portal.SystemException {
104 return getService().getSCProductScreenshots(start, end);
105 }
106
107 public static int getSCProductScreenshotsCount()
108 throws com.liferay.portal.SystemException {
109 return getService().getSCProductScreenshotsCount();
110 }
111
112 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot updateSCProductScreenshot(
113 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot)
114 throws com.liferay.portal.SystemException {
115 return getService().updateSCProductScreenshot(scProductScreenshot);
116 }
117
118 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot updateSCProductScreenshot(
119 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot,
120 boolean merge) throws com.liferay.portal.SystemException {
121 return getService().updateSCProductScreenshot(scProductScreenshot, merge);
122 }
123
124 public static void deleteProductScreenshot(
125 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot productScreenshot)
126 throws com.liferay.portal.PortalException,
127 com.liferay.portal.SystemException {
128 getService().deleteProductScreenshot(productScreenshot);
129 }
130
131 public static void deleteProductScreenshots(long productEntryId)
132 throws com.liferay.portal.PortalException,
133 com.liferay.portal.SystemException {
134 getService().deleteProductScreenshots(productEntryId);
135 }
136
137 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot getProductScreenshot(
138 long productEntryId, int priority)
139 throws com.liferay.portal.PortalException,
140 com.liferay.portal.SystemException {
141 return getService().getProductScreenshot(productEntryId, priority);
142 }
143
144 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot getProductScreenshotByFullImageId(
145 long fullImageId)
146 throws com.liferay.portal.PortalException,
147 com.liferay.portal.SystemException {
148 return getService().getProductScreenshotByFullImageId(fullImageId);
149 }
150
151 public static com.liferay.portlet.softwarecatalog.model.SCProductScreenshot getProductScreenshotByThumbnailId(
152 long thumbnailId)
153 throws com.liferay.portal.PortalException,
154 com.liferay.portal.SystemException {
155 return getService().getProductScreenshotByThumbnailId(thumbnailId);
156 }
157
158 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> getProductScreenshots(
159 long productEntryId) throws com.liferay.portal.SystemException {
160 return getService().getProductScreenshots(productEntryId);
161 }
162
163 public static SCProductScreenshotLocalService getService() {
164 if (_service == null) {
165 _service = (SCProductScreenshotLocalService)PortalBeanLocatorUtil.locate(SCProductScreenshotLocalService.class.getName());
166
167 ReferenceRegistry.registerReference(SCProductScreenshotLocalServiceUtil.class,
168 "_service");
169 MethodCache.remove(SCProductScreenshotLocalService.class);
170 }
171
172 return _service;
173 }
174
175 public void setService(SCProductScreenshotLocalService service) {
176 MethodCache.remove(SCProductScreenshotLocalService.class);
177
178 _service = service;
179
180 ReferenceRegistry.registerReference(SCProductScreenshotLocalServiceUtil.class,
181 "_service");
182 MethodCache.remove(SCProductScreenshotLocalService.class);
183 }
184
185 private static SCProductScreenshotLocalService _service;
186 }