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