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