1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.softwarecatalog.service;
24  
25  import com.liferay.portal.PortalException;
26  import com.liferay.portal.SystemException;
27  import com.liferay.portal.kernel.annotation.Propagation;
28  import com.liferay.portal.kernel.annotation.Transactional;
29  
30  /**
31   * <a href="SCProductEntryLocalService.java.html"><b><i>View Source</i></b></a>
32   *
33   * <p>
34   * ServiceBuilder generated this class. Modifications in this class will be
35   * overwritten the next time is generated.
36   * </p>
37   *
38   * <p>
39   * This interface defines the service. The default implementation is
40   * <code>com.liferay.portlet.softwarecatalog.service.impl.SCProductEntryLocalServiceImpl</code>.
41   * Modify methods in that class and rerun ServiceBuilder to populate this class
42   * and all other generated classes.
43   * </p>
44   *
45   * <p>
46   * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
47   * </p>
48   *
49   * @author Brian Wing Shun Chan
50   *
51   * @see com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalServiceUtil
52   *
53   */
54  @Transactional(rollbackFor =  {
55      PortalException.class, SystemException.class})
56  public interface SCProductEntryLocalService {
57      public com.liferay.portlet.softwarecatalog.model.SCProductEntry addSCProductEntry(
58          com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
59          throws com.liferay.portal.SystemException;
60  
61      public com.liferay.portlet.softwarecatalog.model.SCProductEntry createSCProductEntry(
62          long productEntryId);
63  
64      public void deleteSCProductEntry(long productEntryId)
65          throws com.liferay.portal.SystemException,
66              com.liferay.portal.PortalException;
67  
68      public void deleteSCProductEntry(
69          com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
70          throws com.liferay.portal.SystemException;
71  
72      public java.util.List<Object> dynamicQuery(
73          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
74          throws com.liferay.portal.SystemException;
75  
76      public java.util.List<Object> dynamicQuery(
77          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78          int end) throws com.liferay.portal.SystemException;
79  
80      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
81      public com.liferay.portlet.softwarecatalog.model.SCProductEntry getSCProductEntry(
82          long productEntryId)
83          throws com.liferay.portal.SystemException,
84              com.liferay.portal.PortalException;
85  
86      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
88          int start, int end) throws com.liferay.portal.SystemException;
89  
90      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91      public int getSCProductEntriesCount()
92          throws com.liferay.portal.SystemException;
93  
94      public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
95          com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
96          throws com.liferay.portal.SystemException;
97  
98      public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
99          long userId, long plid, java.lang.String name, java.lang.String type,
100         java.lang.String tags, java.lang.String shortDescription,
101         java.lang.String longDescription, java.lang.String pageURL,
102         java.lang.String author, java.lang.String repoGroupId,
103         java.lang.String repoArtifactId, long[] licenseIds,
104         java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
105         boolean addCommunityPermissions, boolean addGuestPermissions)
106         throws com.liferay.portal.PortalException,
107             com.liferay.portal.SystemException;
108 
109     public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
110         long userId, long plid, java.lang.String name, java.lang.String type,
111         java.lang.String tags, java.lang.String shortDescription,
112         java.lang.String longDescription, java.lang.String pageURL,
113         java.lang.String author, java.lang.String repoGroupId,
114         java.lang.String repoArtifactId, long[] licenseIds,
115         java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
116         java.lang.String[] communityPermissions,
117         java.lang.String[] guestPermissions)
118         throws com.liferay.portal.PortalException,
119             com.liferay.portal.SystemException;
120 
121     public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
122         long userId, long plid, java.lang.String name, java.lang.String type,
123         java.lang.String tags, java.lang.String shortDescription,
124         java.lang.String longDescription, java.lang.String pageURL,
125         java.lang.String author, java.lang.String repoGroupId,
126         java.lang.String repoArtifactId, long[] licenseIds,
127         java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
128         java.lang.Boolean addCommunityPermissions,
129         java.lang.Boolean addGuestPermissions,
130         java.lang.String[] communityPermissions,
131         java.lang.String[] guestPermissions)
132         throws com.liferay.portal.PortalException,
133             com.liferay.portal.SystemException;
134 
135     public void addProductEntryResources(long productEntryId,
136         boolean addCommunityPermissions, boolean addGuestPermissions)
137         throws com.liferay.portal.PortalException,
138             com.liferay.portal.SystemException;
139 
140     public void addProductEntryResources(
141         com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
142         boolean addCommunityPermissions, boolean addGuestPermissions)
143         throws com.liferay.portal.PortalException,
144             com.liferay.portal.SystemException;
145 
146     public void addProductEntryResources(long productEntryId,
147         java.lang.String[] communityPermissions,
148         java.lang.String[] guestPermissions)
149         throws com.liferay.portal.PortalException,
150             com.liferay.portal.SystemException;
151 
152     public void addProductEntryResources(
153         com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
154         java.lang.String[] communityPermissions,
155         java.lang.String[] guestPermissions)
156         throws com.liferay.portal.PortalException,
157             com.liferay.portal.SystemException;
158 
159     public void deleteProductEntries(long groupId)
160         throws com.liferay.portal.PortalException,
161             com.liferay.portal.SystemException;
162 
163     public void deleteProductEntry(long productEntryId)
164         throws com.liferay.portal.PortalException,
165             com.liferay.portal.SystemException;
166 
167     public void deleteProductEntry(
168         com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
169         throws com.liferay.portal.PortalException,
170             com.liferay.portal.SystemException;
171 
172     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173     public com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
174         long productEntryId)
175         throws com.liferay.portal.PortalException,
176             com.liferay.portal.SystemException;
177 
178     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
180         long groupId, int start, int end)
181         throws com.liferay.portal.SystemException;
182 
183     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
185         long groupId, int start, int end,
186         com.liferay.portal.kernel.util.OrderByComparator obc)
187         throws com.liferay.portal.SystemException;
188 
189     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
191         long groupId, long userId, int start, int end)
192         throws com.liferay.portal.SystemException;
193 
194     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
196         long groupId, long userId, int start, int end,
197         com.liferay.portal.kernel.util.OrderByComparator obc)
198         throws com.liferay.portal.SystemException;
199 
200     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201     public int getProductEntriesCount(long groupId)
202         throws com.liferay.portal.SystemException;
203 
204     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205     public int getProductEntriesCount(long groupId, long userId)
206         throws com.liferay.portal.SystemException;
207 
208     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209     public java.lang.String getRepositoryXML(long groupId,
210         java.lang.String baseImageURL, java.util.Date oldestDate,
211         int maxNumOfVersions, java.util.Properties repoSettings)
212         throws com.liferay.portal.SystemException;
213 
214     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
215     public java.lang.String getRepositoryXML(long groupId,
216         java.lang.String version, java.lang.String baseImageURL,
217         java.util.Date oldestDate, int maxNumOfVersions,
218         java.util.Properties repoSettings)
219         throws com.liferay.portal.SystemException;
220 
221     public void reIndex(java.lang.String[] ids)
222         throws com.liferay.portal.SystemException;
223 
224     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225     public com.liferay.portal.kernel.search.Hits search(long companyId,
226         long groupId, java.lang.String keywords, java.lang.String type,
227         int start, int end) throws com.liferay.portal.SystemException;
228 
229     public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
230         long productEntryId, java.lang.String name, java.lang.String type,
231         java.lang.String tags, java.lang.String shortDescription,
232         java.lang.String longDescription, java.lang.String pageURL,
233         java.lang.String author, java.lang.String repoGroupId,
234         java.lang.String repoArtifactId, long[] licenseIds,
235         java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
236         throws com.liferay.portal.PortalException,
237             com.liferay.portal.SystemException;
238 }