001
014
015 package com.liferay.portlet.blogs.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020 import com.liferay.portal.kernel.transaction.Isolation;
021 import com.liferay.portal.kernel.transaction.Propagation;
022 import com.liferay.portal.kernel.transaction.Transactional;
023 import com.liferay.portal.security.ac.AccessControlled;
024 import com.liferay.portal.service.BaseService;
025
026
039 @AccessControlled
040 @JSONWebService
041 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
042 PortalException.class, SystemException.class})
043 public interface BlogsEntryService extends BaseService {
044
049
050
055 public java.lang.String getBeanIdentifier();
056
057
062 public void setBeanIdentifier(java.lang.String beanIdentifier);
063
064 public com.liferay.portlet.blogs.model.BlogsEntry addEntry(
065 java.lang.String title, java.lang.String description,
066 java.lang.String content, int displayDateMonth, int displayDateDay,
067 int displayDateYear, int displayDateHour, int displayDateMinute,
068 boolean allowPingbacks, boolean allowTrackbacks,
069 java.lang.String[] trackbacks, boolean smallImage,
070 java.lang.String smallImageURL, java.lang.String smallImageFileName,
071 java.io.InputStream smallImageInputStream,
072 com.liferay.portal.service.ServiceContext serviceContext)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException;
075
076 public void deleteEntry(long entryId)
077 throws com.liferay.portal.kernel.exception.PortalException,
078 com.liferay.portal.kernel.exception.SystemException;
079
080 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
081 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
082 long companyId, java.util.Date displayDate, int status, int max)
083 throws com.liferay.portal.kernel.exception.PortalException,
084 com.liferay.portal.kernel.exception.SystemException;
085
086 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087 public java.lang.String getCompanyEntriesRSS(long companyId,
088 java.util.Date displayDate, int status, int max, java.lang.String type,
089 double version, java.lang.String displayStyle,
090 java.lang.String feedURL, java.lang.String entryURL,
091 com.liferay.portal.theme.ThemeDisplay themeDisplay)
092 throws com.liferay.portal.kernel.exception.PortalException,
093 com.liferay.portal.kernel.exception.SystemException;
094
095 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
096 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
097 throws com.liferay.portal.kernel.exception.PortalException,
098 com.liferay.portal.kernel.exception.SystemException;
099
100 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
101 public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
102 java.lang.String urlTitle)
103 throws com.liferay.portal.kernel.exception.PortalException,
104 com.liferay.portal.kernel.exception.SystemException;
105
106 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
107 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
108 long groupId, java.util.Date displayDate, int status, int max)
109 throws com.liferay.portal.kernel.exception.SystemException;
110
111 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
113 long groupId, java.util.Date displayDate, int status, int start, int end)
114 throws com.liferay.portal.kernel.exception.SystemException;
115
116 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
117 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
118 long groupId, int status, int max)
119 throws com.liferay.portal.kernel.exception.SystemException;
120
121 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
122 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
123 long groupId, int status, int start, int end)
124 throws com.liferay.portal.kernel.exception.SystemException;
125
126 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127 public int getGroupEntriesCount(long groupId, java.util.Date displayDate,
128 int status) throws com.liferay.portal.kernel.exception.SystemException;
129
130 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
131 public int getGroupEntriesCount(long groupId, int status)
132 throws com.liferay.portal.kernel.exception.SystemException;
133
134 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
135 public java.lang.String getGroupEntriesRSS(long groupId,
136 java.util.Date displayDate, int status, int max, java.lang.String type,
137 double version, java.lang.String displayStyle,
138 java.lang.String feedURL, java.lang.String entryURL,
139 com.liferay.portal.theme.ThemeDisplay themeDisplay)
140 throws com.liferay.portal.kernel.exception.PortalException,
141 com.liferay.portal.kernel.exception.SystemException;
142
143 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
145 long companyId, long groupId, java.util.Date displayDate, int status,
146 int max)
147 throws com.liferay.portal.kernel.exception.PortalException,
148 com.liferay.portal.kernel.exception.SystemException;
149
150 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
151 public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
152 long organizationId, java.util.Date displayDate, int status, int max)
153 throws com.liferay.portal.kernel.exception.PortalException,
154 com.liferay.portal.kernel.exception.SystemException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public java.lang.String getOrganizationEntriesRSS(long organizationId,
158 java.util.Date displayDate, int status, int max, java.lang.String type,
159 double version, java.lang.String displayStyle,
160 java.lang.String feedURL, java.lang.String entryURL,
161 com.liferay.portal.theme.ThemeDisplay themeDisplay)
162 throws com.liferay.portal.kernel.exception.PortalException,
163 com.liferay.portal.kernel.exception.SystemException;
164
165 public void moveEntryToTrash(long entryId)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException;
168
169 public void restoreEntryFromTrash(long entryId)
170 throws com.liferay.portal.kernel.exception.PortalException,
171 com.liferay.portal.kernel.exception.SystemException;
172
173 public void subscribe(long groupId)
174 throws com.liferay.portal.kernel.exception.PortalException,
175 com.liferay.portal.kernel.exception.SystemException;
176
177 public void unsubscribe(long groupId)
178 throws com.liferay.portal.kernel.exception.PortalException,
179 com.liferay.portal.kernel.exception.SystemException;
180
181 public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
182 long entryId, java.lang.String title, java.lang.String description,
183 java.lang.String content, int displayDateMonth, int displayDateDay,
184 int displayDateYear, int displayDateHour, int displayDateMinute,
185 boolean allowPingbacks, boolean allowTrackbacks,
186 java.lang.String[] trackbacks, boolean smallImage,
187 java.lang.String smallImageURL, java.lang.String smallImageFileName,
188 java.io.InputStream smallImageInputStream,
189 com.liferay.portal.service.ServiceContext serviceContext)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException;
192 }