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