1
14
15 package com.liferay.portlet.blogs.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class BlogsEntryServiceUtil {
40 public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
41 java.lang.String title, java.lang.String content, int displayDateMonth,
42 int displayDateDay, int displayDateYear, int displayDateHour,
43 int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks,
44 java.lang.String[] trackbacks,
45 com.liferay.portal.service.ServiceContext serviceContext)
46 throws com.liferay.portal.kernel.exception.PortalException,
47 com.liferay.portal.kernel.exception.SystemException {
48 return getService()
49 .addEntry(title, content, displayDateMonth, displayDateDay,
50 displayDateYear, displayDateHour, displayDateMinute,
51 allowPingbacks, allowTrackbacks, trackbacks, serviceContext);
52 }
53
54 public static void deleteEntry(long entryId)
55 throws com.liferay.portal.kernel.exception.PortalException,
56 com.liferay.portal.kernel.exception.SystemException {
57 getService().deleteEntry(entryId);
58 }
59
60 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
61 long companyId, int status, int max)
62 throws com.liferay.portal.kernel.exception.PortalException,
63 com.liferay.portal.kernel.exception.SystemException {
64 return getService().getCompanyEntries(companyId, status, max);
65 }
66
67 public static java.lang.String getCompanyEntriesRSS(long companyId,
68 int status, int max, java.lang.String type, double version,
69 java.lang.String displayStyle, java.lang.String feedURL,
70 java.lang.String entryURL,
71 com.liferay.portal.theme.ThemeDisplay themeDisplay)
72 throws com.liferay.portal.kernel.exception.PortalException,
73 com.liferay.portal.kernel.exception.SystemException {
74 return getService()
75 .getCompanyEntriesRSS(companyId, status, max, type, version,
76 displayStyle, feedURL, entryURL, themeDisplay);
77 }
78
79 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
80 long entryId)
81 throws com.liferay.portal.kernel.exception.PortalException,
82 com.liferay.portal.kernel.exception.SystemException {
83 return getService().getEntry(entryId);
84 }
85
86 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
87 long groupId, java.lang.String urlTitle)
88 throws com.liferay.portal.kernel.exception.PortalException,
89 com.liferay.portal.kernel.exception.SystemException {
90 return getService().getEntry(groupId, urlTitle);
91 }
92
93 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
94 long groupId, int status, int max)
95 throws com.liferay.portal.kernel.exception.PortalException,
96 com.liferay.portal.kernel.exception.SystemException {
97 return getService().getGroupEntries(groupId, status, max);
98 }
99
100 public static java.lang.String getGroupEntriesRSS(long groupId, int status,
101 int max, java.lang.String type, double version,
102 java.lang.String displayStyle, java.lang.String feedURL,
103 java.lang.String entryURL,
104 com.liferay.portal.theme.ThemeDisplay themeDisplay)
105 throws com.liferay.portal.kernel.exception.PortalException,
106 com.liferay.portal.kernel.exception.SystemException {
107 return getService()
108 .getGroupEntriesRSS(groupId, status, max, type, version,
109 displayStyle, feedURL, entryURL, themeDisplay);
110 }
111
112 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupsEntries(
113 long companyId, long groupId, int status, int max)
114 throws com.liferay.portal.kernel.exception.PortalException,
115 com.liferay.portal.kernel.exception.SystemException {
116 return getService().getGroupsEntries(companyId, groupId, status, max);
117 }
118
119 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
120 long organizationId, int status, int max)
121 throws com.liferay.portal.kernel.exception.PortalException,
122 com.liferay.portal.kernel.exception.SystemException {
123 return getService().getOrganizationEntries(organizationId, status, max);
124 }
125
126 public static java.lang.String getOrganizationEntriesRSS(
127 long organizationId, int status, int max, java.lang.String type,
128 double version, java.lang.String displayStyle,
129 java.lang.String feedURL, java.lang.String entryURL,
130 com.liferay.portal.theme.ThemeDisplay themeDisplay)
131 throws com.liferay.portal.kernel.exception.PortalException,
132 com.liferay.portal.kernel.exception.SystemException {
133 return getService()
134 .getOrganizationEntriesRSS(organizationId, status, max,
135 type, version, displayStyle, feedURL, entryURL, themeDisplay);
136 }
137
138 public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
139 long entryId, java.lang.String title, java.lang.String content,
140 int displayDateMonth, int displayDateDay, int displayDateYear,
141 int displayDateHour, int displayDateMinute, boolean allowPingbacks,
142 boolean allowTrackbacks, java.lang.String[] trackbacks,
143 com.liferay.portal.service.ServiceContext serviceContext)
144 throws com.liferay.portal.kernel.exception.PortalException,
145 com.liferay.portal.kernel.exception.SystemException {
146 return getService()
147 .updateEntry(entryId, title, content, displayDateMonth,
148 displayDateDay, displayDateYear, displayDateHour,
149 displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
150 serviceContext);
151 }
152
153 public static BlogsEntryService getService() {
154 if (_service == null) {
155 _service = (BlogsEntryService)PortalBeanLocatorUtil.locate(BlogsEntryService.class.getName());
156 }
157
158 return _service;
159 }
160
161 public void setService(BlogsEntryService service) {
162 _service = service;
163 }
164
165 private static BlogsEntryService _service;
166 }