001
014
015 package com.liferay.portlet.softwarecatalog.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class SCProductVersionLocalServiceUtil {
033 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addSCProductVersion(
034 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
035 throws com.liferay.portal.kernel.exception.SystemException {
036 return getService().addSCProductVersion(scProductVersion);
037 }
038
039 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion createSCProductVersion(
040 long productVersionId) {
041 return getService().createSCProductVersion(productVersionId);
042 }
043
044 public static void deleteSCProductVersion(long productVersionId)
045 throws com.liferay.portal.kernel.exception.PortalException,
046 com.liferay.portal.kernel.exception.SystemException {
047 getService().deleteSCProductVersion(productVersionId);
048 }
049
050 public static void deleteSCProductVersion(
051 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
052 throws com.liferay.portal.kernel.exception.SystemException {
053 getService().deleteSCProductVersion(scProductVersion);
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.SCProductVersion getSCProductVersion(
087 long productVersionId)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException {
090 return getService().getSCProductVersion(productVersionId);
091 }
092
093 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
094 int start, int end)
095 throws com.liferay.portal.kernel.exception.SystemException {
096 return getService().getSCProductVersions(start, end);
097 }
098
099 public static int getSCProductVersionsCount()
100 throws com.liferay.portal.kernel.exception.SystemException {
101 return getService().getSCProductVersionsCount();
102 }
103
104 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
105 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().updateSCProductVersion(scProductVersion);
108 }
109
110 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
111 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion,
112 boolean merge)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getService().updateSCProductVersion(scProductVersion, merge);
115 }
116
117 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
118 long userId, long productEntryId, java.lang.String version,
119 java.lang.String changeLog, java.lang.String downloadPageURL,
120 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
121 boolean repoStoreArtifact, long[] frameworkVersionIds,
122 com.liferay.portal.service.ServiceContext serviceContext)
123 throws com.liferay.portal.kernel.exception.PortalException,
124 com.liferay.portal.kernel.exception.SystemException {
125 return getService()
126 .addProductVersion(userId, productEntryId, version,
127 changeLog, downloadPageURL, directDownloadURL,
128 testDirectDownloadURL, repoStoreArtifact, frameworkVersionIds,
129 serviceContext);
130 }
131
132 public static void deleteProductVersion(long productVersionId)
133 throws com.liferay.portal.kernel.exception.PortalException,
134 com.liferay.portal.kernel.exception.SystemException {
135 getService().deleteProductVersion(productVersionId);
136 }
137
138 public static void deleteProductVersion(
139 com.liferay.portlet.softwarecatalog.model.SCProductVersion productVersion)
140 throws com.liferay.portal.kernel.exception.SystemException {
141 getService().deleteProductVersion(productVersion);
142 }
143
144 public static void deleteProductVersions(long productEntryId)
145 throws com.liferay.portal.kernel.exception.SystemException {
146 getService().deleteProductVersions(productEntryId);
147 }
148
149 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersion(
150 long productVersionId)
151 throws com.liferay.portal.kernel.exception.PortalException,
152 com.liferay.portal.kernel.exception.SystemException {
153 return getService().getProductVersion(productVersionId);
154 }
155
156 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersionByDirectDownloadURL(
157 java.lang.String directDownloadURL)
158 throws com.liferay.portal.kernel.exception.PortalException,
159 com.liferay.portal.kernel.exception.SystemException {
160 return getService()
161 .getProductVersionByDirectDownloadURL(directDownloadURL);
162 }
163
164 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getProductVersions(
165 long productEntryId, int start, int end)
166 throws com.liferay.portal.kernel.exception.SystemException {
167 return getService().getProductVersions(productEntryId, start, end);
168 }
169
170 public static int getProductVersionsCount(long productEntryId)
171 throws com.liferay.portal.kernel.exception.SystemException {
172 return getService().getProductVersionsCount(productEntryId);
173 }
174
175 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateProductVersion(
176 long productVersionId, java.lang.String version,
177 java.lang.String changeLog, java.lang.String downloadPageURL,
178 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
179 boolean repoStoreArtifact, long[] frameworkVersionIds)
180 throws com.liferay.portal.kernel.exception.PortalException,
181 com.liferay.portal.kernel.exception.SystemException {
182 return getService()
183 .updateProductVersion(productVersionId, version, changeLog,
184 downloadPageURL, directDownloadURL, testDirectDownloadURL,
185 repoStoreArtifact, frameworkVersionIds);
186 }
187
188 public static SCProductVersionLocalService getService() {
189 if (_service == null) {
190 _service = (SCProductVersionLocalService)PortalBeanLocatorUtil.locate(SCProductVersionLocalService.class.getName());
191 }
192
193 return _service;
194 }
195
196 public void setService(SCProductVersionLocalService service) {
197 _service = service;
198 }
199
200 private static SCProductVersionLocalService _service;
201 }