1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.journal.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="JournalArticleServiceUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * <p>
28   * This class provides static methods for the
29   * {@link JournalArticleService} bean. The static methods of
30   * this class calls the same methods of the bean instance. It's convenient to be
31   * able to just write one line to call a method on a bean instead of writing a
32   * lookup call and a method call.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       JournalArticleService
37   * @generated
38   */
39  public class JournalArticleServiceUtil {
40      public static com.liferay.portlet.journal.model.JournalArticle addArticle(
41          long groupId, java.lang.String articleId, boolean autoArticleId,
42          java.lang.String title, java.lang.String description,
43          java.lang.String content, java.lang.String type,
44          java.lang.String structureId, java.lang.String templateId,
45          int displayDateMonth, int displayDateDay, int displayDateYear,
46          int displayDateHour, int displayDateMinute, int expirationDateMonth,
47          int expirationDateDay, int expirationDateYear, int expirationDateHour,
48          int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
49          int reviewDateDay, int reviewDateYear, int reviewDateHour,
50          int reviewDateMinute, boolean neverReview, boolean indexable,
51          java.lang.String articleURL,
52          com.liferay.portal.service.ServiceContext serviceContext)
53          throws com.liferay.portal.PortalException,
54              com.liferay.portal.SystemException {
55          return getService()
56                     .addArticle(groupId, articleId, autoArticleId, title,
57              description, content, type, structureId, templateId,
58              displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
59              displayDateMinute, expirationDateMonth, expirationDateDay,
60              expirationDateYear, expirationDateHour, expirationDateMinute,
61              neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear,
62              reviewDateHour, reviewDateMinute, neverReview, indexable,
63              articleURL, serviceContext);
64      }
65  
66      public static com.liferay.portlet.journal.model.JournalArticle addArticle(
67          long groupId, java.lang.String articleId, boolean autoArticleId,
68          java.lang.String title, java.lang.String description,
69          java.lang.String content, java.lang.String type,
70          java.lang.String structureId, java.lang.String templateId,
71          int displayDateMonth, int displayDateDay, int displayDateYear,
72          int displayDateHour, int displayDateMinute, int expirationDateMonth,
73          int expirationDateDay, int expirationDateYear, int expirationDateHour,
74          int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
75          int reviewDateDay, int reviewDateYear, int reviewDateHour,
76          int reviewDateMinute, boolean neverReview, boolean indexable,
77          boolean smallImage, java.lang.String smallImageURL,
78          java.io.File smallFile, java.util.Map<String, byte[]> images,
79          java.lang.String articleURL,
80          com.liferay.portal.service.ServiceContext serviceContext)
81          throws com.liferay.portal.PortalException,
82              com.liferay.portal.SystemException {
83          return getService()
84                     .addArticle(groupId, articleId, autoArticleId, title,
85              description, content, type, structureId, templateId,
86              displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
87              displayDateMinute, expirationDateMonth, expirationDateDay,
88              expirationDateYear, expirationDateHour, expirationDateMinute,
89              neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear,
90              reviewDateHour, reviewDateMinute, neverReview, indexable,
91              smallImage, smallImageURL, smallFile, images, articleURL,
92              serviceContext);
93      }
94  
95      public static com.liferay.portlet.journal.model.JournalArticle approveArticle(
96          long groupId, java.lang.String articleId, double version,
97          java.lang.String articleURL,
98          com.liferay.portal.service.ServiceContext serviceContext)
99          throws com.liferay.portal.PortalException,
100             com.liferay.portal.SystemException {
101         return getService()
102                    .approveArticle(groupId, articleId, version, articleURL,
103             serviceContext);
104     }
105 
106     public static com.liferay.portlet.journal.model.JournalArticle copyArticle(
107         long groupId, java.lang.String oldArticleId,
108         java.lang.String newArticleId, boolean autoArticleId, double version)
109         throws com.liferay.portal.PortalException,
110             com.liferay.portal.SystemException {
111         return getService()
112                    .copyArticle(groupId, oldArticleId, newArticleId,
113             autoArticleId, version);
114     }
115 
116     public static com.liferay.portlet.journal.model.JournalArticle getArticle(
117         long groupId, java.lang.String articleId)
118         throws com.liferay.portal.PortalException,
119             com.liferay.portal.SystemException {
120         return getService().getArticle(groupId, articleId);
121     }
122 
123     public static com.liferay.portlet.journal.model.JournalArticle getArticle(
124         long groupId, java.lang.String articleId, double version)
125         throws com.liferay.portal.PortalException,
126             com.liferay.portal.SystemException {
127         return getService().getArticle(groupId, articleId, version);
128     }
129 
130     public static com.liferay.portlet.journal.model.JournalArticle getArticleByUrlTitle(
131         long groupId, java.lang.String urlTitle)
132         throws com.liferay.portal.PortalException,
133             com.liferay.portal.SystemException {
134         return getService().getArticleByUrlTitle(groupId, urlTitle);
135     }
136 
137     public static java.lang.String getArticleContent(long groupId,
138         java.lang.String articleId, java.lang.String languageId,
139         com.liferay.portal.theme.ThemeDisplay themeDisplay)
140         throws com.liferay.portal.PortalException,
141             com.liferay.portal.SystemException {
142         return getService()
143                    .getArticleContent(groupId, articleId, languageId,
144             themeDisplay);
145     }
146 
147     public static java.lang.String getArticleContent(long groupId,
148         java.lang.String articleId, double version,
149         java.lang.String languageId,
150         com.liferay.portal.theme.ThemeDisplay themeDisplay)
151         throws com.liferay.portal.PortalException,
152             com.liferay.portal.SystemException {
153         return getService()
154                    .getArticleContent(groupId, articleId, version, languageId,
155             themeDisplay);
156     }
157 
158     public static void deleteArticle(long groupId, java.lang.String articleId,
159         double version, java.lang.String articleURL,
160         com.liferay.portal.service.ServiceContext serviceContext)
161         throws com.liferay.portal.PortalException,
162             com.liferay.portal.SystemException {
163         getService()
164             .deleteArticle(groupId, articleId, version, articleURL,
165             serviceContext);
166     }
167 
168     public static void expireArticle(long groupId, java.lang.String articleId,
169         double version, java.lang.String articleURL,
170         com.liferay.portal.service.ServiceContext serviceContext)
171         throws com.liferay.portal.PortalException,
172             com.liferay.portal.SystemException {
173         getService()
174             .expireArticle(groupId, articleId, version, articleURL,
175             serviceContext);
176     }
177 
178     public static void removeArticleLocale(long companyId,
179         java.lang.String languageId)
180         throws com.liferay.portal.PortalException,
181             com.liferay.portal.SystemException {
182         getService().removeArticleLocale(companyId, languageId);
183     }
184 
185     public static com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
186         long groupId, java.lang.String articleId, double version,
187         java.lang.String languageId)
188         throws com.liferay.portal.PortalException,
189             com.liferay.portal.SystemException {
190         return getService()
191                    .removeArticleLocale(groupId, articleId, version, languageId);
192     }
193 
194     public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
195         long groupId, java.lang.String articleId, double version,
196         boolean incrementVersion, java.lang.String content)
197         throws com.liferay.portal.PortalException,
198             com.liferay.portal.SystemException {
199         return getService()
200                    .updateArticle(groupId, articleId, version,
201             incrementVersion, content);
202     }
203 
204     public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
205         long groupId, java.lang.String articleId, double version,
206         boolean incrementVersion, java.lang.String title,
207         java.lang.String description, java.lang.String content,
208         java.lang.String type, java.lang.String structureId,
209         java.lang.String templateId, int displayDateMonth, int displayDateDay,
210         int displayDateYear, int displayDateHour, int displayDateMinute,
211         int expirationDateMonth, int expirationDateDay, int expirationDateYear,
212         int expirationDateHour, int expirationDateMinute, boolean neverExpire,
213         int reviewDateMonth, int reviewDateDay, int reviewDateYear,
214         int reviewDateHour, int reviewDateMinute, boolean neverReview,
215         boolean indexable, boolean smallImage, java.lang.String smallImageURL,
216         java.io.File smallFile, java.util.Map<String, byte[]> images,
217         java.lang.String articleURL,
218         com.liferay.portal.service.ServiceContext serviceContext)
219         throws com.liferay.portal.PortalException,
220             com.liferay.portal.SystemException {
221         return getService()
222                    .updateArticle(groupId, articleId, version,
223             incrementVersion, title, description, content, type, structureId,
224             templateId, displayDateMonth, displayDateDay, displayDateYear,
225             displayDateHour, displayDateMinute, expirationDateMonth,
226             expirationDateDay, expirationDateYear, expirationDateHour,
227             expirationDateMinute, neverExpire, reviewDateMonth, reviewDateDay,
228             reviewDateYear, reviewDateHour, reviewDateMinute, neverReview,
229             indexable, smallImage, smallImageURL, smallFile, images,
230             articleURL, serviceContext);
231     }
232 
233     public static com.liferay.portlet.journal.model.JournalArticle updateContent(
234         long groupId, java.lang.String articleId, double version,
235         java.lang.String content)
236         throws com.liferay.portal.PortalException,
237             com.liferay.portal.SystemException {
238         return getService().updateContent(groupId, articleId, version, content);
239     }
240 
241     public static JournalArticleService getService() {
242         if (_service == null) {
243             _service = (JournalArticleService)PortalBeanLocatorUtil.locate(JournalArticleService.class.getName());
244         }
245 
246         return _service;
247     }
248 
249     public void setService(JournalArticleService service) {
250         _service = service;
251     }
252 
253     private static JournalArticleService _service;
254 }