001
014
015 package com.liferay.portlet.blogs.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
036 public class BlogsEntryServiceUtil {
037 public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
038 java.lang.String title, java.lang.String content, int displayDateMonth,
039 int displayDateDay, int displayDateYear, int displayDateHour,
040 int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks,
041 java.lang.String[] trackbacks,
042 com.liferay.portal.service.ServiceContext serviceContext)
043 throws com.liferay.portal.kernel.exception.PortalException,
044 com.liferay.portal.kernel.exception.SystemException {
045 return getService()
046 .addEntry(title, content, displayDateMonth, displayDateDay,
047 displayDateYear, displayDateHour, displayDateMinute,
048 allowPingbacks, allowTrackbacks, trackbacks, serviceContext);
049 }
050
051 public static void deleteEntry(long entryId)
052 throws com.liferay.portal.kernel.exception.PortalException,
053 com.liferay.portal.kernel.exception.SystemException {
054 getService().deleteEntry(entryId);
055 }
056
057 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
058 long companyId, int status, int max)
059 throws com.liferay.portal.kernel.exception.PortalException,
060 com.liferay.portal.kernel.exception.SystemException {
061 return getService().getCompanyEntries(companyId, status, max);
062 }
063
064 public static java.lang.String getCompanyEntriesRSS(long companyId,
065 int status, int max, java.lang.String type, double version,
066 java.lang.String displayStyle, java.lang.String feedURL,
067 java.lang.String entryURL,
068 com.liferay.portal.theme.ThemeDisplay themeDisplay)
069 throws com.liferay.portal.kernel.exception.PortalException,
070 com.liferay.portal.kernel.exception.SystemException {
071 return getService()
072 .getCompanyEntriesRSS(companyId, status, max, type, version,
073 displayStyle, feedURL, entryURL, themeDisplay);
074 }
075
076 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
077 long entryId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 return getService().getEntry(entryId);
081 }
082
083 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
084 long groupId, java.lang.String urlTitle)
085 throws com.liferay.portal.kernel.exception.PortalException,
086 com.liferay.portal.kernel.exception.SystemException {
087 return getService().getEntry(groupId, urlTitle);
088 }
089
090 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
091 long groupId, int status, int max)
092 throws com.liferay.portal.kernel.exception.SystemException {
093 return getService().getGroupEntries(groupId, status, max);
094 }
095
096 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
097 long groupId, int status, int start, int end)
098 throws com.liferay.portal.kernel.exception.SystemException {
099 return getService().getGroupEntries(groupId, status, start, end);
100 }
101
102 public static int getGroupEntriesCount(long groupId, int status)
103 throws com.liferay.portal.kernel.exception.SystemException {
104 return getService().getGroupEntriesCount(groupId, status);
105 }
106
107 public static java.lang.String getGroupEntriesRSS(long groupId, int status,
108 int max, java.lang.String type, double version,
109 java.lang.String displayStyle, java.lang.String feedURL,
110 java.lang.String entryURL,
111 com.liferay.portal.theme.ThemeDisplay themeDisplay)
112 throws com.liferay.portal.kernel.exception.PortalException,
113 com.liferay.portal.kernel.exception.SystemException {
114 return getService()
115 .getGroupEntriesRSS(groupId, status, max, type, version,
116 displayStyle, feedURL, entryURL, themeDisplay);
117 }
118
119 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
120 long companyId, long groupId, int status, int max)
121 throws com.liferay.portal.kernel.exception.PortalException,
122 com.liferay.portal.kernel.exception.SystemException {
123 return getService().getGroupsEntries(companyId, groupId, status, max);
124 }
125
126 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
127 long organizationId, int status, int max)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException {
130 return getService().getOrganizationEntries(organizationId, status, max);
131 }
132
133 public static java.lang.String getOrganizationEntriesRSS(
134 long organizationId, int status, int max, java.lang.String type,
135 double version, java.lang.String displayStyle,
136 java.lang.String feedURL, java.lang.String entryURL,
137 com.liferay.portal.theme.ThemeDisplay themeDisplay)
138 throws com.liferay.portal.kernel.exception.PortalException,
139 com.liferay.portal.kernel.exception.SystemException {
140 return getService()
141 .getOrganizationEntriesRSS(organizationId, status, max,
142 type, version, displayStyle, feedURL, entryURL, themeDisplay);
143 }
144
145 public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
146 long entryId, java.lang.String title, java.lang.String content,
147 int displayDateMonth, int displayDateDay, int displayDateYear,
148 int displayDateHour, int displayDateMinute, boolean allowPingbacks,
149 boolean allowTrackbacks, java.lang.String[] trackbacks,
150 com.liferay.portal.service.ServiceContext serviceContext)
151 throws com.liferay.portal.kernel.exception.PortalException,
152 com.liferay.portal.kernel.exception.SystemException {
153 return getService()
154 .updateEntry(entryId, title, content, displayDateMonth,
155 displayDateDay, displayDateYear, displayDateHour,
156 displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
157 serviceContext);
158 }
159
160 public static BlogsEntryService getService() {
161 if (_service == null) {
162 _service = (BlogsEntryService)PortalBeanLocatorUtil.locate(BlogsEntryService.class.getName());
163 }
164
165 return _service;
166 }
167
168 public void setService(BlogsEntryService service) {
169 _service = service;
170 }
171
172 private static BlogsEntryService _service;
173 }