001
014
015 package com.liferay.portlet.journal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
036 public class JournalArticleServiceUtil {
037 public static com.liferay.portlet.journal.model.JournalArticle addArticle(
038 long groupId, java.lang.String articleId, boolean autoArticleId,
039 java.lang.String title, java.lang.String description,
040 java.lang.String content, java.lang.String type,
041 java.lang.String structureId, java.lang.String templateId,
042 int displayDateMonth, int displayDateDay, int displayDateYear,
043 int displayDateHour, int displayDateMinute, int expirationDateMonth,
044 int expirationDateDay, int expirationDateYear, int expirationDateHour,
045 int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
046 int reviewDateDay, int reviewDateYear, int reviewDateHour,
047 int reviewDateMinute, boolean neverReview, boolean indexable,
048 boolean smallImage, java.lang.String smallImageURL,
049 java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
050 java.lang.String articleURL,
051 com.liferay.portal.service.ServiceContext serviceContext)
052 throws com.liferay.portal.kernel.exception.PortalException,
053 com.liferay.portal.kernel.exception.SystemException {
054 return getService()
055 .addArticle(groupId, articleId, autoArticleId, title,
056 description, content, type, structureId, templateId,
057 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
058 displayDateMinute, expirationDateMonth, expirationDateDay,
059 expirationDateYear, expirationDateHour, expirationDateMinute,
060 neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear,
061 reviewDateHour, reviewDateMinute, neverReview, indexable,
062 smallImage, smallImageURL, smallFile, images, articleURL,
063 serviceContext);
064 }
065
066 public static com.liferay.portlet.journal.model.JournalArticle addArticle(
067 long groupId, java.lang.String articleId, boolean autoArticleId,
068 java.lang.String title, java.lang.String description,
069 java.lang.String content, java.lang.String type,
070 java.lang.String structureId, java.lang.String templateId,
071 int displayDateMonth, int displayDateDay, int displayDateYear,
072 int displayDateHour, int displayDateMinute, int expirationDateMonth,
073 int expirationDateDay, int expirationDateYear, int expirationDateHour,
074 int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
075 int reviewDateDay, int reviewDateYear, int reviewDateHour,
076 int reviewDateMinute, boolean neverReview, boolean indexable,
077 java.lang.String articleURL,
078 com.liferay.portal.service.ServiceContext serviceContext)
079 throws com.liferay.portal.kernel.exception.PortalException,
080 com.liferay.portal.kernel.exception.SystemException {
081 return getService()
082 .addArticle(groupId, articleId, autoArticleId, title,
083 description, content, type, structureId, templateId,
084 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
085 displayDateMinute, expirationDateMonth, expirationDateDay,
086 expirationDateYear, expirationDateHour, expirationDateMinute,
087 neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear,
088 reviewDateHour, reviewDateMinute, neverReview, indexable,
089 articleURL, serviceContext);
090 }
091
092 public static com.liferay.portlet.journal.model.JournalArticle copyArticle(
093 long groupId, java.lang.String oldArticleId,
094 java.lang.String newArticleId, boolean autoArticleId, double version)
095 throws com.liferay.portal.kernel.exception.PortalException,
096 com.liferay.portal.kernel.exception.SystemException {
097 return getService()
098 .copyArticle(groupId, oldArticleId, newArticleId,
099 autoArticleId, version);
100 }
101
102 public static void deleteArticle(long groupId, java.lang.String articleId,
103 double version, java.lang.String articleURL,
104 com.liferay.portal.service.ServiceContext serviceContext)
105 throws com.liferay.portal.kernel.exception.PortalException,
106 com.liferay.portal.kernel.exception.SystemException {
107 getService()
108 .deleteArticle(groupId, articleId, version, articleURL,
109 serviceContext);
110 }
111
112 public static void deleteArticle(long groupId, java.lang.String articleId,
113 java.lang.String articleURL,
114 com.liferay.portal.service.ServiceContext serviceContext)
115 throws com.liferay.portal.kernel.exception.PortalException,
116 com.liferay.portal.kernel.exception.SystemException {
117 getService()
118 .deleteArticle(groupId, articleId, articleURL, serviceContext);
119 }
120
121 public static com.liferay.portlet.journal.model.JournalArticle expireArticle(
122 long groupId, java.lang.String articleId, double version,
123 java.lang.String articleURL,
124 com.liferay.portal.service.ServiceContext serviceContext)
125 throws com.liferay.portal.kernel.exception.PortalException,
126 com.liferay.portal.kernel.exception.SystemException {
127 return getService()
128 .expireArticle(groupId, articleId, version, articleURL,
129 serviceContext);
130 }
131
132 public static com.liferay.portlet.journal.model.JournalArticle getArticle(
133 long groupId, java.lang.String articleId)
134 throws com.liferay.portal.kernel.exception.PortalException,
135 com.liferay.portal.kernel.exception.SystemException {
136 return getService().getArticle(groupId, articleId);
137 }
138
139 public static com.liferay.portlet.journal.model.JournalArticle getArticle(
140 long groupId, java.lang.String articleId, double version)
141 throws com.liferay.portal.kernel.exception.PortalException,
142 com.liferay.portal.kernel.exception.SystemException {
143 return getService().getArticle(groupId, articleId, version);
144 }
145
146 public static com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
147 long groupId, java.lang.String urlTitle)
148 throws com.liferay.portal.kernel.exception.PortalException,
149 com.liferay.portal.kernel.exception.SystemException {
150 return getService().getArticleByUrlTitle(groupId, urlTitle);
151 }
152
153 public static java.lang.String getArticleContent(long groupId,
154 java.lang.String articleId, double version,
155 java.lang.String languageId,
156 com.liferay.portal.theme.ThemeDisplay themeDisplay)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException {
159 return getService()
160 .getArticleContent(groupId, articleId, version, languageId,
161 themeDisplay);
162 }
163
164 public static java.lang.String getArticleContent(long groupId,
165 java.lang.String articleId, java.lang.String languageId,
166 com.liferay.portal.theme.ThemeDisplay themeDisplay)
167 throws com.liferay.portal.kernel.exception.PortalException,
168 com.liferay.portal.kernel.exception.SystemException {
169 return getService()
170 .getArticleContent(groupId, articleId, languageId,
171 themeDisplay);
172 }
173
174 public static com.liferay.portlet.journal.model.JournalArticle getLatestArticle(
175 long groupId, java.lang.String articleId, int status)
176 throws com.liferay.portal.kernel.exception.PortalException,
177 com.liferay.portal.kernel.exception.SystemException {
178 return getService().getLatestArticle(groupId, articleId, status);
179 }
180
181 public static void removeArticleLocale(long companyId,
182 java.lang.String languageId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 getService().removeArticleLocale(companyId, languageId);
186 }
187
188 public static com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
189 long groupId, java.lang.String articleId, double version,
190 java.lang.String languageId)
191 throws com.liferay.portal.kernel.exception.PortalException,
192 com.liferay.portal.kernel.exception.SystemException {
193 return getService()
194 .removeArticleLocale(groupId, articleId, version, languageId);
195 }
196
197 public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
198 long groupId, java.lang.String articleId, double version,
199 java.lang.String content)
200 throws com.liferay.portal.kernel.exception.PortalException,
201 com.liferay.portal.kernel.exception.SystemException {
202 return getService().updateArticle(groupId, articleId, version, content);
203 }
204
205 public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
206 long groupId, java.lang.String articleId, double version,
207 java.lang.String title, java.lang.String description,
208 java.lang.String content, java.lang.String type,
209 java.lang.String structureId, java.lang.String templateId,
210 int displayDateMonth, int displayDateDay, int displayDateYear,
211 int displayDateHour, int displayDateMinute, int expirationDateMonth,
212 int expirationDateDay, int expirationDateYear, int expirationDateHour,
213 int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
214 int reviewDateDay, int reviewDateYear, int reviewDateHour,
215 int reviewDateMinute, boolean neverReview, boolean indexable,
216 boolean smallImage, java.lang.String smallImageURL,
217 java.io.File smallFile, java.util.Map<java.lang.String, byte[]> images,
218 java.lang.String articleURL,
219 com.liferay.portal.service.ServiceContext serviceContext)
220 throws com.liferay.portal.kernel.exception.PortalException,
221 com.liferay.portal.kernel.exception.SystemException {
222 return getService()
223 .updateArticle(groupId, articleId, version, title,
224 description, content, type, structureId, templateId,
225 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
226 displayDateMinute, expirationDateMonth, expirationDateDay,
227 expirationDateYear, expirationDateHour, expirationDateMinute,
228 neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear,
229 reviewDateHour, reviewDateMinute, neverReview, indexable,
230 smallImage, smallImageURL, smallFile, images, articleURL,
231 serviceContext);
232 }
233
234 public static com.liferay.portlet.journal.model.JournalArticle updateContent(
235 long groupId, java.lang.String articleId, double version,
236 java.lang.String content)
237 throws com.liferay.portal.kernel.exception.PortalException,
238 com.liferay.portal.kernel.exception.SystemException {
239 return getService().updateContent(groupId, articleId, version, content);
240 }
241
242 public static JournalArticleService getService() {
243 if (_service == null) {
244 _service = (JournalArticleService)PortalBeanLocatorUtil.locate(JournalArticleService.class.getName());
245 }
246
247 return _service;
248 }
249
250 public void setService(JournalArticleService service) {
251 _service = service;
252 }
253
254 private static JournalArticleService _service;
255 }