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