1
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
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 }