1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.journal.service;
16  
17  import com.liferay.portal.kernel.annotation.Isolation;
18  import com.liferay.portal.kernel.annotation.Propagation;
19  import com.liferay.portal.kernel.annotation.Transactional;
20  import com.liferay.portal.kernel.exception.PortalException;
21  import com.liferay.portal.kernel.exception.SystemException;
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.kernel.exception.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.kernel.exception.PortalException,
59              com.liferay.portal.kernel.exception.SystemException;
60  
61      public void deleteJournalFeed(
62          com.liferay.portlet.journal.model.JournalFeed journalFeed)
63          throws com.liferay.portal.kernel.exception.SystemException;
64  
65      public java.util.List<Object> dynamicQuery(
66          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67          throws com.liferay.portal.kernel.exception.SystemException;
68  
69      public java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.kernel.exception.SystemException;
72  
73      public java.util.List<Object> dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75          int end,
76          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77          throws com.liferay.portal.kernel.exception.SystemException;
78  
79      public int dynamicQueryCount(
80          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81          throws com.liferay.portal.kernel.exception.SystemException;
82  
83      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84      public com.liferay.portlet.journal.model.JournalFeed getJournalFeed(long id)
85          throws com.liferay.portal.kernel.exception.PortalException,
86              com.liferay.portal.kernel.exception.SystemException;
87  
88      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89      public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getJournalFeeds(
90          int start, int end)
91          throws com.liferay.portal.kernel.exception.SystemException;
92  
93      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
94      public int getJournalFeedsCount()
95          throws com.liferay.portal.kernel.exception.SystemException;
96  
97      public com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
98          com.liferay.portlet.journal.model.JournalFeed journalFeed)
99          throws com.liferay.portal.kernel.exception.SystemException;
100 
101     public com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
102         com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
103         throws com.liferay.portal.kernel.exception.SystemException;
104 
105     public com.liferay.portlet.journal.model.JournalFeed addFeed(long userId,
106         long groupId, java.lang.String feedId, boolean autoFeedId,
107         java.lang.String name, java.lang.String description,
108         java.lang.String type, java.lang.String structureId,
109         java.lang.String templateId, java.lang.String rendererTemplateId,
110         int delta, 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         com.liferay.portal.service.ServiceContext serviceContext)
115         throws com.liferay.portal.kernel.exception.PortalException,
116             com.liferay.portal.kernel.exception.SystemException;
117 
118     public com.liferay.portlet.journal.model.JournalFeed addFeed(
119         java.lang.String uuid, long userId, long groupId,
120         java.lang.String feedId, 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         com.liferay.portal.service.ServiceContext serviceContext)
129         throws com.liferay.portal.kernel.exception.PortalException,
130             com.liferay.portal.kernel.exception.SystemException;
131 
132     public void addFeedResources(long feedId, boolean addCommunityPermissions,
133         boolean addGuestPermissions)
134         throws com.liferay.portal.kernel.exception.PortalException,
135             com.liferay.portal.kernel.exception.SystemException;
136 
137     public void addFeedResources(
138         com.liferay.portlet.journal.model.JournalFeed feed,
139         boolean addCommunityPermissions, boolean addGuestPermissions)
140         throws com.liferay.portal.kernel.exception.PortalException,
141             com.liferay.portal.kernel.exception.SystemException;
142 
143     public void addFeedResources(long feedId,
144         java.lang.String[] communityPermissions,
145         java.lang.String[] guestPermissions)
146         throws com.liferay.portal.kernel.exception.PortalException,
147             com.liferay.portal.kernel.exception.SystemException;
148 
149     public void addFeedResources(
150         com.liferay.portlet.journal.model.JournalFeed feed,
151         java.lang.String[] communityPermissions,
152         java.lang.String[] guestPermissions)
153         throws com.liferay.portal.kernel.exception.PortalException,
154             com.liferay.portal.kernel.exception.SystemException;
155 
156     public void deleteFeed(long feedId)
157         throws com.liferay.portal.kernel.exception.PortalException,
158             com.liferay.portal.kernel.exception.SystemException;
159 
160     public void deleteFeed(long groupId, java.lang.String feedId)
161         throws com.liferay.portal.kernel.exception.PortalException,
162             com.liferay.portal.kernel.exception.SystemException;
163 
164     public void deleteFeed(com.liferay.portlet.journal.model.JournalFeed feed)
165         throws com.liferay.portal.kernel.exception.PortalException,
166             com.liferay.portal.kernel.exception.SystemException;
167 
168     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169     public com.liferay.portlet.journal.model.JournalFeed getFeed(long feedId)
170         throws com.liferay.portal.kernel.exception.PortalException,
171             com.liferay.portal.kernel.exception.SystemException;
172 
173     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174     public com.liferay.portlet.journal.model.JournalFeed getFeed(long groupId,
175         java.lang.String feedId)
176         throws com.liferay.portal.kernel.exception.PortalException,
177             com.liferay.portal.kernel.exception.SystemException;
178 
179     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
181         throws com.liferay.portal.kernel.exception.SystemException;
182 
183     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
185         long groupId)
186         throws com.liferay.portal.kernel.exception.SystemException;
187 
188     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
190         long groupId, int start, int end)
191         throws com.liferay.portal.kernel.exception.SystemException;
192 
193     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194     public int getFeedsCount(long groupId)
195         throws com.liferay.portal.kernel.exception.SystemException;
196 
197     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
199         long companyId, long groupId, java.lang.String keywords, int start,
200         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
201         throws com.liferay.portal.kernel.exception.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 feedId,
206         java.lang.String name, java.lang.String description,
207         boolean andOperator, int start, int end,
208         com.liferay.portal.kernel.util.OrderByComparator obc)
209         throws com.liferay.portal.kernel.exception.SystemException;
210 
211     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212     public int searchCount(long companyId, long groupId,
213         java.lang.String keywords)
214         throws com.liferay.portal.kernel.exception.SystemException;
215 
216     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217     public int searchCount(long companyId, long groupId,
218         java.lang.String feedId, java.lang.String name,
219         java.lang.String description, boolean andOperator)
220         throws com.liferay.portal.kernel.exception.SystemException;
221 
222     public com.liferay.portlet.journal.model.JournalFeed updateFeed(
223         long groupId, java.lang.String feedId, java.lang.String name,
224         java.lang.String description, java.lang.String type,
225         java.lang.String structureId, java.lang.String templateId,
226         java.lang.String rendererTemplateId, int delta,
227         java.lang.String orderByCol, java.lang.String orderByType,
228         java.lang.String targetLayoutFriendlyUrl,
229         java.lang.String targetPortletId, java.lang.String contentField,
230         java.lang.String feedType, double feedVersion,
231         com.liferay.portal.service.ServiceContext serviceContext)
232         throws com.liferay.portal.kernel.exception.PortalException,
233             com.liferay.portal.kernel.exception.SystemException;
234 }