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.SCProductEntryLocalServiceFactory
48   * @see com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalServiceUtil
49   *
50   */
51  public interface SCProductEntryLocalService {
52      public com.liferay.portlet.softwarecatalog.model.SCProductEntry addSCProductEntry(
53          com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
54          throws com.liferay.portal.SystemException;
55  
56      public void deleteSCProductEntry(long productEntryId)
57          throws com.liferay.portal.SystemException,
58              com.liferay.portal.PortalException;
59  
60      public void deleteSCProductEntry(
61          com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
62          throws com.liferay.portal.SystemException;
63  
64      public java.util.List<Object> dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.SystemException;
67  
68      public java.util.List<Object> dynamicQuery(
69          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
70          int end) throws com.liferay.portal.SystemException;
71  
72      public com.liferay.portlet.softwarecatalog.model.SCProductEntry getSCProductEntry(
73          long productEntryId)
74          throws com.liferay.portal.SystemException,
75              com.liferay.portal.PortalException;
76  
77      public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
78          com.liferay.portlet.softwarecatalog.model.SCProductEntry scProductEntry)
79          throws com.liferay.portal.SystemException;
80  
81      public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
82          long userId, long plid, java.lang.String name, java.lang.String type,
83          java.lang.String tags, java.lang.String shortDescription,
84          java.lang.String longDescription, java.lang.String pageURL,
85          java.lang.String author, java.lang.String repoGroupId,
86          java.lang.String repoArtifactId, long[] licenseIds,
87          java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
88          boolean addCommunityPermissions, boolean addGuestPermissions)
89          throws com.liferay.portal.PortalException,
90              com.liferay.portal.SystemException;
91  
92      public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
93          long userId, long plid, java.lang.String name, java.lang.String type,
94          java.lang.String tags, java.lang.String shortDescription,
95          java.lang.String longDescription, java.lang.String pageURL,
96          java.lang.String author, java.lang.String repoGroupId,
97          java.lang.String repoArtifactId, long[] licenseIds,
98          java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
99          java.lang.String[] communityPermissions,
100         java.lang.String[] guestPermissions)
101         throws com.liferay.portal.PortalException,
102             com.liferay.portal.SystemException;
103 
104     public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
105         long userId, long plid, java.lang.String name, java.lang.String type,
106         java.lang.String tags, java.lang.String shortDescription,
107         java.lang.String longDescription, java.lang.String pageURL,
108         java.lang.String author, java.lang.String repoGroupId,
109         java.lang.String repoArtifactId, long[] licenseIds,
110         java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
111         java.lang.Boolean addCommunityPermissions,
112         java.lang.Boolean addGuestPermissions,
113         java.lang.String[] communityPermissions,
114         java.lang.String[] guestPermissions)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException;
117 
118     public void addProductEntryResources(long productEntryId,
119         boolean addCommunityPermissions, boolean addGuestPermissions)
120         throws com.liferay.portal.PortalException,
121             com.liferay.portal.SystemException;
122 
123     public void addProductEntryResources(
124         com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
125         boolean addCommunityPermissions, boolean addGuestPermissions)
126         throws com.liferay.portal.PortalException,
127             com.liferay.portal.SystemException;
128 
129     public void addProductEntryResources(long productEntryId,
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(
136         com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
137         java.lang.String[] communityPermissions,
138         java.lang.String[] guestPermissions)
139         throws com.liferay.portal.PortalException,
140             com.liferay.portal.SystemException;
141 
142     public void deleteProductEntries(long groupId)
143         throws com.liferay.portal.PortalException,
144             com.liferay.portal.SystemException;
145 
146     public void deleteProductEntry(long productEntryId)
147         throws com.liferay.portal.PortalException,
148             com.liferay.portal.SystemException;
149 
150     public void deleteProductEntry(
151         com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
152         throws com.liferay.portal.PortalException,
153             com.liferay.portal.SystemException;
154 
155     public com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
156         long productEntryId)
157         throws com.liferay.portal.PortalException,
158             com.liferay.portal.SystemException;
159 
160     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
161         long groupId, int start, int end)
162         throws com.liferay.portal.SystemException;
163 
164     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
165         long groupId, int start, int end,
166         com.liferay.portal.kernel.util.OrderByComparator obc)
167         throws com.liferay.portal.SystemException;
168 
169     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
170         long groupId, long userId, int start, int end)
171         throws com.liferay.portal.SystemException;
172 
173     public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductEntry> getProductEntries(
174         long groupId, long userId, int start, int end,
175         com.liferay.portal.kernel.util.OrderByComparator obc)
176         throws com.liferay.portal.SystemException;
177 
178     public int getProductEntriesCount(long groupId)
179         throws com.liferay.portal.SystemException;
180 
181     public int getProductEntriesCount(long groupId, long userId)
182         throws com.liferay.portal.SystemException;
183 
184     public java.lang.String getRepositoryXML(long groupId,
185         java.lang.String baseImageURL, java.util.Date oldestDate,
186         int maxNumOfVersions, java.util.Properties repoSettings)
187         throws com.liferay.portal.PortalException,
188             com.liferay.portal.SystemException;
189 
190     public java.lang.String getRepositoryXML(long groupId,
191         java.lang.String version, java.lang.String baseImageURL,
192         java.util.Date oldestDate, int maxNumOfVersions,
193         java.util.Properties repoSettings)
194         throws com.liferay.portal.PortalException,
195             com.liferay.portal.SystemException;
196 
197     public void reIndex(java.lang.String[] ids)
198         throws com.liferay.portal.SystemException;
199 
200     public com.liferay.portal.kernel.search.Hits search(long companyId,
201         long groupId, java.lang.String keywords, java.lang.String type,
202         int start, int end) throws com.liferay.portal.SystemException;
203 
204     public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
205         long productEntryId, java.lang.String name, java.lang.String type,
206         java.lang.String tags, java.lang.String shortDescription,
207         java.lang.String longDescription, java.lang.String pageURL,
208         java.lang.String author, java.lang.String repoGroupId,
209         java.lang.String repoArtifactId, long[] licenseIds,
210         java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
211         throws com.liferay.portal.PortalException,
212             com.liferay.portal.SystemException;
213 }