001
014
015 package com.liferay.portlet.blogs.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class BlogsEntryServiceUtil {
038
043
044
049 public static java.lang.String getBeanIdentifier() {
050 return getService().getBeanIdentifier();
051 }
052
053
058 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059 getService().setBeanIdentifier(beanIdentifier);
060 }
061
062 public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
063 java.lang.String title, java.lang.String description,
064 java.lang.String content, int displayDateMonth, int displayDateDay,
065 int displayDateYear, int displayDateHour, int displayDateMinute,
066 boolean allowPingbacks, boolean allowTrackbacks,
067 java.lang.String[] trackbacks, boolean smallImage,
068 java.lang.String smallImageURL, java.lang.String smallImageFileName,
069 java.io.InputStream smallImageInputStream,
070 com.liferay.portal.service.ServiceContext serviceContext)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException {
073 return getService()
074 .addEntry(title, description, content, displayDateMonth,
075 displayDateDay, displayDateYear, displayDateHour,
076 displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
077 smallImage, smallImageURL, smallImageFileName,
078 smallImageInputStream, serviceContext);
079 }
080
081 public static void deleteEntry(long entryId)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException {
084 getService().deleteEntry(entryId);
085 }
086
087 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
088 long companyId, java.util.Date displayDate, int status, int max)
089 throws com.liferay.portal.kernel.exception.PortalException,
090 com.liferay.portal.kernel.exception.SystemException {
091 return getService()
092 .getCompanyEntries(companyId, displayDate, status, max);
093 }
094
095 public static java.lang.String getCompanyEntriesRSS(long companyId,
096 java.util.Date displayDate, int status, int max, java.lang.String type,
097 double version, java.lang.String displayStyle,
098 java.lang.String feedURL, java.lang.String entryURL,
099 com.liferay.portal.theme.ThemeDisplay themeDisplay)
100 throws com.liferay.portal.kernel.exception.PortalException,
101 com.liferay.portal.kernel.exception.SystemException {
102 return getService()
103 .getCompanyEntriesRSS(companyId, displayDate, status, max,
104 type, version, displayStyle, feedURL, entryURL, themeDisplay);
105 }
106
107 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
108 long entryId)
109 throws com.liferay.portal.kernel.exception.PortalException,
110 com.liferay.portal.kernel.exception.SystemException {
111 return getService().getEntry(entryId);
112 }
113
114 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
115 long groupId, java.lang.String urlTitle)
116 throws com.liferay.portal.kernel.exception.PortalException,
117 com.liferay.portal.kernel.exception.SystemException {
118 return getService().getEntry(groupId, urlTitle);
119 }
120
121 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
122 long groupId, java.util.Date displayDate, int status, int max)
123 throws com.liferay.portal.kernel.exception.SystemException {
124 return getService().getGroupEntries(groupId, displayDate, status, max);
125 }
126
127 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
128 long groupId, java.util.Date displayDate, int status, int start, int end)
129 throws com.liferay.portal.kernel.exception.SystemException {
130 return getService()
131 .getGroupEntries(groupId, displayDate, status, start, end);
132 }
133
134 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
135 long groupId, int status, int max)
136 throws com.liferay.portal.kernel.exception.SystemException {
137 return getService().getGroupEntries(groupId, status, max);
138 }
139
140 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
141 long groupId, int status, int start, int end)
142 throws com.liferay.portal.kernel.exception.SystemException {
143 return getService().getGroupEntries(groupId, status, start, end);
144 }
145
146 public static int getGroupEntriesCount(long groupId,
147 java.util.Date displayDate, int status)
148 throws com.liferay.portal.kernel.exception.SystemException {
149 return getService().getGroupEntriesCount(groupId, displayDate, status);
150 }
151
152 public static int getGroupEntriesCount(long groupId, int status)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getService().getGroupEntriesCount(groupId, status);
155 }
156
157 public static java.lang.String getGroupEntriesRSS(long groupId,
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 return getService()
165 .getGroupEntriesRSS(groupId, displayDate, status, max, type,
166 version, displayStyle, feedURL, entryURL, themeDisplay);
167 }
168
169 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
170 long companyId, long groupId, java.util.Date displayDate, int status,
171 int max)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException {
174 return getService()
175 .getGroupsEntries(companyId, groupId, displayDate, status,
176 max);
177 }
178
179 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
180 long organizationId, java.util.Date displayDate, int status, int max)
181 throws com.liferay.portal.kernel.exception.PortalException,
182 com.liferay.portal.kernel.exception.SystemException {
183 return getService()
184 .getOrganizationEntries(organizationId, displayDate, status,
185 max);
186 }
187
188 public static java.lang.String getOrganizationEntriesRSS(
189 long organizationId, java.util.Date displayDate, int status, int max,
190 java.lang.String type, double version, java.lang.String displayStyle,
191 java.lang.String feedURL, java.lang.String entryURL,
192 com.liferay.portal.theme.ThemeDisplay themeDisplay)
193 throws com.liferay.portal.kernel.exception.PortalException,
194 com.liferay.portal.kernel.exception.SystemException {
195 return getService()
196 .getOrganizationEntriesRSS(organizationId, displayDate,
197 status, max, type, version, displayStyle, feedURL, entryURL,
198 themeDisplay);
199 }
200
201 public static com.liferay.portlet.blogs.model.BlogsEntry moveEntryToTrash(
202 long entryId)
203 throws com.liferay.portal.kernel.exception.PortalException,
204 com.liferay.portal.kernel.exception.SystemException {
205 return getService().moveEntryToTrash(entryId);
206 }
207
208 public static void restoreEntryFromTrash(long entryId)
209 throws com.liferay.portal.kernel.exception.PortalException,
210 com.liferay.portal.kernel.exception.SystemException {
211 getService().restoreEntryFromTrash(entryId);
212 }
213
214 public static void subscribe(long groupId)
215 throws com.liferay.portal.kernel.exception.PortalException,
216 com.liferay.portal.kernel.exception.SystemException {
217 getService().subscribe(groupId);
218 }
219
220 public static void unsubscribe(long groupId)
221 throws com.liferay.portal.kernel.exception.PortalException,
222 com.liferay.portal.kernel.exception.SystemException {
223 getService().unsubscribe(groupId);
224 }
225
226 public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
227 long entryId, java.lang.String title, java.lang.String description,
228 java.lang.String content, int displayDateMonth, int displayDateDay,
229 int displayDateYear, int displayDateHour, int displayDateMinute,
230 boolean allowPingbacks, boolean allowTrackbacks,
231 java.lang.String[] trackbacks, boolean smallImage,
232 java.lang.String smallImageURL, java.lang.String smallImageFileName,
233 java.io.InputStream smallImageInputStream,
234 com.liferay.portal.service.ServiceContext serviceContext)
235 throws com.liferay.portal.kernel.exception.PortalException,
236 com.liferay.portal.kernel.exception.SystemException {
237 return getService()
238 .updateEntry(entryId, title, description, content,
239 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
240 displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
241 smallImage, smallImageURL, smallImageFileName,
242 smallImageInputStream, serviceContext);
243 }
244
245 public static BlogsEntryService getService() {
246 if (_service == null) {
247 _service = (BlogsEntryService)PortalBeanLocatorUtil.locate(BlogsEntryService.class.getName());
248
249 ReferenceRegistry.registerReference(BlogsEntryServiceUtil.class,
250 "_service");
251 }
252
253 return _service;
254 }
255
256
259 public void setService(BlogsEntryService service) {
260 }
261
262 private static BlogsEntryService _service;
263 }