1
14
15 package com.liferay.portlet.softwarecatalog.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class SCProductVersionLocalServiceUtil {
40 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addSCProductVersion(
41 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
42 throws com.liferay.portal.kernel.exception.SystemException {
43 return getService().addSCProductVersion(scProductVersion);
44 }
45
46 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion createSCProductVersion(
47 long productVersionId) {
48 return getService().createSCProductVersion(productVersionId);
49 }
50
51 public static void deleteSCProductVersion(long productVersionId)
52 throws com.liferay.portal.kernel.exception.PortalException,
53 com.liferay.portal.kernel.exception.SystemException {
54 getService().deleteSCProductVersion(productVersionId);
55 }
56
57 public static void deleteSCProductVersion(
58 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
59 throws com.liferay.portal.kernel.exception.SystemException {
60 getService().deleteSCProductVersion(scProductVersion);
61 }
62
63 public static java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.SystemException {
87 return getService().dynamicQueryCount(dynamicQuery);
88 }
89
90 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getSCProductVersion(
91 long productVersionId)
92 throws com.liferay.portal.kernel.exception.PortalException,
93 com.liferay.portal.kernel.exception.SystemException {
94 return getService().getSCProductVersion(productVersionId);
95 }
96
97 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
98 int start, int end)
99 throws com.liferay.portal.kernel.exception.SystemException {
100 return getService().getSCProductVersions(start, end);
101 }
102
103 public static int getSCProductVersionsCount()
104 throws com.liferay.portal.kernel.exception.SystemException {
105 return getService().getSCProductVersionsCount();
106 }
107
108 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
109 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().updateSCProductVersion(scProductVersion);
112 }
113
114 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
115 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion,
116 boolean merge)
117 throws com.liferay.portal.kernel.exception.SystemException {
118 return getService().updateSCProductVersion(scProductVersion, merge);
119 }
120
121 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
122 long userId, long productEntryId, java.lang.String version,
123 java.lang.String changeLog, java.lang.String downloadPageURL,
124 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
125 boolean repoStoreArtifact, long[] frameworkVersionIds,
126 com.liferay.portal.service.ServiceContext serviceContext)
127 throws com.liferay.portal.kernel.exception.PortalException,
128 com.liferay.portal.kernel.exception.SystemException {
129 return getService()
130 .addProductVersion(userId, productEntryId, version,
131 changeLog, downloadPageURL, directDownloadURL,
132 testDirectDownloadURL, repoStoreArtifact, frameworkVersionIds,
133 serviceContext);
134 }
135
136 public static void deleteProductVersion(long productVersionId)
137 throws com.liferay.portal.kernel.exception.PortalException,
138 com.liferay.portal.kernel.exception.SystemException {
139 getService().deleteProductVersion(productVersionId);
140 }
141
142 public static void deleteProductVersion(
143 com.liferay.portlet.softwarecatalog.model.SCProductVersion productVersion)
144 throws com.liferay.portal.kernel.exception.SystemException {
145 getService().deleteProductVersion(productVersion);
146 }
147
148 public static void deleteProductVersions(long productEntryId)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 getService().deleteProductVersions(productEntryId);
151 }
152
153 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersion(
154 long productVersionId)
155 throws com.liferay.portal.kernel.exception.PortalException,
156 com.liferay.portal.kernel.exception.SystemException {
157 return getService().getProductVersion(productVersionId);
158 }
159
160 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersionByDirectDownloadURL(
161 java.lang.String directDownloadURL)
162 throws com.liferay.portal.kernel.exception.PortalException,
163 com.liferay.portal.kernel.exception.SystemException {
164 return getService()
165 .getProductVersionByDirectDownloadURL(directDownloadURL);
166 }
167
168 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getProductVersions(
169 long productEntryId, int start, int end)
170 throws com.liferay.portal.kernel.exception.SystemException {
171 return getService().getProductVersions(productEntryId, start, end);
172 }
173
174 public static int getProductVersionsCount(long productEntryId)
175 throws com.liferay.portal.kernel.exception.SystemException {
176 return getService().getProductVersionsCount(productEntryId);
177 }
178
179 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateProductVersion(
180 long productVersionId, java.lang.String version,
181 java.lang.String changeLog, java.lang.String downloadPageURL,
182 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
183 boolean repoStoreArtifact, long[] frameworkVersionIds)
184 throws com.liferay.portal.kernel.exception.PortalException,
185 com.liferay.portal.kernel.exception.SystemException {
186 return getService()
187 .updateProductVersion(productVersionId, version, changeLog,
188 downloadPageURL, directDownloadURL, testDirectDownloadURL,
189 repoStoreArtifact, frameworkVersionIds);
190 }
191
192 public static SCProductVersionLocalService getService() {
193 if (_service == null) {
194 _service = (SCProductVersionLocalService)PortalBeanLocatorUtil.locate(SCProductVersionLocalService.class.getName());
195 }
196
197 return _service;
198 }
199
200 public void setService(SCProductVersionLocalService service) {
201 _service = service;
202 }
203
204 private static SCProductVersionLocalService _service;
205 }