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