001
014
015 package com.liferay.portlet.softwarecatalog.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface SCProductEntryLocalService {
043 public com.liferay.portlet.softwarecatalog.model.SCProductEntry addSCProductEntry(
044 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portlet.softwarecatalog.model.SCProductEntry createSCProductEntry(
048 long productEntryId);
049
050 public void deleteSCProductEntry(long productEntryId)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException;
053
054 public void deleteSCProductEntry(
055 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058 @SuppressWarnings("unchecked")
059 public java.util.List dynamicQuery(
060 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
061 throws com.liferay.portal.kernel.exception.SystemException;
062
063 @SuppressWarnings("unchecked")
064 public java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException;
067
068 @SuppressWarnings("unchecked")
069 public java.util.List dynamicQuery(
070 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071 int end,
072 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073 throws com.liferay.portal.kernel.exception.SystemException;
074
075 public long dynamicQueryCount(
076 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
077 throws com.liferay.portal.kernel.exception.SystemException;
078
079 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080 public com.liferay.portlet.softwarecatalog.model.SCProductEntry getSCProductEntry(
081 long productEntryId)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException;
084
085 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
087 int start, int end)
088 throws com.liferay.portal.kernel.exception.SystemException;
089
090 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091 public int getSCProductEntriesCount()
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
095 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
096 throws com.liferay.portal.kernel.exception.SystemException;
097
098 public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
099 com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
100 boolean merge)
101 throws com.liferay.portal.kernel.exception.SystemException;
102
103 public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
104 long userId, 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 com.liferay.portal.service.ServiceContext serviceContext)
111 throws com.liferay.portal.kernel.exception.PortalException,
112 com.liferay.portal.kernel.exception.SystemException;
113
114 public void addProductEntryResources(long productEntryId,
115 boolean addCommunityPermissions, boolean addGuestPermissions)
116 throws com.liferay.portal.kernel.exception.PortalException,
117 com.liferay.portal.kernel.exception.SystemException;
118
119 public void addProductEntryResources(long productEntryId,
120 java.lang.String[] communityPermissions,
121 java.lang.String[] guestPermissions)
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 boolean addCommunityPermissions, boolean addGuestPermissions)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException;
130
131 public void addProductEntryResources(
132 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
133 java.lang.String[] communityPermissions,
134 java.lang.String[] guestPermissions)
135 throws com.liferay.portal.kernel.exception.PortalException,
136 com.liferay.portal.kernel.exception.SystemException;
137
138 public void deleteProductEntries(long groupId)
139 throws com.liferay.portal.kernel.exception.PortalException,
140 com.liferay.portal.kernel.exception.SystemException;
141
142 public void deleteProductEntry(long productEntryId)
143 throws com.liferay.portal.kernel.exception.PortalException,
144 com.liferay.portal.kernel.exception.SystemException;
145
146 public void deleteProductEntry(
147 com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
148 throws com.liferay.portal.kernel.exception.PortalException,
149 com.liferay.portal.kernel.exception.SystemException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getCompanyProductEntries(
153 long companyId, int start, int end)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public int getCompanyProductEntriesCount(long companyId)
158 throws com.liferay.portal.kernel.exception.SystemException;
159
160 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
161 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
162 long groupId, int start, int end)
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, int start, int end,
168 com.liferay.portal.kernel.util.OrderByComparator obc)
169 throws com.liferay.portal.kernel.exception.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
173 long groupId, long userId, int start, int end)
174 throws com.liferay.portal.kernel.exception.SystemException;
175
176 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
178 long groupId, long userId, int start, int end,
179 com.liferay.portal.kernel.util.OrderByComparator obc)
180 throws com.liferay.portal.kernel.exception.SystemException;
181
182 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183 public int getProductEntriesCount(long groupId)
184 throws com.liferay.portal.kernel.exception.SystemException;
185
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public int getProductEntriesCount(long groupId, long userId)
188 throws com.liferay.portal.kernel.exception.SystemException;
189
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
192 long productEntryId)
193 throws com.liferay.portal.kernel.exception.PortalException,
194 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 baseImageURL, java.util.Date oldestDate,
199 int maxNumOfVersions, java.util.Properties repoSettings)
200 throws com.liferay.portal.kernel.exception.SystemException;
201
202 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203 public java.lang.String getRepositoryXML(long groupId,
204 java.lang.String version, java.lang.String baseImageURL,
205 java.util.Date oldestDate, int maxNumOfVersions,
206 java.util.Properties repoSettings)
207 throws com.liferay.portal.kernel.exception.SystemException;
208
209 public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
210 long productEntryId, java.lang.String name, java.lang.String type,
211 java.lang.String tags, java.lang.String shortDescription,
212 java.lang.String longDescription, java.lang.String pageURL,
213 java.lang.String author, java.lang.String repoGroupId,
214 java.lang.String repoArtifactId, long[] licenseIds,
215 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
216 throws com.liferay.portal.kernel.exception.PortalException,
217 com.liferay.portal.kernel.exception.SystemException;
218 }