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