1   /**
2    * Copyright (c) 2000-2008 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  
26  /**
27   * <a href="SCProductEntryLocalService.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This interface defines the service. The default implementation is
36   * <code>com.liferay.portlet.softwarecatalog.service.impl.SCProductEntryLocalServiceImpl</code>.
37   * Modify methods in that class and rerun ServiceBuilder to populate this class
38   * and all other generated classes.
39   * </p>
40   *
41   * <p>
42   * 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.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalServiceUtil
48   *
49   */
50  public interface SCProductEntryLocalService {
51      public com.liferay.portlet.softwarecatalog.model.SCProductEntry addSCProductEntry(
52          com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
53          throws com.liferay.portal.SystemException;
54  
55      public com.liferay.portlet.softwarecatalog.model.SCProductEntry createSCProductEntry(
56          long productEntryId);
57  
58      public void deleteSCProductEntry(long productEntryId)
59          throws com.liferay.portal.SystemException,
60              com.liferay.portal.PortalException;
61  
62      public void deleteSCProductEntry(
63          com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
64          throws com.liferay.portal.SystemException;
65  
66      public java.util.List<Object> dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List<Object> dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
72          int end) throws com.liferay.portal.SystemException;
73  
74      public com.liferay.portlet.softwarecatalog.model.SCProductEntry getSCProductEntry(
75          long productEntryId)
76          throws com.liferay.portal.SystemException,
77              com.liferay.portal.PortalException;
78  
79      public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getSCProductEntries(
80          int start, int end) throws com.liferay.portal.SystemException;
81  
82      public int getSCProductEntriesCount()
83          throws com.liferay.portal.SystemException;
84  
85      public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
86          com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
87          throws com.liferay.portal.SystemException;
88  
89      public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
90          long userId, long plid, java.lang.String name, java.lang.String type,
91          java.lang.String tags, java.lang.String shortDescription,
92          java.lang.String longDescription, java.lang.String pageURL,
93          java.lang.String author, java.lang.String repoGroupId,
94          java.lang.String repoArtifactId, long[] licenseIds,
95          java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
96          boolean addCommunityPermissions, boolean addGuestPermissions)
97          throws com.liferay.portal.PortalException,
98              com.liferay.portal.SystemException;
99  
100     public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
101         long userId, long plid, java.lang.String name, java.lang.String type,
102         java.lang.String tags, java.lang.String shortDescription,
103         java.lang.String longDescription, java.lang.String pageURL,
104         java.lang.String author, java.lang.String repoGroupId,
105         java.lang.String repoArtifactId, long[] licenseIds,
106         java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
107         java.lang.String[] communityPermissions,
108         java.lang.String[] guestPermissions)
109         throws com.liferay.portal.PortalException,
110             com.liferay.portal.SystemException;
111 
112     public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
113         long userId, long plid, java.lang.String name, java.lang.String type,
114         java.lang.String tags, java.lang.String shortDescription,
115         java.lang.String longDescription, java.lang.String pageURL,
116         java.lang.String author, java.lang.String repoGroupId,
117         java.lang.String repoArtifactId, long[] licenseIds,
118         java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
119         java.lang.Boolean addCommunityPermissions,
120         java.lang.Boolean addGuestPermissions,
121         java.lang.String[] communityPermissions,
122         java.lang.String[] guestPermissions)
123         throws com.liferay.portal.PortalException,
124             com.liferay.portal.SystemException;
125 
126     public void addProductEntryResources(long productEntryId,
127         boolean addCommunityPermissions, boolean addGuestPermissions)
128         throws com.liferay.portal.PortalException,
129             com.liferay.portal.SystemException;
130 
131     public void addProductEntryResources(
132         com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
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         java.lang.String[] communityPermissions,
146         java.lang.String[] guestPermissions)
147         throws com.liferay.portal.PortalException,
148             com.liferay.portal.SystemException;
149 
150     public void deleteProductEntries(long groupId)
151         throws com.liferay.portal.PortalException,
152             com.liferay.portal.SystemException;
153 
154     public void deleteProductEntry(long productEntryId)
155         throws com.liferay.portal.PortalException,
156             com.liferay.portal.SystemException;
157 
158     public void deleteProductEntry(
159         com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
160         throws com.liferay.portal.PortalException,
161             com.liferay.portal.SystemException;
162 
163     public com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
164         long productEntryId)
165         throws com.liferay.portal.PortalException,
166             com.liferay.portal.SystemException;
167 
168     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
169         long groupId, int start, int end)
170         throws com.liferay.portal.SystemException;
171 
172     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
173         long groupId, int start, int end,
174         com.liferay.portal.kernel.util.OrderByComparator obc)
175         throws com.liferay.portal.SystemException;
176 
177     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
178         long groupId, long userId, int start, int end)
179         throws com.liferay.portal.SystemException;
180 
181     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
182         long groupId, long userId, int start, int end,
183         com.liferay.portal.kernel.util.OrderByComparator obc)
184         throws com.liferay.portal.SystemException;
185 
186     public int getProductEntriesCount(long groupId)
187         throws com.liferay.portal.SystemException;
188 
189     public int getProductEntriesCount(long groupId, long userId)
190         throws com.liferay.portal.SystemException;
191 
192     public java.lang.String getRepositoryXML(long groupId,
193         java.lang.String baseImageURL, java.util.Date oldestDate,
194         int maxNumOfVersions, java.util.Properties repoSettings)
195         throws com.liferay.portal.SystemException;
196 
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.SystemException;
202 
203     public void reIndex(java.lang.String[] ids)
204         throws com.liferay.portal.SystemException;
205 
206     public com.liferay.portal.kernel.search.Hits search(long companyId,
207         long groupId, java.lang.String keywords, java.lang.String type,
208         int start, int end) throws com.liferay.portal.SystemException;
209 
210     public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
211         long productEntryId, java.lang.String name, java.lang.String type,
212         java.lang.String tags, java.lang.String shortDescription,
213         java.lang.String longDescription, java.lang.String pageURL,
214         java.lang.String author, java.lang.String repoGroupId,
215         java.lang.String repoArtifactId, long[] licenseIds,
216         java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
217         throws com.liferay.portal.PortalException,
218             com.liferay.portal.SystemException;
219 }