1
22
23 package com.liferay.portlet.softwarecatalog.service;
24
25
26
53 public class SCProductEntryLocalServiceUtil {
54 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addSCProductEntry(
55 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
56 throws com.liferay.portal.SystemException {
57 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
58
59 return scProductEntryLocalService.addSCProductEntry(scProductEntry);
60 }
61
62 public static void deleteSCProductEntry(long productEntryId)
63 throws com.liferay.portal.PortalException,
64 com.liferay.portal.SystemException {
65 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
66
67 scProductEntryLocalService.deleteSCProductEntry(productEntryId);
68 }
69
70 public static void deleteSCProductEntry(
71 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
72 throws com.liferay.portal.SystemException {
73 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
74
75 scProductEntryLocalService.deleteSCProductEntry(scProductEntry);
76 }
77
78 public static java.util.List<Object> dynamicQuery(
79 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
80 throws com.liferay.portal.SystemException {
81 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
82
83 return scProductEntryLocalService.dynamicQuery(dynamicQuery);
84 }
85
86 public static java.util.List<Object> dynamicQuery(
87 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
88 int end) throws com.liferay.portal.SystemException {
89 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
90
91 return scProductEntryLocalService.dynamicQuery(dynamicQuery, start, end);
92 }
93
94 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getSCProductEntry(
95 long productEntryId)
96 throws com.liferay.portal.PortalException,
97 com.liferay.portal.SystemException {
98 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
99
100 return scProductEntryLocalService.getSCProductEntry(productEntryId);
101 }
102
103 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
104 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
105 throws com.liferay.portal.SystemException {
106 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
107
108 return scProductEntryLocalService.updateSCProductEntry(scProductEntry);
109 }
110
111 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
112 long userId, long plid, java.lang.String name, java.lang.String type,
113 java.lang.String tags, java.lang.String shortDescription,
114 java.lang.String longDescription, java.lang.String pageURL,
115 java.lang.String author, java.lang.String repoGroupId,
116 java.lang.String repoArtifactId, long[] licenseIds,
117 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
118 boolean addCommunityPermissions, boolean addGuestPermissions)
119 throws com.liferay.portal.PortalException,
120 com.liferay.portal.SystemException {
121 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
122
123 return scProductEntryLocalService.addProductEntry(userId, plid, name,
124 type, tags, shortDescription, longDescription, pageURL, author,
125 repoGroupId, repoArtifactId, licenseIds, thumbnails, fullImages,
126 addCommunityPermissions, addGuestPermissions);
127 }
128
129 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
130 long userId, long plid, java.lang.String name, java.lang.String type,
131 java.lang.String tags, java.lang.String shortDescription,
132 java.lang.String longDescription, java.lang.String pageURL,
133 java.lang.String author, java.lang.String repoGroupId,
134 java.lang.String repoArtifactId, long[] licenseIds,
135 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
136 java.lang.String[] communityPermissions,
137 java.lang.String[] guestPermissions)
138 throws com.liferay.portal.PortalException,
139 com.liferay.portal.SystemException {
140 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
141
142 return scProductEntryLocalService.addProductEntry(userId, plid, name,
143 type, tags, shortDescription, longDescription, pageURL, author,
144 repoGroupId, repoArtifactId, licenseIds, thumbnails, fullImages,
145 communityPermissions, guestPermissions);
146 }
147
148 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
149 long userId, long plid, java.lang.String name, java.lang.String type,
150 java.lang.String tags, java.lang.String shortDescription,
151 java.lang.String longDescription, java.lang.String pageURL,
152 java.lang.String author, java.lang.String repoGroupId,
153 java.lang.String repoArtifactId, long[] licenseIds,
154 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
155 java.lang.Boolean addCommunityPermissions,
156 java.lang.Boolean addGuestPermissions,
157 java.lang.String[] communityPermissions,
158 java.lang.String[] guestPermissions)
159 throws com.liferay.portal.PortalException,
160 com.liferay.portal.SystemException {
161 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
162
163 return scProductEntryLocalService.addProductEntry(userId, plid, name,
164 type, tags, shortDescription, longDescription, pageURL, author,
165 repoGroupId, repoArtifactId, licenseIds, thumbnails, fullImages,
166 addCommunityPermissions, addGuestPermissions, communityPermissions,
167 guestPermissions);
168 }
169
170 public static void addProductEntryResources(long productEntryId,
171 boolean addCommunityPermissions, boolean addGuestPermissions)
172 throws com.liferay.portal.PortalException,
173 com.liferay.portal.SystemException {
174 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
175
176 scProductEntryLocalService.addProductEntryResources(productEntryId,
177 addCommunityPermissions, addGuestPermissions);
178 }
179
180 public static void addProductEntryResources(
181 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
182 boolean addCommunityPermissions, boolean addGuestPermissions)
183 throws com.liferay.portal.PortalException,
184 com.liferay.portal.SystemException {
185 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
186
187 scProductEntryLocalService.addProductEntryResources(productEntry,
188 addCommunityPermissions, addGuestPermissions);
189 }
190
191 public static void addProductEntryResources(long productEntryId,
192 java.lang.String[] communityPermissions,
193 java.lang.String[] guestPermissions)
194 throws com.liferay.portal.PortalException,
195 com.liferay.portal.SystemException {
196 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
197
198 scProductEntryLocalService.addProductEntryResources(productEntryId,
199 communityPermissions, guestPermissions);
200 }
201
202 public static void addProductEntryResources(
203 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
204 java.lang.String[] communityPermissions,
205 java.lang.String[] guestPermissions)
206 throws com.liferay.portal.PortalException,
207 com.liferay.portal.SystemException {
208 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
209
210 scProductEntryLocalService.addProductEntryResources(productEntry,
211 communityPermissions, guestPermissions);
212 }
213
214 public static void deleteProductEntries(long groupId)
215 throws com.liferay.portal.PortalException,
216 com.liferay.portal.SystemException {
217 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
218
219 scProductEntryLocalService.deleteProductEntries(groupId);
220 }
221
222 public static void deleteProductEntry(long productEntryId)
223 throws com.liferay.portal.PortalException,
224 com.liferay.portal.SystemException {
225 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
226
227 scProductEntryLocalService.deleteProductEntry(productEntryId);
228 }
229
230 public static void deleteProductEntry(
231 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
232 throws com.liferay.portal.PortalException,
233 com.liferay.portal.SystemException {
234 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
235
236 scProductEntryLocalService.deleteProductEntry(productEntry);
237 }
238
239 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
240 long productEntryId)
241 throws com.liferay.portal.PortalException,
242 com.liferay.portal.SystemException {
243 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
244
245 return scProductEntryLocalService.getProductEntry(productEntryId);
246 }
247
248 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
249 long groupId, int start, int end)
250 throws com.liferay.portal.SystemException {
251 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
252
253 return scProductEntryLocalService.getProductEntries(groupId, start, end);
254 }
255
256 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
257 long groupId, int start, int end,
258 com.liferay.portal.kernel.util.OrderByComparator obc)
259 throws com.liferay.portal.SystemException {
260 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
261
262 return scProductEntryLocalService.getProductEntries(groupId, start,
263 end, obc);
264 }
265
266 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
267 long groupId, long userId, int start, int end)
268 throws com.liferay.portal.SystemException {
269 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
270
271 return scProductEntryLocalService.getProductEntries(groupId, userId,
272 start, end);
273 }
274
275 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
276 long groupId, long userId, int start, int end,
277 com.liferay.portal.kernel.util.OrderByComparator obc)
278 throws com.liferay.portal.SystemException {
279 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
280
281 return scProductEntryLocalService.getProductEntries(groupId, userId,
282 start, end, obc);
283 }
284
285 public static int getProductEntriesCount(long groupId)
286 throws com.liferay.portal.SystemException {
287 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
288
289 return scProductEntryLocalService.getProductEntriesCount(groupId);
290 }
291
292 public static int getProductEntriesCount(long groupId, long userId)
293 throws com.liferay.portal.SystemException {
294 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
295
296 return scProductEntryLocalService.getProductEntriesCount(groupId, userId);
297 }
298
299 public static java.lang.String getRepositoryXML(long groupId,
300 java.lang.String baseImageURL, java.util.Date oldestDate,
301 int maxNumOfVersions, java.util.Properties repoSettings)
302 throws com.liferay.portal.PortalException,
303 com.liferay.portal.SystemException {
304 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
305
306 return scProductEntryLocalService.getRepositoryXML(groupId,
307 baseImageURL, oldestDate, maxNumOfVersions, repoSettings);
308 }
309
310 public static java.lang.String getRepositoryXML(long groupId,
311 java.lang.String version, java.lang.String baseImageURL,
312 java.util.Date oldestDate, int maxNumOfVersions,
313 java.util.Properties repoSettings)
314 throws com.liferay.portal.PortalException,
315 com.liferay.portal.SystemException {
316 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
317
318 return scProductEntryLocalService.getRepositoryXML(groupId, version,
319 baseImageURL, oldestDate, maxNumOfVersions, repoSettings);
320 }
321
322 public static void reIndex(java.lang.String[] ids)
323 throws com.liferay.portal.SystemException {
324 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
325
326 scProductEntryLocalService.reIndex(ids);
327 }
328
329 public static com.liferay.portal.kernel.search.Hits search(long companyId,
330 long groupId, java.lang.String keywords, java.lang.String type,
331 int start, int end) throws com.liferay.portal.SystemException {
332 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
333
334 return scProductEntryLocalService.search(companyId, groupId, keywords,
335 type, start, end);
336 }
337
338 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
339 long productEntryId, java.lang.String name, java.lang.String type,
340 java.lang.String tags, java.lang.String shortDescription,
341 java.lang.String longDescription, java.lang.String pageURL,
342 java.lang.String author, java.lang.String repoGroupId,
343 java.lang.String repoArtifactId, long[] licenseIds,
344 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
345 throws com.liferay.portal.PortalException,
346 com.liferay.portal.SystemException {
347 SCProductEntryLocalService scProductEntryLocalService = SCProductEntryLocalServiceFactory.getService();
348
349 return scProductEntryLocalService.updateProductEntry(productEntryId,
350 name, type, tags, shortDescription, longDescription, pageURL,
351 author, repoGroupId, repoArtifactId, licenseIds, thumbnails,
352 fullImages);
353 }
354 }