1
22
23 package com.liferay.portlet.blogs.service;
24
25
26
53 public class BlogsEntryServiceUtil {
54 public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
55 long plid, java.lang.String title, java.lang.String content,
56 int displayDateMonth, int displayDateDay, int displayDateYear,
57 int displayDateHour, int displayDateMinute, boolean draft,
58 boolean allowTrackbacks, java.lang.String[] trackbacks,
59 java.lang.String[] tagsEntries, boolean addCommunityPermissions,
60 boolean addGuestPermissions,
61 com.liferay.portal.theme.ThemeDisplay themeDisplay)
62 throws com.liferay.portal.PortalException,
63 com.liferay.portal.SystemException, java.rmi.RemoteException {
64 BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
65
66 return blogsEntryService.addEntry(plid, title, content,
67 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
68 displayDateMinute, draft, allowTrackbacks, trackbacks, tagsEntries,
69 addCommunityPermissions, addGuestPermissions, themeDisplay);
70 }
71
72 public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
73 long plid, java.lang.String title, java.lang.String content,
74 int displayDateMonth, int displayDateDay, int displayDateYear,
75 int displayDateHour, int displayDateMinute, boolean draft,
76 boolean allowTrackbacks, java.lang.String[] trackbacks,
77 java.lang.String[] tagsEntries,
78 java.lang.String[] communityPermissions,
79 java.lang.String[] guestPermissions,
80 com.liferay.portal.theme.ThemeDisplay themeDisplay)
81 throws com.liferay.portal.PortalException,
82 com.liferay.portal.SystemException, java.rmi.RemoteException {
83 BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
84
85 return blogsEntryService.addEntry(plid, title, content,
86 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
87 displayDateMinute, draft, allowTrackbacks, trackbacks, tagsEntries,
88 communityPermissions, guestPermissions, themeDisplay);
89 }
90
91 public static void deleteEntry(long entryId)
92 throws com.liferay.portal.PortalException,
93 com.liferay.portal.SystemException, java.rmi.RemoteException {
94 BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
95
96 blogsEntryService.deleteEntry(entryId);
97 }
98
99 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
100 long companyId, int max)
101 throws com.liferay.portal.PortalException,
102 com.liferay.portal.SystemException, java.rmi.RemoteException {
103 BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
104
105 return blogsEntryService.getCompanyEntries(companyId, max);
106 }
107
108 public static java.lang.String getCompanyEntriesRSS(long companyId,
109 int max, java.lang.String type, double version,
110 java.lang.String displayStyle, java.lang.String feedURL,
111 java.lang.String entryURL,
112 com.liferay.portal.theme.ThemeDisplay themeDisplay)
113 throws com.liferay.portal.PortalException,
114 com.liferay.portal.SystemException, java.rmi.RemoteException {
115 BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
116
117 return blogsEntryService.getCompanyEntriesRSS(companyId, max, type,
118 version, displayStyle, feedURL, entryURL, themeDisplay);
119 }
120
121 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
122 long entryId)
123 throws com.liferay.portal.PortalException,
124 com.liferay.portal.SystemException, java.rmi.RemoteException {
125 BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
126
127 return blogsEntryService.getEntry(entryId);
128 }
129
130 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
131 long groupId, java.lang.String urlTitle)
132 throws com.liferay.portal.PortalException,
133 com.liferay.portal.SystemException, java.rmi.RemoteException {
134 BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
135
136 return blogsEntryService.getEntry(groupId, urlTitle);
137 }
138
139 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
140 long groupId, int max)
141 throws com.liferay.portal.PortalException,
142 com.liferay.portal.SystemException, java.rmi.RemoteException {
143 BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
144
145 return blogsEntryService.getGroupEntries(groupId, max);
146 }
147
148 public static java.lang.String getGroupEntriesRSS(long groupId, int max,
149 java.lang.String type, double version, java.lang.String displayStyle,
150 java.lang.String feedURL, java.lang.String entryURL,
151 com.liferay.portal.theme.ThemeDisplay themeDisplay)
152 throws com.liferay.portal.PortalException,
153 com.liferay.portal.SystemException, java.rmi.RemoteException {
154 BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
155
156 return blogsEntryService.getGroupEntriesRSS(groupId, max, type,
157 version, displayStyle, feedURL, entryURL, themeDisplay);
158 }
159
160 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
161 long organizationId, int max)
162 throws com.liferay.portal.PortalException,
163 com.liferay.portal.SystemException, java.rmi.RemoteException {
164 BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
165
166 return blogsEntryService.getOrganizationEntries(organizationId, max);
167 }
168
169 public static java.lang.String getOrganizationEntriesRSS(
170 long organizationId, int max, java.lang.String type, double version,
171 java.lang.String displayStyle, java.lang.String feedURL,
172 java.lang.String entryURL,
173 com.liferay.portal.theme.ThemeDisplay themeDisplay)
174 throws com.liferay.portal.PortalException,
175 com.liferay.portal.SystemException, java.rmi.RemoteException {
176 BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
177
178 return blogsEntryService.getOrganizationEntriesRSS(organizationId, max,
179 type, version, displayStyle, feedURL, entryURL, themeDisplay);
180 }
181
182 public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
183 long entryId, java.lang.String title, java.lang.String content,
184 int displayDateMonth, int displayDateDay, int displayDateYear,
185 int displayDateHour, int displayDateMinute, boolean draft,
186 boolean allowTrackbacks, java.lang.String[] trackbacks,
187 java.lang.String[] tagsEntries,
188 com.liferay.portal.theme.ThemeDisplay themeDisplay)
189 throws com.liferay.portal.PortalException,
190 com.liferay.portal.SystemException, java.rmi.RemoteException {
191 BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
192
193 return blogsEntryService.updateEntry(entryId, title, content,
194 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
195 displayDateMinute, draft, allowTrackbacks, trackbacks, tagsEntries,
196 themeDisplay);
197 }
198 }