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> getOrganizationEntries(
113 long organizationId, int status, int max)
114 throws com.liferay.portal.kernel.exception.PortalException,
115 com.liferay.portal.kernel.exception.SystemException {
116 return getService().getOrganizationEntries(organizationId, status, max);
117 }
118
119 public static java.lang.String getOrganizationEntriesRSS(
120 long organizationId, int status, int max, java.lang.String type,
121 double version, java.lang.String displayStyle,
122 java.lang.String feedURL, java.lang.String entryURL,
123 com.liferay.portal.theme.ThemeDisplay themeDisplay)
124 throws com.liferay.portal.kernel.exception.PortalException,
125 com.liferay.portal.kernel.exception.SystemException {
126 return getService()
127 .getOrganizationEntriesRSS(organizationId, status, max,
128 type, version, displayStyle, feedURL, entryURL, themeDisplay);
129 }
130
131 public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
132 long entryId, java.lang.String title, java.lang.String content,
133 int displayDateMonth, int displayDateDay, int displayDateYear,
134 int displayDateHour, int displayDateMinute, boolean allowPingbacks,
135 boolean allowTrackbacks, java.lang.String[] trackbacks,
136 com.liferay.portal.service.ServiceContext serviceContext)
137 throws com.liferay.portal.kernel.exception.PortalException,
138 com.liferay.portal.kernel.exception.SystemException {
139 return getService()
140 .updateEntry(entryId, title, content, displayDateMonth,
141 displayDateDay, displayDateYear, displayDateHour,
142 displayDateMinute, allowPingbacks, allowTrackbacks, trackbacks,
143 serviceContext);
144 }
145
146 public static BlogsEntryService getService() {
147 if (_service == null) {
148 _service = (BlogsEntryService)PortalBeanLocatorUtil.locate(BlogsEntryService.class.getName());
149 }
150
151 return _service;
152 }
153
154 public void setService(BlogsEntryService service) {
155 _service = service;
156 }
157
158 private static BlogsEntryService _service;
159 }