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