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