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.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.PortalException,
53 com.liferay.portal.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.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.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.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.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.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.PortalException,
93 com.liferay.portal.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) throws com.liferay.portal.SystemException {
99 return getService().getSCProductEntries(start, end);
100 }
101
102 public static int getSCProductEntriesCount()
103 throws com.liferay.portal.SystemException {
104 return getService().getSCProductEntriesCount();
105 }
106
107 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
108 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
109 throws com.liferay.portal.SystemException {
110 return getService().updateSCProductEntry(scProductEntry);
111 }
112
113 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
114 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
115 boolean merge) throws com.liferay.portal.SystemException {
116 return getService().updateSCProductEntry(scProductEntry, merge);
117 }
118
119 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
120 long userId, java.lang.String name, java.lang.String type,
121 java.lang.String tags, java.lang.String shortDescription,
122 java.lang.String longDescription, java.lang.String pageURL,
123 java.lang.String author, java.lang.String repoGroupId,
124 java.lang.String repoArtifactId, long[] licenseIds,
125 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
126 com.liferay.portal.service.ServiceContext serviceContext)
127 throws com.liferay.portal.PortalException,
128 com.liferay.portal.SystemException {
129 return getService()
130 .addProductEntry(userId, name, type, tags, shortDescription,
131 longDescription, pageURL, author, repoGroupId, repoArtifactId,
132 licenseIds, thumbnails, fullImages, serviceContext);
133 }
134
135 public static void addProductEntryResources(long productEntryId,
136 boolean addCommunityPermissions, boolean addGuestPermissions)
137 throws com.liferay.portal.PortalException,
138 com.liferay.portal.SystemException {
139 getService()
140 .addProductEntryResources(productEntryId, addCommunityPermissions,
141 addGuestPermissions);
142 }
143
144 public static void addProductEntryResources(long productEntryId,
145 java.lang.String[] communityPermissions,
146 java.lang.String[] guestPermissions)
147 throws com.liferay.portal.PortalException,
148 com.liferay.portal.SystemException {
149 getService()
150 .addProductEntryResources(productEntryId, communityPermissions,
151 guestPermissions);
152 }
153
154 public static void addProductEntryResources(
155 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
156 boolean addCommunityPermissions, boolean addGuestPermissions)
157 throws com.liferay.portal.PortalException,
158 com.liferay.portal.SystemException {
159 getService()
160 .addProductEntryResources(productEntry, addCommunityPermissions,
161 addGuestPermissions);
162 }
163
164 public static void addProductEntryResources(
165 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
166 java.lang.String[] communityPermissions,
167 java.lang.String[] guestPermissions)
168 throws com.liferay.portal.PortalException,
169 com.liferay.portal.SystemException {
170 getService()
171 .addProductEntryResources(productEntry, communityPermissions,
172 guestPermissions);
173 }
174
175 public static void deleteProductEntries(long groupId)
176 throws com.liferay.portal.PortalException,
177 com.liferay.portal.SystemException {
178 getService().deleteProductEntries(groupId);
179 }
180
181 public static void deleteProductEntry(long productEntryId)
182 throws com.liferay.portal.PortalException,
183 com.liferay.portal.SystemException {
184 getService().deleteProductEntry(productEntryId);
185 }
186
187 public static void deleteProductEntry(
188 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
189 throws com.liferay.portal.PortalException,
190 com.liferay.portal.SystemException {
191 getService().deleteProductEntry(productEntry);
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 com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
231 long productEntryId)
232 throws com.liferay.portal.PortalException,
233 com.liferay.portal.SystemException {
234 return getService().getProductEntry(productEntryId);
235 }
236
237 public static java.lang.String getRepositoryXML(long groupId,
238 java.lang.String baseImageURL, java.util.Date oldestDate,
239 int maxNumOfVersions, java.util.Properties repoSettings)
240 throws com.liferay.portal.SystemException {
241 return getService()
242 .getRepositoryXML(groupId, baseImageURL, oldestDate,
243 maxNumOfVersions, repoSettings);
244 }
245
246 public static java.lang.String getRepositoryXML(long groupId,
247 java.lang.String version, java.lang.String baseImageURL,
248 java.util.Date oldestDate, int maxNumOfVersions,
249 java.util.Properties repoSettings)
250 throws com.liferay.portal.SystemException {
251 return getService()
252 .getRepositoryXML(groupId, version, baseImageURL,
253 oldestDate, maxNumOfVersions, repoSettings);
254 }
255
256 public static void reIndex(long productEntryId)
257 throws com.liferay.portal.SystemException {
258 getService().reIndex(productEntryId);
259 }
260
261 public static void reIndex(
262 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
263 throws com.liferay.portal.SystemException {
264 getService().reIndex(productEntry);
265 }
266
267 public static void reIndex(java.lang.String[] ids)
268 throws com.liferay.portal.SystemException {
269 getService().reIndex(ids);
270 }
271
272 public static com.liferay.portal.kernel.search.Hits search(long companyId,
273 long groupId, java.lang.String keywords, java.lang.String type,
274 int start, int end) throws com.liferay.portal.SystemException {
275 return getService()
276 .search(companyId, groupId, keywords, type, start, end);
277 }
278
279 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
280 long productEntryId, java.lang.String name, java.lang.String type,
281 java.lang.String tags, java.lang.String shortDescription,
282 java.lang.String longDescription, java.lang.String pageURL,
283 java.lang.String author, java.lang.String repoGroupId,
284 java.lang.String repoArtifactId, long[] licenseIds,
285 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
286 throws com.liferay.portal.PortalException,
287 com.liferay.portal.SystemException {
288 return getService()
289 .updateProductEntry(productEntryId, name, type, tags,
290 shortDescription, longDescription, pageURL, author, repoGroupId,
291 repoArtifactId, licenseIds, thumbnails, fullImages);
292 }
293
294 public static SCProductEntryLocalService getService() {
295 if (_service == null) {
296 _service = (SCProductEntryLocalService)PortalBeanLocatorUtil.locate(SCProductEntryLocalService.class.getName());
297 }
298
299 return _service;
300 }
301
302 public void setService(SCProductEntryLocalService service) {
303 _service = service;
304 }
305
306 private static SCProductEntryLocalService _service;
307 }