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