1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
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  /**
24   * <a href="SCProductEntryLocalService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portlet.softwarecatalog.service.impl.SCProductEntryLocalServiceImpl}}.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * 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.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       SCProductEntryLocalServiceUtil
45   * @generated
46   */
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      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
74      public com.liferay.portlet.softwarecatalog.model.SCProductEntry getSCProductEntry(
75          long productEntryId)
76          throws com.liferay.portal.PortalException,
77              com.liferay.portal.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) throws com.liferay.portal.SystemException;
82  
83      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84      public int getSCProductEntriesCount()
85          throws com.liferay.portal.SystemException;
86  
87      public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
88          com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
89          throws com.liferay.portal.SystemException;
90  
91      public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
92          com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry,
93          boolean merge) throws com.liferay.portal.SystemException;
94  
95      public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
96          long userId, long plid, java.lang.String name, java.lang.String type,
97          java.lang.String tags, java.lang.String shortDescription,
98          java.lang.String longDescription, java.lang.String pageURL,
99          java.lang.String author, java.lang.String repoGroupId,
100         java.lang.String repoArtifactId, long[] licenseIds,
101         java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
102         boolean addCommunityPermissions, boolean addGuestPermissions)
103         throws com.liferay.portal.PortalException,
104             com.liferay.portal.SystemException;
105 
106     public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
107         long userId, long plid, java.lang.String name, java.lang.String type,
108         java.lang.String tags, java.lang.String shortDescription,
109         java.lang.String longDescription, java.lang.String pageURL,
110         java.lang.String author, java.lang.String repoGroupId,
111         java.lang.String repoArtifactId, long[] licenseIds,
112         java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
113         java.lang.Boolean addCommunityPermissions,
114         java.lang.Boolean addGuestPermissions,
115         java.lang.String[] communityPermissions,
116         java.lang.String[] guestPermissions)
117         throws com.liferay.portal.PortalException,
118             com.liferay.portal.SystemException;
119 
120     public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
121         long userId, long plid, java.lang.String name, java.lang.String type,
122         java.lang.String tags, java.lang.String shortDescription,
123         java.lang.String longDescription, java.lang.String pageURL,
124         java.lang.String author, java.lang.String repoGroupId,
125         java.lang.String repoArtifactId, long[] licenseIds,
126         java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
127         java.lang.String[] communityPermissions,
128         java.lang.String[] guestPermissions)
129         throws com.liferay.portal.PortalException,
130             com.liferay.portal.SystemException;
131 
132     public void addProductEntryResources(long productEntryId,
133         boolean addCommunityPermissions, boolean addGuestPermissions)
134         throws com.liferay.portal.PortalException,
135             com.liferay.portal.SystemException;
136 
137     public void addProductEntryResources(long productEntryId,
138         java.lang.String[] communityPermissions,
139         java.lang.String[] guestPermissions)
140         throws com.liferay.portal.PortalException,
141             com.liferay.portal.SystemException;
142 
143     public void addProductEntryResources(
144         com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
145         boolean addCommunityPermissions, boolean addGuestPermissions)
146         throws com.liferay.portal.PortalException,
147             com.liferay.portal.SystemException;
148 
149     public void addProductEntryResources(
150         com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
151         java.lang.String[] communityPermissions,
152         java.lang.String[] guestPermissions)
153         throws com.liferay.portal.PortalException,
154             com.liferay.portal.SystemException;
155 
156     public void deleteProductEntries(long groupId)
157         throws com.liferay.portal.PortalException,
158             com.liferay.portal.SystemException;
159 
160     public void deleteProductEntry(long productEntryId)
161         throws com.liferay.portal.PortalException,
162             com.liferay.portal.SystemException;
163 
164     public void deleteProductEntry(
165         com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
166         throws com.liferay.portal.PortalException,
167             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, int start, int end)
172         throws com.liferay.portal.SystemException;
173 
174     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
176         long groupId, int start, int end,
177         com.liferay.portal.kernel.util.OrderByComparator obc)
178         throws com.liferay.portal.SystemException;
179 
180     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
182         long groupId, long userId, int start, int end)
183         throws com.liferay.portal.SystemException;
184 
185     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
187         long groupId, long userId, int start, int end,
188         com.liferay.portal.kernel.util.OrderByComparator obc)
189         throws com.liferay.portal.SystemException;
190 
191     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192     public int getProductEntriesCount(long groupId)
193         throws com.liferay.portal.SystemException;
194 
195     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196     public int getProductEntriesCount(long groupId, long userId)
197         throws com.liferay.portal.SystemException;
198 
199     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200     public com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
201         long productEntryId)
202         throws com.liferay.portal.PortalException,
203             com.liferay.portal.SystemException;
204 
205     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206     public java.lang.String getRepositoryXML(long groupId,
207         java.lang.String baseImageURL, java.util.Date oldestDate,
208         int maxNumOfVersions, java.util.Properties repoSettings)
209         throws com.liferay.portal.SystemException;
210 
211     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212     public java.lang.String getRepositoryXML(long groupId,
213         java.lang.String version, java.lang.String baseImageURL,
214         java.util.Date oldestDate, int maxNumOfVersions,
215         java.util.Properties repoSettings)
216         throws com.liferay.portal.SystemException;
217 
218     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219     public void reIndex(long productEntryId)
220         throws com.liferay.portal.SystemException;
221 
222     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223     public void reIndex(
224         com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
225         throws com.liferay.portal.SystemException;
226 
227     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228     public void reIndex(java.lang.String[] ids)
229         throws com.liferay.portal.SystemException;
230 
231     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
232     public com.liferay.portal.kernel.search.Hits search(long companyId,
233         long groupId, java.lang.String keywords, java.lang.String type,
234         int start, int end) throws com.liferay.portal.SystemException;
235 
236     public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
237         long productEntryId, java.lang.String name, java.lang.String type,
238         java.lang.String tags, java.lang.String shortDescription,
239         java.lang.String longDescription, java.lang.String pageURL,
240         java.lang.String author, java.lang.String repoGroupId,
241         java.lang.String repoArtifactId, long[] licenseIds,
242         java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
243         throws com.liferay.portal.PortalException,
244             com.liferay.portal.SystemException;
245 }