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.blogs.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="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 allowPingbacks, boolean allowTrackbacks,
54          java.lang.String[] trackbacks,
55          com.liferay.portal.service.ServiceContext serviceContext)
56          throws com.liferay.portal.kernel.exception.PortalException,
57              com.liferay.portal.kernel.exception.SystemException;
58  
59      public void deleteEntry(long entryId)
60          throws com.liferay.portal.kernel.exception.PortalException,
61              com.liferay.portal.kernel.exception.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 status, int max)
66          throws com.liferay.portal.kernel.exception.PortalException,
67              com.liferay.portal.kernel.exception.SystemException;
68  
69      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
70      public java.lang.String getCompanyEntriesRSS(long companyId, int status,
71          int max, java.lang.String type, double version,
72          java.lang.String displayStyle, java.lang.String feedURL,
73          java.lang.String entryURL,
74          com.liferay.portal.theme.ThemeDisplay themeDisplay)
75          throws com.liferay.portal.kernel.exception.PortalException,
76              com.liferay.portal.kernel.exception.SystemException;
77  
78      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
79      public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
80          throws com.liferay.portal.kernel.exception.PortalException,
81              com.liferay.portal.kernel.exception.SystemException;
82  
83      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84      public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
85          java.lang.String urlTitle)
86          throws com.liferay.portal.kernel.exception.PortalException,
87              com.liferay.portal.kernel.exception.SystemException;
88  
89      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90      public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
91          long groupId, int status, int max)
92          throws com.liferay.portal.kernel.exception.PortalException,
93              com.liferay.portal.kernel.exception.SystemException;
94  
95      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
96      public java.lang.String getGroupEntriesRSS(long groupId, int status,
97          int max, java.lang.String type, double version,
98          java.lang.String displayStyle, java.lang.String feedURL,
99          java.lang.String entryURL,
100         com.liferay.portal.theme.ThemeDisplay themeDisplay)
101         throws com.liferay.portal.kernel.exception.PortalException,
102             com.liferay.portal.kernel.exception.SystemException;
103 
104     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
105     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
106         long organizationId, int status, int max)
107         throws com.liferay.portal.kernel.exception.PortalException,
108             com.liferay.portal.kernel.exception.SystemException;
109 
110     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
111     public java.lang.String getOrganizationEntriesRSS(long organizationId,
112         int status, int max, java.lang.String type, double version,
113         java.lang.String displayStyle, java.lang.String feedURL,
114         java.lang.String entryURL,
115         com.liferay.portal.theme.ThemeDisplay themeDisplay)
116         throws com.liferay.portal.kernel.exception.PortalException,
117             com.liferay.portal.kernel.exception.SystemException;
118 
119     public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
120         long entryId, java.lang.String title, java.lang.String content,
121         int displayDateMonth, int displayDateDay, int displayDateYear,
122         int displayDateHour, int displayDateMinute, boolean allowPingbacks,
123         boolean allowTrackbacks, java.lang.String[] trackbacks,
124         com.liferay.portal.service.ServiceContext serviceContext)
125         throws com.liferay.portal.kernel.exception.PortalException,
126             com.liferay.portal.kernel.exception.SystemException;
127 }