1
22
23 package com.liferay.portlet.softwarecatalog.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Isolation;
28 import com.liferay.portal.kernel.annotation.Propagation;
29 import com.liferay.portal.kernel.annotation.Transactional;
30
31
55 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
56 PortalException.class, SystemException.class})
57 public interface SCProductEntryLocalService {
58 public com.liferay.portlet.softwarecatalog.model.SCProductEntry addSCProductEntry(
59 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
60 throws com.liferay.portal.SystemException;
61
62 public com.liferay.portlet.softwarecatalog.model.SCProductEntry createSCProductEntry(
63 long productEntryId);
64
65 public void deleteSCProductEntry(long productEntryId)
66 throws com.liferay.portal.PortalException,
67 com.liferay.portal.SystemException;
68
69 public void deleteSCProductEntry(
70 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
71 throws com.liferay.portal.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
75 throws com.liferay.portal.SystemException;
76
77 public java.util.List<Object> dynamicQuery(
78 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79 int end) throws com.liferay.portal.SystemException;
80
81 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82 public com.liferay.portlet.softwarecatalog.model.SCProductEntry getSCProductEntry(
83 long productEntryId)
84 throws com.liferay.portal.PortalException,
85 com.liferay.portal.SystemException;
86
87 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
89 int start, int end) throws com.liferay.portal.SystemException;
90
91 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
92 public int getSCProductEntriesCount()
93 throws com.liferay.portal.SystemException;
94
95 public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
96 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
97 throws com.liferay.portal.SystemException;
98
99 public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
100 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
101 boolean merge) throws com.liferay.portal.SystemException;
102
103 public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
104 long userId, long plid, java.lang.String name, java.lang.String type,
105 java.lang.String tags, java.lang.String shortDescription,
106 java.lang.String longDescription, java.lang.String pageURL,
107 java.lang.String author, java.lang.String repoGroupId,
108 java.lang.String repoArtifactId, long[] licenseIds,
109 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
110 boolean addCommunityPermissions, boolean addGuestPermissions)
111 throws com.liferay.portal.PortalException,
112 com.liferay.portal.SystemException;
113
114 public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
115 long userId, long plid, java.lang.String name, java.lang.String type,
116 java.lang.String tags, java.lang.String shortDescription,
117 java.lang.String longDescription, java.lang.String pageURL,
118 java.lang.String author, java.lang.String repoGroupId,
119 java.lang.String repoArtifactId, long[] licenseIds,
120 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
121 java.lang.String[] communityPermissions,
122 java.lang.String[] guestPermissions)
123 throws com.liferay.portal.PortalException,
124 com.liferay.portal.SystemException;
125
126 public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
127 long userId, long plid, java.lang.String name, java.lang.String type,
128 java.lang.String tags, java.lang.String shortDescription,
129 java.lang.String longDescription, java.lang.String pageURL,
130 java.lang.String author, java.lang.String repoGroupId,
131 java.lang.String repoArtifactId, long[] licenseIds,
132 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
133 java.lang.Boolean addCommunityPermissions,
134 java.lang.Boolean addGuestPermissions,
135 java.lang.String[] communityPermissions,
136 java.lang.String[] guestPermissions)
137 throws com.liferay.portal.PortalException,
138 com.liferay.portal.SystemException;
139
140 public void addProductEntryResources(long productEntryId,
141 boolean addCommunityPermissions, boolean addGuestPermissions)
142 throws com.liferay.portal.PortalException,
143 com.liferay.portal.SystemException;
144
145 public void addProductEntryResources(
146 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
147 boolean addCommunityPermissions, boolean addGuestPermissions)
148 throws com.liferay.portal.PortalException,
149 com.liferay.portal.SystemException;
150
151 public void addProductEntryResources(long productEntryId,
152 java.lang.String[] communityPermissions,
153 java.lang.String[] guestPermissions)
154 throws com.liferay.portal.PortalException,
155 com.liferay.portal.SystemException;
156
157 public void addProductEntryResources(
158 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
159 java.lang.String[] communityPermissions,
160 java.lang.String[] guestPermissions)
161 throws com.liferay.portal.PortalException,
162 com.liferay.portal.SystemException;
163
164 public void deleteProductEntries(long groupId)
165 throws com.liferay.portal.PortalException,
166 com.liferay.portal.SystemException;
167
168 public void deleteProductEntry(long productEntryId)
169 throws com.liferay.portal.PortalException,
170 com.liferay.portal.SystemException;
171
172 public void deleteProductEntry(
173 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
174 throws com.liferay.portal.PortalException,
175 com.liferay.portal.SystemException;
176
177 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178 public com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
179 long productEntryId)
180 throws com.liferay.portal.PortalException,
181 com.liferay.portal.SystemException;
182
183 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
185 long groupId, int start, int end)
186 throws com.liferay.portal.SystemException;
187
188 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
190 long groupId, int start, int end,
191 com.liferay.portal.kernel.util.OrderByComparator obc)
192 throws com.liferay.portal.SystemException;
193
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
196 long groupId, long userId, int start, int end)
197 throws com.liferay.portal.SystemException;
198
199 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
201 long groupId, long userId, int start, int end,
202 com.liferay.portal.kernel.util.OrderByComparator obc)
203 throws com.liferay.portal.SystemException;
204
205 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206 public int getProductEntriesCount(long groupId)
207 throws com.liferay.portal.SystemException;
208
209 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210 public int getProductEntriesCount(long groupId, long userId)
211 throws com.liferay.portal.SystemException;
212
213 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214 public java.lang.String getRepositoryXML(long groupId,
215 java.lang.String baseImageURL, java.util.Date oldestDate,
216 int maxNumOfVersions, java.util.Properties repoSettings)
217 throws com.liferay.portal.SystemException;
218
219 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220 public java.lang.String getRepositoryXML(long groupId,
221 java.lang.String version, java.lang.String baseImageURL,
222 java.util.Date oldestDate, int maxNumOfVersions,
223 java.util.Properties repoSettings)
224 throws com.liferay.portal.SystemException;
225
226 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
227 public void reIndex(long productEntryId)
228 throws com.liferay.portal.SystemException;
229
230 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231 public void reIndex(
232 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
233 throws com.liferay.portal.SystemException;
234
235 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
236 public void reIndex(java.lang.String[] ids)
237 throws com.liferay.portal.SystemException;
238
239 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
240 public com.liferay.portal.kernel.search.Hits search(long companyId,
241 long groupId, java.lang.String keywords, java.lang.String type,
242 int start, int end) throws com.liferay.portal.SystemException;
243
244 public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
245 long productEntryId, java.lang.String name, java.lang.String type,
246 java.lang.String tags, java.lang.String shortDescription,
247 java.lang.String longDescription, java.lang.String pageURL,
248 java.lang.String author, java.lang.String repoGroupId,
249 java.lang.String repoArtifactId, long[] licenseIds,
250 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
251 throws com.liferay.portal.PortalException,
252 com.liferay.portal.SystemException;
253 }