1   /**
2    * Copyright (c) 2000-2009 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   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.journal.service;
21  
22  import com.liferay.portal.PortalException;
23  import com.liferay.portal.SystemException;
24  import com.liferay.portal.kernel.annotation.Isolation;
25  import com.liferay.portal.kernel.annotation.Propagation;
26  import com.liferay.portal.kernel.annotation.Transactional;
27  
28  /**
29   * <a href="JournalFeedLocalService.java.html"><b><i>View Source</i></b></a>
30   *
31   * <p>
32   * ServiceBuilder generated this class. Modifications in this class will be
33   * overwritten the next time is generated.
34   * </p>
35   *
36   * <p>
37   * This interface defines the service. The default implementation is
38   * <code>com.liferay.portlet.journal.service.impl.JournalFeedLocalServiceImpl</code>.
39   * Modify methods in that class and rerun ServiceBuilder to populate this class
40   * and all other generated classes.
41   * </p>
42   *
43   * <p>
44   * 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.
45   * </p>
46   *
47   * @author Brian Wing Shun Chan
48   *
49   * @see com.liferay.portlet.journal.service.JournalFeedLocalServiceUtil
50   *
51   */
52  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
53      PortalException.class, SystemException.class})
54  public interface JournalFeedLocalService {
55      public com.liferay.portlet.journal.model.JournalFeed addJournalFeed(
56          com.liferay.portlet.journal.model.JournalFeed journalFeed)
57          throws com.liferay.portal.SystemException;
58  
59      public com.liferay.portlet.journal.model.JournalFeed createJournalFeed(
60          long id);
61  
62      public void deleteJournalFeed(long id)
63          throws com.liferay.portal.SystemException,
64              com.liferay.portal.PortalException;
65  
66      public void deleteJournalFeed(
67          com.liferay.portlet.journal.model.JournalFeed journalFeed)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List<Object> dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
72          throws com.liferay.portal.SystemException;
73  
74      public java.util.List<Object> dynamicQuery(
75          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76          int end) throws com.liferay.portal.SystemException;
77  
78      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
79      public com.liferay.portlet.journal.model.JournalFeed getJournalFeed(long id)
80          throws com.liferay.portal.SystemException,
81              com.liferay.portal.PortalException;
82  
83      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84      public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getJournalFeeds(
85          int start, int end) throws com.liferay.portal.SystemException;
86  
87      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88      public int getJournalFeedsCount() throws com.liferay.portal.SystemException;
89  
90      public com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
91          com.liferay.portlet.journal.model.JournalFeed journalFeed)
92          throws com.liferay.portal.SystemException;
93  
94      public com.liferay.portlet.journal.model.JournalFeed updateJournalFeed(
95          com.liferay.portlet.journal.model.JournalFeed journalFeed, boolean merge)
96          throws com.liferay.portal.SystemException;
97  
98      public com.liferay.portlet.journal.model.JournalFeed addFeed(long userId,
99          long groupId, java.lang.String feedId, boolean autoFeedId,
100         java.lang.String name, java.lang.String description,
101         java.lang.String type, java.lang.String structureId,
102         java.lang.String templateId, java.lang.String rendererTemplateId,
103         int delta, java.lang.String orderByCol, java.lang.String orderByType,
104         java.lang.String targetLayoutFriendlyUrl,
105         java.lang.String targetPortletId, java.lang.String contentField,
106         java.lang.String feedType, double feedVersion,
107         com.liferay.portal.service.ServiceContext serviceContext)
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 groupId,
113         java.lang.String feedId, 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         com.liferay.portal.service.ServiceContext serviceContext)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException;
124 
125     public void addFeedResources(long feedId, boolean addCommunityPermissions,
126         boolean addGuestPermissions)
127         throws com.liferay.portal.PortalException,
128             com.liferay.portal.SystemException;
129 
130     public void addFeedResources(
131         com.liferay.portlet.journal.model.JournalFeed feed,
132         boolean addCommunityPermissions, boolean addGuestPermissions)
133         throws com.liferay.portal.PortalException,
134             com.liferay.portal.SystemException;
135 
136     public void addFeedResources(long feedId,
137         java.lang.String[] communityPermissions,
138         java.lang.String[] guestPermissions)
139         throws com.liferay.portal.PortalException,
140             com.liferay.portal.SystemException;
141 
142     public void addFeedResources(
143         com.liferay.portlet.journal.model.JournalFeed feed,
144         java.lang.String[] communityPermissions,
145         java.lang.String[] guestPermissions)
146         throws com.liferay.portal.PortalException,
147             com.liferay.portal.SystemException;
148 
149     public void deleteFeed(long feedId)
150         throws com.liferay.portal.PortalException,
151             com.liferay.portal.SystemException;
152 
153     public void deleteFeed(long groupId, java.lang.String feedId)
154         throws com.liferay.portal.PortalException,
155             com.liferay.portal.SystemException;
156 
157     public void deleteFeed(com.liferay.portlet.journal.model.JournalFeed feed)
158         throws com.liferay.portal.PortalException,
159             com.liferay.portal.SystemException;
160 
161     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162     public com.liferay.portlet.journal.model.JournalFeed getFeed(long feedId)
163         throws com.liferay.portal.PortalException,
164             com.liferay.portal.SystemException;
165 
166     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167     public com.liferay.portlet.journal.model.JournalFeed getFeed(long groupId,
168         java.lang.String feedId)
169         throws com.liferay.portal.PortalException,
170             com.liferay.portal.SystemException;
171 
172     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds()
174         throws com.liferay.portal.SystemException;
175 
176     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
178         long groupId) throws com.liferay.portal.SystemException;
179 
180     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> getFeeds(
182         long groupId, int start, int end)
183         throws com.liferay.portal.SystemException;
184 
185     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186     public int getFeedsCount(long groupId)
187         throws com.liferay.portal.SystemException;
188 
189     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
191         long companyId, long groupId, java.lang.String keywords, int start,
192         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
193         throws com.liferay.portal.SystemException;
194 
195     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196     public java.util.List<com.liferay.portlet.journal.model.JournalFeed> search(
197         long companyId, long groupId, java.lang.String feedId,
198         java.lang.String name, java.lang.String description,
199         boolean andOperator, int start, int end,
200         com.liferay.portal.kernel.util.OrderByComparator obc)
201         throws com.liferay.portal.SystemException;
202 
203     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204     public int searchCount(long companyId, long groupId,
205         java.lang.String keywords) throws com.liferay.portal.SystemException;
206 
207     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208     public int searchCount(long companyId, long groupId,
209         java.lang.String feedId, java.lang.String name,
210         java.lang.String description, boolean andOperator)
211         throws com.liferay.portal.SystemException;
212 
213     public com.liferay.portlet.journal.model.JournalFeed updateFeed(
214         long groupId, java.lang.String feedId, java.lang.String name,
215         java.lang.String description, java.lang.String type,
216         java.lang.String structureId, java.lang.String templateId,
217         java.lang.String rendererTemplateId, int delta,
218         java.lang.String orderByCol, java.lang.String orderByType,
219         java.lang.String targetLayoutFriendlyUrl,
220         java.lang.String targetPortletId, java.lang.String contentField,
221         java.lang.String feedType, double feedVersion,
222         com.liferay.portal.service.ServiceContext serviceContext)
223         throws com.liferay.portal.PortalException,
224             com.liferay.portal.SystemException;
225 }