1   /**
2    * Copyright (c) 2000-2007 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   * <a href="SCProductEntryLocalService.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be overwritten
30   * the next time is generated.
31   * </p>
32   *
33   * <p>
34   * This interface defines the service. The default implementation is <code>com.liferay.portlet.softwarecatalog.service.impl.SCProductEntryLocalServiceImpl</code>.
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
41   * based on the propagated JAAS credentials because this service can only be accessed
42   * from within the same VM.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.softwarecatalog.service.SCProductEntryServiceFactory
48   * @see com.liferay.portlet.softwarecatalog.service.SCProductEntryServiceUtil
49   *
50   */
51  public interface SCProductEntryLocalService {
52      public com.liferay.portlet.softwarecatalog.model.SCProductEntry addSCProductEntry(
53          com.liferay.portlet.softwarecatalog.model.SCProductEntry model)
54          throws com.liferay.portal.SystemException;
55  
56      public java.util.List dynamicQuery(
57          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
58          throws com.liferay.portal.SystemException;
59  
60      public java.util.List dynamicQuery(
61          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
62          int begin, int end) throws com.liferay.portal.SystemException;
63  
64      public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateSCProductEntry(
65          com.liferay.portlet.softwarecatalog.model.SCProductEntry model)
66          throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
69          long userId, long plid, java.lang.String name, java.lang.String type,
70          java.lang.String tags, java.lang.String shortDescription,
71          java.lang.String longDescription, java.lang.String pageURL,
72          java.lang.String author, java.lang.String repoGroupId,
73          java.lang.String repoArtifactId, long[] licenseIds,
74          java.util.List thumbnails, java.util.List fullImages,
75          boolean addCommunityPermissions, boolean addGuestPermissions)
76          throws com.liferay.portal.SystemException, 
77              com.liferay.portal.PortalException;
78  
79      public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
80          long userId, long plid, java.lang.String name, java.lang.String type,
81          java.lang.String tags, java.lang.String shortDescription,
82          java.lang.String longDescription, java.lang.String pageURL,
83          java.lang.String author, java.lang.String repoGroupId,
84          java.lang.String repoArtifactId, long[] licenseIds,
85          java.util.List thumbnails, java.util.List fullImages,
86          java.lang.String[] communityPermissions,
87          java.lang.String[] guestPermissions)
88          throws com.liferay.portal.SystemException, 
89              com.liferay.portal.PortalException;
90  
91      public com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
92          long userId, long plid, java.lang.String name, java.lang.String type,
93          java.lang.String tags, java.lang.String shortDescription,
94          java.lang.String longDescription, java.lang.String pageURL,
95          java.lang.String author, java.lang.String repoGroupId,
96          java.lang.String repoArtifactId, long[] licenseIds,
97          java.util.List thumbnails, java.util.List fullImages,
98          java.lang.Boolean addCommunityPermissions,
99          java.lang.Boolean addGuestPermissions,
100         java.lang.String[] communityPermissions,
101         java.lang.String[] guestPermissions)
102         throws com.liferay.portal.SystemException, 
103             com.liferay.portal.PortalException;
104 
105     public void addProductEntryResources(long productEntryId,
106         boolean addCommunityPermissions, boolean addGuestPermissions)
107         throws com.liferay.portal.SystemException, 
108             com.liferay.portal.PortalException;
109 
110     public void addProductEntryResources(
111         com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
112         boolean addCommunityPermissions, boolean addGuestPermissions)
113         throws com.liferay.portal.SystemException, 
114             com.liferay.portal.PortalException;
115 
116     public void addProductEntryResources(long productEntryId,
117         java.lang.String[] communityPermissions,
118         java.lang.String[] guestPermissions)
119         throws com.liferay.portal.SystemException, 
120             com.liferay.portal.PortalException;
121 
122     public void addProductEntryResources(
123         com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry,
124         java.lang.String[] communityPermissions,
125         java.lang.String[] guestPermissions)
126         throws com.liferay.portal.SystemException, 
127             com.liferay.portal.PortalException;
128 
129     public void deleteProductEntry(long productEntryId)
130         throws com.liferay.portal.SystemException, 
131             com.liferay.portal.PortalException;
132 
133     public void deleteProductEntry(
134         com.liferay.portlet.softwarecatalog.model.SCProductEntry productEntry)
135         throws com.liferay.portal.SystemException, 
136             com.liferay.portal.PortalException;
137 
138     public com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
139         long productEntryId)
140         throws com.liferay.portal.SystemException, 
141             com.liferay.portal.PortalException;
142 
143     public java.util.List getProductEntries(long groupId, int begin, int end)
144         throws com.liferay.portal.SystemException;
145 
146     public java.util.List getProductEntries(long groupId, int begin, int end,
147         com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.SystemException;
149 
150     public java.util.List getProductEntries(long groupId, long userId,
151         int begin, int end) throws com.liferay.portal.SystemException;
152 
153     public java.util.List getProductEntries(long groupId, long userId,
154         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
155         throws com.liferay.portal.SystemException;
156 
157     public int getProductEntriesCount(long groupId)
158         throws com.liferay.portal.SystemException;
159 
160     public int getProductEntriesCount(long groupId, long userId)
161         throws com.liferay.portal.SystemException;
162 
163     public java.lang.String getRepositoryXML(long groupId,
164         java.lang.String baseImageURL, java.util.Date oldestDate,
165         int maxNumOfVersions, java.util.Properties repoSettings)
166         throws com.liferay.portal.SystemException, 
167             com.liferay.portal.PortalException;
168 
169     public java.lang.String getRepositoryXML(long groupId,
170         java.lang.String version, java.lang.String baseImageURL,
171         java.util.Date oldestDate, int maxNumOfVersions,
172         java.util.Properties repoSettings)
173         throws com.liferay.portal.SystemException, 
174             com.liferay.portal.PortalException;
175 
176     public void reIndex(java.lang.String[] ids)
177         throws com.liferay.portal.SystemException;
178 
179     public com.liferay.portal.kernel.search.Hits search(long companyId,
180         long groupId, java.lang.String keywords, java.lang.String type)
181         throws com.liferay.portal.SystemException;
182 
183     public com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
184         long productEntryId, java.lang.String name, java.lang.String type,
185         java.lang.String tags, java.lang.String shortDescription,
186         java.lang.String longDescription, java.lang.String pageURL,
187         java.lang.String author, java.lang.String repoGroupId,
188         java.lang.String repoArtifactId, long[] licenseIds,
189         java.util.List thumbnails, java.util.List fullImages)
190         throws com.liferay.portal.SystemException, 
191             com.liferay.portal.PortalException;
192 }