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