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