1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.journal.service;
16  
17  import com.liferay.portal.PortalException;
18  import com.liferay.portal.SystemException;
19  import com.liferay.portal.kernel.annotation.Isolation;
20  import com.liferay.portal.kernel.annotation.Propagation;
21  import com.liferay.portal.kernel.annotation.Transactional;
22  
23  /**
24   * <a href="JournalFeedLocalService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portlet.journal.service.impl.JournalFeedLocalServiceImpl}}.
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 based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       JournalFeedLocalServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface JournalFeedLocalService {
50      public com.liferay.portlet.journal.model.JournalFeed addJournalFeed(
51          com.liferay.portlet.journal.model.JournalFeed journalFeed)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portlet.journal.model.JournalFeed createJournalFeed(
55          long id);
56  
57      public void deleteJournalFeed(long id)
58          throws com.liferay.portal.PortalException,
59              com.liferay.portal.SystemException;
60  
61      public void deleteJournalFeed(
62          com.liferay.portlet.journal.model.JournalFeed journalFeed)
63          throws com.liferay.portal.SystemException;
64  
65      @SuppressWarnings("rawtypes")
66      public java.util.List dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException;
69  
70      @SuppressWarnings("rawtypes")
71      public java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.SystemException;
74  
75      @SuppressWarnings("rawtypes")
76      public java.util.List dynamicQuery(
77          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78          int end,
79          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80          throws com.liferay.portal.SystemException;
81  
82      public int dynamicQueryCount(
83          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84          throws com.liferay.portal.SystemException;
85  
86      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87      public com.liferay.portlet.journal.model.JournalFeed getJournalFeed(long id)
88          throws com.liferay.portal.PortalException,
89              com.liferay.portal.SystemException;
90  
91      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
92      public com.liferay.portlet.journal.model.JournalFeed getJournalFeedByUuidAndGroupId(
93          java.lang.String uuid, long groupId)
94          throws com.liferay.portal.PortalException,
95              com.liferay.portal.SystemException;
96  
97      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
98      public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getJournalFeeds(
99          int start, int end) throws com.liferay.portal.SystemException;
100 
101     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
102     public int getJournalFeedsCount() throws com.liferay.portal.SystemException;
103 
104     public com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
105         com.liferay.portlet.journal.model.JournalFeed journalFeed)
106         throws com.liferay.portal.SystemException;
107 
108     public com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
109         com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
110         throws com.liferay.portal.SystemException;
111 
112     public com.liferay.portlet.journal.model.JournalFeed addFeed(long userId,
113         long groupId, java.lang.String feedId, boolean autoFeedId,
114         java.lang.String name, java.lang.String description,
115         java.lang.String type, java.lang.String structureId,
116         java.lang.String templateId, java.lang.String rendererTemplateId,
117         int delta, 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         com.liferay.portal.service.ServiceContext serviceContext)
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 groupId,
127         java.lang.String feedId, 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         com.liferay.portal.service.ServiceContext serviceContext)
136         throws com.liferay.portal.PortalException,
137             com.liferay.portal.SystemException;
138 
139     public void addFeedResources(long feedId, boolean addCommunityPermissions,
140         boolean addGuestPermissions)
141         throws com.liferay.portal.PortalException,
142             com.liferay.portal.SystemException;
143 
144     public void addFeedResources(
145         com.liferay.portlet.journal.model.JournalFeed feed,
146         boolean addCommunityPermissions, boolean addGuestPermissions)
147         throws com.liferay.portal.PortalException,
148             com.liferay.portal.SystemException;
149 
150     public void addFeedResources(long feedId,
151         java.lang.String[] communityPermissions,
152         java.lang.String[] guestPermissions)
153         throws com.liferay.portal.PortalException,
154             com.liferay.portal.SystemException;
155 
156     public void addFeedResources(
157         com.liferay.portlet.journal.model.JournalFeed feed,
158         java.lang.String[] communityPermissions,
159         java.lang.String[] guestPermissions)
160         throws com.liferay.portal.PortalException,
161             com.liferay.portal.SystemException;
162 
163     public void deleteFeed(long feedId)
164         throws com.liferay.portal.PortalException,
165             com.liferay.portal.SystemException;
166 
167     public void deleteFeed(long groupId, java.lang.String feedId)
168         throws com.liferay.portal.PortalException,
169             com.liferay.portal.SystemException;
170 
171     public void deleteFeed(com.liferay.portlet.journal.model.JournalFeed feed)
172         throws com.liferay.portal.PortalException,
173             com.liferay.portal.SystemException;
174 
175     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176     public com.liferay.portlet.journal.model.JournalFeed getFeed(long feedId)
177         throws com.liferay.portal.PortalException,
178             com.liferay.portal.SystemException;
179 
180     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181     public com.liferay.portlet.journal.model.JournalFeed getFeed(long groupId,
182         java.lang.String feedId)
183         throws com.liferay.portal.PortalException,
184             com.liferay.portal.SystemException;
185 
186     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
188         throws com.liferay.portal.SystemException;
189 
190     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
192         long groupId) throws com.liferay.portal.SystemException;
193 
194     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
196         long groupId, int start, int end)
197         throws com.liferay.portal.SystemException;
198 
199     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200     public int getFeedsCount(long groupId)
201         throws com.liferay.portal.SystemException;
202 
203     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
205         long companyId, long groupId, java.lang.String keywords, int start,
206         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
207         throws com.liferay.portal.SystemException;
208 
209     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
211         long companyId, long groupId, java.lang.String feedId,
212         java.lang.String name, java.lang.String description,
213         boolean andOperator, int start, int end,
214         com.liferay.portal.kernel.util.OrderByComparator obc)
215         throws com.liferay.portal.SystemException;
216 
217     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218     public int searchCount(long companyId, long groupId,
219         java.lang.String keywords) throws com.liferay.portal.SystemException;
220 
221     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
222     public int searchCount(long companyId, long groupId,
223         java.lang.String feedId, java.lang.String name,
224         java.lang.String description, boolean andOperator)
225         throws com.liferay.portal.SystemException;
226 
227     public com.liferay.portlet.journal.model.JournalFeed updateFeed(
228         long groupId, java.lang.String feedId, java.lang.String name,
229         java.lang.String description, java.lang.String type,
230         java.lang.String structureId, java.lang.String templateId,
231         java.lang.String rendererTemplateId, int delta,
232         java.lang.String orderByCol, java.lang.String orderByType,
233         java.lang.String targetLayoutFriendlyUrl,
234         java.lang.String targetPortletId, java.lang.String contentField,
235         java.lang.String feedType, double feedVersion,
236         com.liferay.portal.service.ServiceContext serviceContext)
237         throws com.liferay.portal.PortalException,
238             com.liferay.portal.SystemException;
239 }