001
014
015 package com.liferay.portlet.softwarecatalog.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class SCProductEntryLocalServiceUtil {
033 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addSCProductEntry(
034 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
035 throws com.liferay.portal.kernel.exception.SystemException {
036 return getService().addSCProductEntry(scProductEntry);
037 }
038
039 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry createSCProductEntry(
040 long productEntryId) {
041 return getService().createSCProductEntry(productEntryId);
042 }
043
044 public static void deleteSCProductEntry(long productEntryId)
045 throws com.liferay.portal.kernel.exception.PortalException,
046 com.liferay.portal.kernel.exception.SystemException {
047 getService().deleteSCProductEntry(productEntryId);
048 }
049
050 public static void deleteSCProductEntry(
051 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
052 throws com.liferay.portal.kernel.exception.SystemException {
053 getService().deleteSCProductEntry(scProductEntry);
054 }
055
056 @SuppressWarnings("unchecked")
057 public static java.util.List dynamicQuery(
058 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059 throws com.liferay.portal.kernel.exception.SystemException {
060 return getService().dynamicQuery(dynamicQuery);
061 }
062
063 @SuppressWarnings("unchecked")
064 public static java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException {
067 return getService().dynamicQuery(dynamicQuery, start, end);
068 }
069
070 @SuppressWarnings("unchecked")
071 public static java.util.List dynamicQuery(
072 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073 int end,
074 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075 throws com.liferay.portal.kernel.exception.SystemException {
076 return getService()
077 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
078 }
079
080 public static long dynamicQueryCount(
081 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082 throws com.liferay.portal.kernel.exception.SystemException {
083 return getService().dynamicQueryCount(dynamicQuery);
084 }
085
086 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getSCProductEntry(
087 long productEntryId)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException {
090 return getService().getSCProductEntry(productEntryId);
091 }
092
093 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
094 int start, int end)
095 throws com.liferay.portal.kernel.exception.SystemException {
096 return getService().getSCProductEntries(start, end);
097 }
098
099 public static int getSCProductEntriesCount()
100 throws com.liferay.portal.kernel.exception.SystemException {
101 return getService().getSCProductEntriesCount();
102 }
103
104 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
105 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().updateSCProductEntry(scProductEntry);
108 }
109
110 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
111 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
112 boolean merge)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getService().updateSCProductEntry(scProductEntry, merge);
115 }
116
117 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
118 long userId, java.lang.String name, java.lang.String type,
119 java.lang.String tags, java.lang.String shortDescription,
120 java.lang.String longDescription, java.lang.String pageURL,
121 java.lang.String author, java.lang.String repoGroupId,
122 java.lang.String repoArtifactId, long[] licenseIds,
123 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
124 com.liferay.portal.service.ServiceContext serviceContext)
125 throws com.liferay.portal.kernel.exception.PortalException,
126 com.liferay.portal.kernel.exception.SystemException {
127 return getService()
128 .addProductEntry(userId, name, type, tags, shortDescription,
129 longDescription, pageURL, author, repoGroupId, repoArtifactId,
130 licenseIds, thumbnails, fullImages, serviceContext);
131 }
132
133 public static void addProductEntryResources(long productEntryId,
134 boolean addCommunityPermissions, boolean addGuestPermissions)
135 throws com.liferay.portal.kernel.exception.PortalException,
136 com.liferay.portal.kernel.exception.SystemException {
137 getService()
138 .addProductEntryResources(productEntryId, addCommunityPermissions,
139 addGuestPermissions);
140 }
141
142 public static void addProductEntryResources(long productEntryId,
143 java.lang.String[] communityPermissions,
144 java.lang.String[] guestPermissions)
145 throws com.liferay.portal.kernel.exception.PortalException,
146 com.liferay.portal.kernel.exception.SystemException {
147 getService()
148 .addProductEntryResources(productEntryId, communityPermissions,
149 guestPermissions);
150 }
151
152 public static void addProductEntryResources(
153 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
154 boolean addCommunityPermissions, boolean addGuestPermissions)
155 throws com.liferay.portal.kernel.exception.PortalException,
156 com.liferay.portal.kernel.exception.SystemException {
157 getService()
158 .addProductEntryResources(productEntry, addCommunityPermissions,
159 addGuestPermissions);
160 }
161
162 public static void addProductEntryResources(
163 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
164 java.lang.String[] communityPermissions,
165 java.lang.String[] guestPermissions)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException {
168 getService()
169 .addProductEntryResources(productEntry, communityPermissions,
170 guestPermissions);
171 }
172
173 public static void deleteProductEntries(long groupId)
174 throws com.liferay.portal.kernel.exception.PortalException,
175 com.liferay.portal.kernel.exception.SystemException {
176 getService().deleteProductEntries(groupId);
177 }
178
179 public static void deleteProductEntry(long productEntryId)
180 throws com.liferay.portal.kernel.exception.PortalException,
181 com.liferay.portal.kernel.exception.SystemException {
182 getService().deleteProductEntry(productEntryId);
183 }
184
185 public static void deleteProductEntry(
186 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
187 throws com.liferay.portal.kernel.exception.PortalException,
188 com.liferay.portal.kernel.exception.SystemException {
189 getService().deleteProductEntry(productEntry);
190 }
191
192 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getCompanyProductEntries(
193 long companyId, int start, int end)
194 throws com.liferay.portal.kernel.exception.SystemException {
195 return getService().getCompanyProductEntries(companyId, start, end);
196 }
197
198 public static int getCompanyProductEntriesCount(long companyId)
199 throws com.liferay.portal.kernel.exception.SystemException {
200 return getService().getCompanyProductEntriesCount(companyId);
201 }
202
203 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
204 long groupId, int start, int end)
205 throws com.liferay.portal.kernel.exception.SystemException {
206 return getService().getProductEntries(groupId, start, end);
207 }
208
209 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
210 long groupId, int start, int end,
211 com.liferay.portal.kernel.util.OrderByComparator obc)
212 throws com.liferay.portal.kernel.exception.SystemException {
213 return getService().getProductEntries(groupId, start, end, obc);
214 }
215
216 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
217 long groupId, long userId, int start, int end)
218 throws com.liferay.portal.kernel.exception.SystemException {
219 return getService().getProductEntries(groupId, userId, start, end);
220 }
221
222 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
223 long groupId, long userId, int start, int end,
224 com.liferay.portal.kernel.util.OrderByComparator obc)
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getService().getProductEntries(groupId, userId, start, end, obc);
227 }
228
229 public static int getProductEntriesCount(long groupId)
230 throws com.liferay.portal.kernel.exception.SystemException {
231 return getService().getProductEntriesCount(groupId);
232 }
233
234 public static int getProductEntriesCount(long groupId, long userId)
235 throws com.liferay.portal.kernel.exception.SystemException {
236 return getService().getProductEntriesCount(groupId, userId);
237 }
238
239 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
240 long productEntryId)
241 throws com.liferay.portal.kernel.exception.PortalException,
242 com.liferay.portal.kernel.exception.SystemException {
243 return getService().getProductEntry(productEntryId);
244 }
245
246 public static java.lang.String getRepositoryXML(long groupId,
247 java.lang.String baseImageURL, java.util.Date oldestDate,
248 int maxNumOfVersions, java.util.Properties repoSettings)
249 throws com.liferay.portal.kernel.exception.SystemException {
250 return getService()
251 .getRepositoryXML(groupId, baseImageURL, oldestDate,
252 maxNumOfVersions, repoSettings);
253 }
254
255 public static java.lang.String getRepositoryXML(long groupId,
256 java.lang.String version, java.lang.String baseImageURL,
257 java.util.Date oldestDate, int maxNumOfVersions,
258 java.util.Properties repoSettings)
259 throws com.liferay.portal.kernel.exception.SystemException {
260 return getService()
261 .getRepositoryXML(groupId, version, baseImageURL,
262 oldestDate, maxNumOfVersions, repoSettings);
263 }
264
265 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
266 long productEntryId, java.lang.String name, java.lang.String type,
267 java.lang.String tags, java.lang.String shortDescription,
268 java.lang.String longDescription, java.lang.String pageURL,
269 java.lang.String author, java.lang.String repoGroupId,
270 java.lang.String repoArtifactId, long[] licenseIds,
271 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
272 throws com.liferay.portal.kernel.exception.PortalException,
273 com.liferay.portal.kernel.exception.SystemException {
274 return getService()
275 .updateProductEntry(productEntryId, name, type, tags,
276 shortDescription, longDescription, pageURL, author, repoGroupId,
277 repoArtifactId, licenseIds, thumbnails, fullImages);
278 }
279
280 public static SCProductEntryLocalService getService() {
281 if (_service == null) {
282 _service = (SCProductEntryLocalService)PortalBeanLocatorUtil.locate(SCProductEntryLocalService.class.getName());
283 }
284
285 return _service;
286 }
287
288 public void setService(SCProductEntryLocalService service) {
289 _service = service;
290 }
291
292 private static SCProductEntryLocalService _service;
293 }