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.blogs.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="BlogsEntryService.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.blogs.service.impl.BlogsEntryServiceImpl}}.
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 remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       BlogsEntryServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface BlogsEntryService {
50      public com.liferay.portlet.blogs.model.BlogsEntry addEntry(
51          java.lang.String title, java.lang.String content, int displayDateMonth,
52          int displayDateDay, int displayDateYear, int displayDateHour,
53          int displayDateMinute, boolean draft, boolean allowTrackbacks,
54          java.lang.String[] trackbacks,
55          com.liferay.portal.service.ServiceContext serviceContext)
56          throws com.liferay.portal.PortalException,
57              com.liferay.portal.SystemException;
58  
59      public void deleteEntry(long entryId)
60          throws com.liferay.portal.PortalException,
61              com.liferay.portal.SystemException;
62  
63      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
64      public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
65          long companyId, int max)
66          throws com.liferay.portal.PortalException,
67              com.liferay.portal.SystemException;
68  
69      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
70      public java.lang.String getCompanyEntriesRSS(long companyId, int max,
71          java.lang.String type, double version, java.lang.String displayStyle,
72          java.lang.String feedURL, java.lang.String entryURL,
73          com.liferay.portal.theme.ThemeDisplay themeDisplay)
74          throws com.liferay.portal.PortalException,
75              com.liferay.portal.SystemException;
76  
77      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78      public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
79          throws com.liferay.portal.PortalException,
80              com.liferay.portal.SystemException;
81  
82      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
83      public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
84          java.lang.String urlTitle)
85          throws com.liferay.portal.PortalException,
86              com.liferay.portal.SystemException;
87  
88      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89      public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
90          long groupId, int max)
91          throws com.liferay.portal.PortalException,
92              com.liferay.portal.SystemException;
93  
94      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95      public java.lang.String getGroupEntriesRSS(long groupId, int max,
96          java.lang.String type, double version, java.lang.String displayStyle,
97          java.lang.String feedURL, java.lang.String entryURL,
98          com.liferay.portal.theme.ThemeDisplay themeDisplay)
99          throws com.liferay.portal.PortalException,
100             com.liferay.portal.SystemException;
101 
102     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
104         long companyId, long groupId, int max)
105         throws com.liferay.portal.PortalException,
106             com.liferay.portal.SystemException;
107 
108     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
110         long organizationId, int max)
111         throws com.liferay.portal.PortalException,
112             com.liferay.portal.SystemException;
113 
114     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
115     public java.lang.String getOrganizationEntriesRSS(long organizationId,
116         int max, java.lang.String type, double version,
117         java.lang.String displayStyle, java.lang.String feedURL,
118         java.lang.String entryURL,
119         com.liferay.portal.theme.ThemeDisplay themeDisplay)
120         throws com.liferay.portal.PortalException,
121             com.liferay.portal.SystemException;
122 
123     public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
124         long entryId, java.lang.String title, java.lang.String content,
125         int displayDateMonth, int displayDateDay, int displayDateYear,
126         int displayDateHour, int displayDateMinute, boolean draft,
127         boolean allowTrackbacks, java.lang.String[] trackbacks,
128         com.liferay.portal.service.ServiceContext serviceContext)
129         throws com.liferay.portal.PortalException,
130             com.liferay.portal.SystemException;
131 }