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