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<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
98 long companyId, int max)
99 throws com.liferay.portal.PortalException,
100 com.liferay.portal.SystemException, java.rmi.RemoteException {
101 BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
102
103 return blogsEntryService.getCompanyEntries(companyId, max);
104 }
105
106 public static java.lang.String getCompanyEntriesRSS(long companyId,
107 int max, java.lang.String type, double version,
108 java.lang.String displayStyle, java.lang.String feedURL,
109 java.lang.String entryURL)
110 throws com.liferay.portal.PortalException,
111 com.liferay.portal.SystemException, java.rmi.RemoteException {
112 BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
113
114 return blogsEntryService.getCompanyEntriesRSS(companyId, max, type,
115 version, displayStyle, feedURL, entryURL);
116 }
117
118 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
119 long entryId)
120 throws com.liferay.portal.PortalException,
121 com.liferay.portal.SystemException, java.rmi.RemoteException {
122 BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
123
124 return blogsEntryService.getEntry(entryId);
125 }
126
127 public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
128 long groupId, java.lang.String urlTitle)
129 throws com.liferay.portal.PortalException,
130 com.liferay.portal.SystemException, java.rmi.RemoteException {
131 BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
132
133 return blogsEntryService.getEntry(groupId, urlTitle);
134 }
135
136 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
137 long groupId, int max)
138 throws com.liferay.portal.PortalException,
139 com.liferay.portal.SystemException, java.rmi.RemoteException {
140 BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
141
142 return blogsEntryService.getGroupEntries(groupId, max);
143 }
144
145 public static java.lang.String getGroupEntriesRSS(long groupId, int max,
146 java.lang.String type, double version, java.lang.String displayStyle,
147 java.lang.String feedURL, java.lang.String entryURL)
148 throws com.liferay.portal.PortalException,
149 com.liferay.portal.SystemException, java.rmi.RemoteException {
150 BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
151
152 return blogsEntryService.getGroupEntriesRSS(groupId, max, type,
153 version, displayStyle, feedURL, entryURL);
154 }
155
156 public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
157 long organizationId, int max)
158 throws com.liferay.portal.PortalException,
159 com.liferay.portal.SystemException, java.rmi.RemoteException {
160 BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
161
162 return blogsEntryService.getOrganizationEntries(organizationId, max);
163 }
164
165 public static java.lang.String getOrganizationEntriesRSS(
166 long organizationId, int max, java.lang.String type, double version,
167 java.lang.String displayStyle, java.lang.String feedURL,
168 java.lang.String entryURL)
169 throws com.liferay.portal.PortalException,
170 com.liferay.portal.SystemException, java.rmi.RemoteException {
171 BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
172
173 return blogsEntryService.getOrganizationEntriesRSS(organizationId, max,
174 type, version, displayStyle, feedURL, entryURL);
175 }
176
177 public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
178 long entryId, java.lang.String title, java.lang.String content,
179 int displayDateMonth, int displayDateDay, int displayDateYear,
180 int displayDateHour, int displayDateMinute,
181 java.lang.String[] tagsEntries,
182 com.liferay.portal.theme.ThemeDisplay themeDisplay)
183 throws com.liferay.portal.PortalException,
184 com.liferay.portal.SystemException, java.rmi.RemoteException {
185 BlogsEntryService blogsEntryService = BlogsEntryServiceFactory.getService();
186
187 return blogsEntryService.updateEntry(entryId, title, content,
188 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
189 displayDateMinute, tagsEntries, themeDisplay);
190 }
191 }