1
14
15 package com.liferay.portlet.softwarecatalog.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class SCProductEntryLocalServiceUtil {
40 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addSCProductEntry(
41 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
42 throws com.liferay.portal.kernel.exception.SystemException {
43 return getService().addSCProductEntry(scProductEntry);
44 }
45
46 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry createSCProductEntry(
47 long productEntryId) {
48 return getService().createSCProductEntry(productEntryId);
49 }
50
51 public static void deleteSCProductEntry(long productEntryId)
52 throws com.liferay.portal.kernel.exception.PortalException,
53 com.liferay.portal.kernel.exception.SystemException {
54 getService().deleteSCProductEntry(productEntryId);
55 }
56
57 public static void deleteSCProductEntry(
58 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
59 throws com.liferay.portal.kernel.exception.SystemException {
60 getService().deleteSCProductEntry(scProductEntry);
61 }
62
63 public static java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.kernel.exception.SystemException {
66 return getService().dynamicQuery(dynamicQuery);
67 }
68
69 public static java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException {
72 return getService().dynamicQuery(dynamicQuery, start, end);
73 }
74
75 public static java.util.List<Object> dynamicQuery(
76 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77 int end,
78 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79 throws com.liferay.portal.kernel.exception.SystemException {
80 return getService()
81 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
82 }
83
84 public static int dynamicQueryCount(
85 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86 throws com.liferay.portal.kernel.exception.SystemException {
87 return getService().dynamicQueryCount(dynamicQuery);
88 }
89
90 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getSCProductEntry(
91 long productEntryId)
92 throws com.liferay.portal.kernel.exception.PortalException,
93 com.liferay.portal.kernel.exception.SystemException {
94 return getService().getSCProductEntry(productEntryId);
95 }
96
97 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
98 int start, int end)
99 throws com.liferay.portal.kernel.exception.SystemException {
100 return getService().getSCProductEntries(start, end);
101 }
102
103 public static int getSCProductEntriesCount()
104 throws com.liferay.portal.kernel.exception.SystemException {
105 return getService().getSCProductEntriesCount();
106 }
107
108 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
109 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().updateSCProductEntry(scProductEntry);
112 }
113
114 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
115 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
116 boolean merge)
117 throws com.liferay.portal.kernel.exception.SystemException {
118 return getService().updateSCProductEntry(scProductEntry, merge);
119 }
120
121 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
122 long userId, java.lang.String name, java.lang.String type,
123 java.lang.String tags, java.lang.String shortDescription,
124 java.lang.String longDescription, java.lang.String pageURL,
125 java.lang.String author, java.lang.String repoGroupId,
126 java.lang.String repoArtifactId, long[] licenseIds,
127 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
128 com.liferay.portal.service.ServiceContext serviceContext)
129 throws com.liferay.portal.kernel.exception.PortalException,
130 com.liferay.portal.kernel.exception.SystemException {
131 return getService()
132 .addProductEntry(userId, name, type, tags, shortDescription,
133 longDescription, pageURL, author, repoGroupId, repoArtifactId,
134 licenseIds, thumbnails, fullImages, serviceContext);
135 }
136
137 public static void addProductEntryResources(long productEntryId,
138 boolean addCommunityPermissions, boolean addGuestPermissions)
139 throws com.liferay.portal.kernel.exception.PortalException,
140 com.liferay.portal.kernel.exception.SystemException {
141 getService()
142 .addProductEntryResources(productEntryId, addCommunityPermissions,
143 addGuestPermissions);
144 }
145
146 public static void addProductEntryResources(long productEntryId,
147 java.lang.String[] communityPermissions,
148 java.lang.String[] guestPermissions)
149 throws com.liferay.portal.kernel.exception.PortalException,
150 com.liferay.portal.kernel.exception.SystemException {
151 getService()
152 .addProductEntryResources(productEntryId, communityPermissions,
153 guestPermissions);
154 }
155
156 public static void addProductEntryResources(
157 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
158 boolean addCommunityPermissions, boolean addGuestPermissions)
159 throws com.liferay.portal.kernel.exception.PortalException,
160 com.liferay.portal.kernel.exception.SystemException {
161 getService()
162 .addProductEntryResources(productEntry, addCommunityPermissions,
163 addGuestPermissions);
164 }
165
166 public static void addProductEntryResources(
167 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
168 java.lang.String[] communityPermissions,
169 java.lang.String[] guestPermissions)
170 throws com.liferay.portal.kernel.exception.PortalException,
171 com.liferay.portal.kernel.exception.SystemException {
172 getService()
173 .addProductEntryResources(productEntry, communityPermissions,
174 guestPermissions);
175 }
176
177 public static void deleteProductEntries(long groupId)
178 throws com.liferay.portal.kernel.exception.PortalException,
179 com.liferay.portal.kernel.exception.SystemException {
180 getService().deleteProductEntries(groupId);
181 }
182
183 public static void deleteProductEntry(long productEntryId)
184 throws com.liferay.portal.kernel.exception.PortalException,
185 com.liferay.portal.kernel.exception.SystemException {
186 getService().deleteProductEntry(productEntryId);
187 }
188
189 public static void deleteProductEntry(
190 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
191 throws com.liferay.portal.kernel.exception.PortalException,
192 com.liferay.portal.kernel.exception.SystemException {
193 getService().deleteProductEntry(productEntry);
194 }
195
196 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getCompanyProductEntries(
197 long companyId, int start, int end)
198 throws com.liferay.portal.kernel.exception.SystemException {
199 return getService().getCompanyProductEntries(companyId, start, end);
200 }
201
202 public static int getCompanyProductEntriesCount(long companyId)
203 throws com.liferay.portal.kernel.exception.SystemException {
204 return getService().getCompanyProductEntriesCount(companyId);
205 }
206
207 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
208 long groupId, int start, int end)
209 throws com.liferay.portal.kernel.exception.SystemException {
210 return getService().getProductEntries(groupId, start, end);
211 }
212
213 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
214 long groupId, int start, int end,
215 com.liferay.portal.kernel.util.OrderByComparator obc)
216 throws com.liferay.portal.kernel.exception.SystemException {
217 return getService().getProductEntries(groupId, start, end, obc);
218 }
219
220 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
221 long groupId, long userId, int start, int end)
222 throws com.liferay.portal.kernel.exception.SystemException {
223 return getService().getProductEntries(groupId, userId, start, end);
224 }
225
226 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
227 long groupId, long userId, int start, int end,
228 com.liferay.portal.kernel.util.OrderByComparator obc)
229 throws com.liferay.portal.kernel.exception.SystemException {
230 return getService().getProductEntries(groupId, userId, start, end, obc);
231 }
232
233 public static int getProductEntriesCount(long groupId)
234 throws com.liferay.portal.kernel.exception.SystemException {
235 return getService().getProductEntriesCount(groupId);
236 }
237
238 public static int getProductEntriesCount(long groupId, long userId)
239 throws com.liferay.portal.kernel.exception.SystemException {
240 return getService().getProductEntriesCount(groupId, userId);
241 }
242
243 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
244 long productEntryId)
245 throws com.liferay.portal.kernel.exception.PortalException,
246 com.liferay.portal.kernel.exception.SystemException {
247 return getService().getProductEntry(productEntryId);
248 }
249
250 public static java.lang.String getRepositoryXML(long groupId,
251 java.lang.String baseImageURL, java.util.Date oldestDate,
252 int maxNumOfVersions, java.util.Properties repoSettings)
253 throws com.liferay.portal.kernel.exception.SystemException {
254 return getService()
255 .getRepositoryXML(groupId, baseImageURL, oldestDate,
256 maxNumOfVersions, repoSettings);
257 }
258
259 public static java.lang.String getRepositoryXML(long groupId,
260 java.lang.String version, java.lang.String baseImageURL,
261 java.util.Date oldestDate, int maxNumOfVersions,
262 java.util.Properties repoSettings)
263 throws com.liferay.portal.kernel.exception.SystemException {
264 return getService()
265 .getRepositoryXML(groupId, version, baseImageURL,
266 oldestDate, maxNumOfVersions, repoSettings);
267 }
268
269 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
270 long productEntryId, java.lang.String name, java.lang.String type,
271 java.lang.String tags, java.lang.String shortDescription,
272 java.lang.String longDescription, java.lang.String pageURL,
273 java.lang.String author, java.lang.String repoGroupId,
274 java.lang.String repoArtifactId, long[] licenseIds,
275 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
276 throws com.liferay.portal.kernel.exception.PortalException,
277 com.liferay.portal.kernel.exception.SystemException {
278 return getService()
279 .updateProductEntry(productEntryId, name, type, tags,
280 shortDescription, longDescription, pageURL, author, repoGroupId,
281 repoArtifactId, licenseIds, thumbnails, fullImages);
282 }
283
284 public static SCProductEntryLocalService getService() {
285 if (_service == null) {
286 _service = (SCProductEntryLocalService)PortalBeanLocatorUtil.locate(SCProductEntryLocalService.class.getName());
287 }
288
289 return _service;
290 }
291
292 public void setService(SCProductEntryLocalService service) {
293 _service = service;
294 }
295
296 private static SCProductEntryLocalService _service;
297 }