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.journal.service;
24  
25  
26  /**
27   * <a href="JournalFeedLocalService.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.journal.service.impl.JournalFeedLocalServiceImpl</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.journal.service.JournalFeedLocalServiceUtil
48   *
49   */
50  public interface JournalFeedLocalService {
51      public com.liferay.portlet.journal.model.JournalFeed addJournalFeed(
52          com.liferay.portlet.journal.model.JournalFeed journalFeed)
53          throws com.liferay.portal.SystemException;
54  
55      public com.liferay.portlet.journal.model.JournalFeed createJournalFeed(
56          long id);
57  
58      public void deleteJournalFeed(long id)
59          throws com.liferay.portal.SystemException,
60              com.liferay.portal.PortalException;
61  
62      public void deleteJournalFeed(
63          com.liferay.portlet.journal.model.JournalFeed journalFeed)
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.journal.model.JournalFeed getJournalFeed(long id)
75          throws com.liferay.portal.SystemException,
76              com.liferay.portal.PortalException;
77  
78      public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getJournalFeeds(
79          int start, int end) throws com.liferay.portal.SystemException;
80  
81      public int getJournalFeedsCount() throws com.liferay.portal.SystemException;
82  
83      public com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
84          com.liferay.portlet.journal.model.JournalFeed journalFeed)
85          throws com.liferay.portal.SystemException;
86  
87      public com.liferay.portlet.journal.model.JournalFeed addFeed(long userId,
88          long plid, java.lang.String feedId, boolean autoFeedId,
89          java.lang.String name, java.lang.String description,
90          java.lang.String type, java.lang.String structureId,
91          java.lang.String templateId, java.lang.String rendererTemplateId,
92          int delta, java.lang.String orderByCol, java.lang.String orderByType,
93          java.lang.String targetLayoutFriendlyUrl,
94          java.lang.String targetPortletId, java.lang.String contentField,
95          java.lang.String feedType, double feedVersion,
96          boolean addCommunityPermissions, boolean addGuestPermissions)
97          throws com.liferay.portal.PortalException,
98              com.liferay.portal.SystemException;
99  
100     public com.liferay.portlet.journal.model.JournalFeed addFeed(long userId,
101         long plid, java.lang.String feedId, boolean autoFeedId,
102         java.lang.String name, java.lang.String description,
103         java.lang.String type, java.lang.String structureId,
104         java.lang.String templateId, java.lang.String rendererTemplateId,
105         int delta, java.lang.String orderByCol, java.lang.String orderByType,
106         java.lang.String targetLayoutFriendlyUrl,
107         java.lang.String targetPortletId, java.lang.String contentField,
108         java.lang.String feedType, double feedVersion,
109         java.lang.String[] communityPermissions,
110         java.lang.String[] guestPermissions)
111         throws com.liferay.portal.PortalException,
112             com.liferay.portal.SystemException;
113 
114     public com.liferay.portlet.journal.model.JournalFeed addFeed(
115         java.lang.String uuid, long userId, long plid, java.lang.String feedId,
116         boolean autoFeedId, java.lang.String name,
117         java.lang.String description, java.lang.String type,
118         java.lang.String structureId, java.lang.String templateId,
119         java.lang.String rendererTemplateId, int delta,
120         java.lang.String orderByCol, java.lang.String orderByType,
121         java.lang.String targetLayoutFriendlyUrl,
122         java.lang.String targetPortletId, java.lang.String contentField,
123         java.lang.String feedType, double feedVersion,
124         boolean addCommunityPermissions, boolean addGuestPermissions)
125         throws com.liferay.portal.PortalException,
126             com.liferay.portal.SystemException;
127 
128     public com.liferay.portlet.journal.model.JournalFeed addFeed(
129         java.lang.String uuid, long userId, long plid, java.lang.String feedId,
130         boolean autoFeedId, java.lang.String name,
131         java.lang.String description, java.lang.String type,
132         java.lang.String structureId, java.lang.String templateId,
133         java.lang.String rendererTemplateId, int delta,
134         java.lang.String orderByCol, java.lang.String orderByType,
135         java.lang.String targetLayoutFriendlyUrl,
136         java.lang.String targetPortletId, java.lang.String contentField,
137         java.lang.String feedType, double feedVersion,
138         java.lang.String[] communityPermissions,
139         java.lang.String[] guestPermissions)
140         throws com.liferay.portal.PortalException,
141             com.liferay.portal.SystemException;
142 
143     public com.liferay.portlet.journal.model.JournalFeed addFeed(
144         java.lang.String uuid, long userId, long plid, java.lang.String feedId,
145         boolean autoFeedId, java.lang.String name,
146         java.lang.String description, java.lang.String type,
147         java.lang.String structureId, java.lang.String templateId,
148         java.lang.String rendererTemplateId, int delta,
149         java.lang.String orderByCol, java.lang.String orderByType,
150         java.lang.String targetLayoutFriendlyUrl,
151         java.lang.String targetPortletId, java.lang.String contentField,
152         java.lang.String feedType, double feedVersion,
153         java.lang.Boolean addCommunityPermissions,
154         java.lang.Boolean addGuestPermissions,
155         java.lang.String[] communityPermissions,
156         java.lang.String[] guestPermissions)
157         throws com.liferay.portal.PortalException,
158             com.liferay.portal.SystemException;
159 
160     public com.liferay.portlet.journal.model.JournalFeed addFeedToGroup(
161         java.lang.String uuid, long userId, long groupId,
162         java.lang.String feedId, boolean autoFeedId, java.lang.String name,
163         java.lang.String description, java.lang.String type,
164         java.lang.String structureId, java.lang.String templateId,
165         java.lang.String rendererTemplateId, int delta,
166         java.lang.String orderByCol, java.lang.String orderByType,
167         java.lang.String targetLayoutFriendlyUrl,
168         java.lang.String targetPortletId, java.lang.String contentField,
169         java.lang.String feedType, double feedVersion,
170         java.lang.Boolean addCommunityPermissions,
171         java.lang.Boolean addGuestPermissions,
172         java.lang.String[] communityPermissions,
173         java.lang.String[] guestPermissions)
174         throws com.liferay.portal.PortalException,
175             com.liferay.portal.SystemException;
176 
177     public void addFeedResources(long feedId, boolean addCommunityPermissions,
178         boolean addGuestPermissions)
179         throws com.liferay.portal.PortalException,
180             com.liferay.portal.SystemException;
181 
182     public void addFeedResources(
183         com.liferay.portlet.journal.model.JournalFeed feed,
184         boolean addCommunityPermissions, boolean addGuestPermissions)
185         throws com.liferay.portal.PortalException,
186             com.liferay.portal.SystemException;
187 
188     public void addFeedResources(long feedId,
189         java.lang.String[] communityPermissions,
190         java.lang.String[] guestPermissions)
191         throws com.liferay.portal.PortalException,
192             com.liferay.portal.SystemException;
193 
194     public void addFeedResources(
195         com.liferay.portlet.journal.model.JournalFeed feed,
196         java.lang.String[] communityPermissions,
197         java.lang.String[] guestPermissions)
198         throws com.liferay.portal.PortalException,
199             com.liferay.portal.SystemException;
200 
201     public void deleteFeed(long feedId)
202         throws com.liferay.portal.PortalException,
203             com.liferay.portal.SystemException;
204 
205     public void deleteFeed(long groupId, java.lang.String feedId)
206         throws com.liferay.portal.PortalException,
207             com.liferay.portal.SystemException;
208 
209     public void deleteFeed(com.liferay.portlet.journal.model.JournalFeed feed)
210         throws com.liferay.portal.PortalException,
211             com.liferay.portal.SystemException;
212 
213     public com.liferay.portlet.journal.model.JournalFeed getFeed(long feedId)
214         throws com.liferay.portal.PortalException,
215             com.liferay.portal.SystemException;
216 
217     public com.liferay.portlet.journal.model.JournalFeed getFeed(long groupId,
218         java.lang.String feedId)
219         throws com.liferay.portal.PortalException,
220             com.liferay.portal.SystemException;
221 
222     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
223         throws com.liferay.portal.SystemException;
224 
225     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
226         long groupId) throws com.liferay.portal.SystemException;
227 
228     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
229         long groupId, int start, int end)
230         throws com.liferay.portal.SystemException;
231 
232     public int getFeedsCount(long groupId)
233         throws com.liferay.portal.SystemException;
234 
235     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
236         long companyId, long groupId, java.lang.String keywords, int start,
237         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
238         throws com.liferay.portal.SystemException;
239 
240     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
241         long companyId, long groupId, java.lang.String feedId,
242         java.lang.String name, java.lang.String description,
243         boolean andOperator, int start, int end,
244         com.liferay.portal.kernel.util.OrderByComparator obc)
245         throws com.liferay.portal.SystemException;
246 
247     public int searchCount(long companyId, long groupId,
248         java.lang.String keywords) throws com.liferay.portal.SystemException;
249 
250     public int searchCount(long companyId, long groupId,
251         java.lang.String feedId, java.lang.String name,
252         java.lang.String description, boolean andOperator)
253         throws com.liferay.portal.SystemException;
254 
255     public com.liferay.portlet.journal.model.JournalFeed updateFeed(
256         long groupId, java.lang.String feedId, java.lang.String name,
257         java.lang.String description, java.lang.String type,
258         java.lang.String structureId, java.lang.String templateId,
259         java.lang.String rendererTemplateId, int delta,
260         java.lang.String orderByCol, java.lang.String orderByType,
261         java.lang.String targetLayoutFriendlyUrl,
262         java.lang.String targetPortletId, java.lang.String contentField,
263         java.lang.String feedType, double feedVersion)
264         throws com.liferay.portal.PortalException,
265             com.liferay.portal.SystemException;
266 }