1
22
23 package com.liferay.portlet.softwarecatalog.service;
24
25
51 public class SCProductVersionLocalServiceUtil {
52 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addSCProductVersion(
53 com.liferay.portlet.softwarecatalog.model.SCProductVersion model)
54 throws com.liferay.portal.SystemException {
55 SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
56
57 return scProductVersionLocalService.addSCProductVersion(model);
58 }
59
60 public static java.util.List dynamicQuery(
61 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
62 throws com.liferay.portal.SystemException {
63 SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
64
65 return scProductVersionLocalService.dynamicQuery(queryInitializer);
66 }
67
68 public static java.util.List dynamicQuery(
69 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
70 int begin, int end) throws com.liferay.portal.SystemException {
71 SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
72
73 return scProductVersionLocalService.dynamicQuery(queryInitializer,
74 begin, end);
75 }
76
77 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
78 com.liferay.portlet.softwarecatalog.model.SCProductVersion model)
79 throws com.liferay.portal.SystemException {
80 SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
81
82 return scProductVersionLocalService.updateSCProductVersion(model);
83 }
84
85 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
86 long userId, long productEntryId, java.lang.String version,
87 java.lang.String changeLog, java.lang.String downloadPageURL,
88 java.lang.String directDownloadURL, boolean repoStoreArtifact,
89 long[] frameworkVersionIds, boolean addCommunityPermissions,
90 boolean addGuestPermissions)
91 throws com.liferay.portal.PortalException,
92 com.liferay.portal.SystemException {
93 SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
94
95 return scProductVersionLocalService.addProductVersion(userId,
96 productEntryId, version, changeLog, downloadPageURL,
97 directDownloadURL, repoStoreArtifact, frameworkVersionIds,
98 addCommunityPermissions, addGuestPermissions);
99 }
100
101 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
102 long userId, long productEntryId, java.lang.String version,
103 java.lang.String changeLog, java.lang.String downloadPageURL,
104 java.lang.String directDownloadURL, boolean repoStoreArtifact,
105 long[] frameworkVersionIds, java.lang.String[] communityPermissions,
106 java.lang.String[] guestPermissions)
107 throws com.liferay.portal.PortalException,
108 com.liferay.portal.SystemException {
109 SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
110
111 return scProductVersionLocalService.addProductVersion(userId,
112 productEntryId, version, changeLog, downloadPageURL,
113 directDownloadURL, repoStoreArtifact, frameworkVersionIds,
114 communityPermissions, guestPermissions);
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 repoStoreArtifact,
121 long[] frameworkVersionIds, java.lang.Boolean addCommunityPermissions,
122 java.lang.Boolean addGuestPermissions,
123 java.lang.String[] communityPermissions,
124 java.lang.String[] guestPermissions)
125 throws com.liferay.portal.PortalException,
126 com.liferay.portal.SystemException {
127 SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
128
129 return scProductVersionLocalService.addProductVersion(userId,
130 productEntryId, version, changeLog, downloadPageURL,
131 directDownloadURL, repoStoreArtifact, frameworkVersionIds,
132 addCommunityPermissions, addGuestPermissions, communityPermissions,
133 guestPermissions);
134 }
135
136 public static void deleteProductVersion(long productVersionId)
137 throws com.liferay.portal.PortalException,
138 com.liferay.portal.SystemException {
139 SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
140 scProductVersionLocalService.deleteProductVersion(productVersionId);
141 }
142
143 public static void deleteProductVersion(
144 com.liferay.portlet.softwarecatalog.model.SCProductVersion productVersion)
145 throws com.liferay.portal.PortalException,
146 com.liferay.portal.SystemException {
147 SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
148 scProductVersionLocalService.deleteProductVersion(productVersion);
149 }
150
151 public static void deleteProductVersions(long productEntryId)
152 throws com.liferay.portal.PortalException,
153 com.liferay.portal.SystemException {
154 SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
155 scProductVersionLocalService.deleteProductVersions(productEntryId);
156 }
157
158 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersion(
159 long productVersionId)
160 throws com.liferay.portal.PortalException,
161 com.liferay.portal.SystemException {
162 SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
163
164 return scProductVersionLocalService.getProductVersion(productVersionId);
165 }
166
167 public static java.util.List getProductVersions(long productEntryId,
168 int begin, int end) throws com.liferay.portal.SystemException {
169 SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
170
171 return scProductVersionLocalService.getProductVersions(productEntryId,
172 begin, end);
173 }
174
175 public static int getProductVersionsCount(long productEntryId)
176 throws com.liferay.portal.SystemException {
177 SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
178
179 return scProductVersionLocalService.getProductVersionsCount(productEntryId);
180 }
181
182 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateProductVersion(
183 long productVersionId, java.lang.String version,
184 java.lang.String changeLog, java.lang.String downloadPageURL,
185 java.lang.String directDownloadURL, boolean repoStoreArtifact,
186 long[] frameworkVersionIds)
187 throws com.liferay.portal.PortalException,
188 com.liferay.portal.SystemException {
189 SCProductVersionLocalService scProductVersionLocalService = SCProductVersionLocalServiceFactory.getService();
190
191 return scProductVersionLocalService.updateProductVersion(productVersionId,
192 version, changeLog, downloadPageURL, directDownloadURL,
193 repoStoreArtifact, frameworkVersionIds);
194 }
195 }