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.http;
16  
17  import com.liferay.portal.kernel.log.Log;
18  import com.liferay.portal.kernel.log.LogFactoryUtil;
19  
20  import com.liferay.portlet.journal.service.JournalArticleServiceUtil;
21  
22  import java.rmi.RemoteException;
23  
24  /**
25   * <a href="JournalArticleServiceSoap.java.html"><b><i>View Source</i></b></a>
26   *
27   * <p>
28   * ServiceBuilder generated this class. Modifications in this class will be
29   * overwritten the next time is generated.
30   * </p>
31   *
32   * <p>
33   * This class provides a SOAP utility for the
34   * {@link com.liferay.portlet.journal.service.JournalArticleServiceUtil} service utility. The
35   * static methods of this class calls the same methods of the service utility.
36   * However, the signatures are different because it is difficult for SOAP to
37   * support certain types.
38   * </p>
39   *
40   * <p>
41   * ServiceBuilder follows certain rules in translating the methods. For example,
42   * if the method in the service utility returns a {@link java.util.List}, that
43   * is translated to an array of {@link com.liferay.portlet.journal.model.JournalArticleSoap}.
44   * If the method in the service utility returns a
45   * {@link com.liferay.portlet.journal.model.JournalArticle}, that is translated to a
46   * {@link com.liferay.portlet.journal.model.JournalArticleSoap}. Methods that SOAP cannot
47   * safely wire are skipped.
48   * </p>
49   *
50   * <p>
51   * The benefits of using the SOAP utility is that it is cross platform
52   * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and
53   * even Perl, to call the generated services. One drawback of SOAP is that it is
54   * slow because it needs to serialize all calls into a text format (XML).
55   * </p>
56   *
57   * <p>
58   * You can see a list of services at
59   * http://localhost:8080/tunnel-web/secure/axis. Set the property
60   * <b>tunnel.servlet.hosts.allowed</b> in portal.properties to configure
61   * security.
62   * </p>
63   *
64   * <p>
65   * The SOAP utility is only generated for remote services.
66   * </p>
67   *
68   * @author    Brian Wing Shun Chan
69   * @see       JournalArticleServiceHttp
70   * @see       com.liferay.portlet.journal.model.JournalArticleSoap
71   * @see       com.liferay.portlet.journal.service.JournalArticleServiceUtil
72   * @generated
73   */
74  public class JournalArticleServiceSoap {
75      public static com.liferay.portlet.journal.model.JournalArticleSoap addArticle(
76          java.lang.String articleId, boolean autoArticleId, long plid,
77          java.lang.String title, java.lang.String description,
78          java.lang.String content, java.lang.String type,
79          java.lang.String structureId, java.lang.String templateId,
80          int displayDateMonth, int displayDateDay, int displayDateYear,
81          int displayDateHour, int displayDateMinute, int expirationDateMonth,
82          int expirationDateDay, int expirationDateYear, int expirationDateHour,
83          int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
84          int reviewDateDay, int reviewDateYear, int reviewDateHour,
85          int reviewDateMinute, boolean neverReview, boolean indexable,
86          java.lang.String articleURL, java.lang.String[] tagsEntries,
87          boolean addCommunityPermissions, boolean addGuestPermissions)
88          throws RemoteException {
89          try {
90              com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.addArticle(articleId,
91                      autoArticleId, plid, title, description, content, type,
92                      structureId, templateId, displayDateMonth, displayDateDay,
93                      displayDateYear, displayDateHour, displayDateMinute,
94                      expirationDateMonth, expirationDateDay, expirationDateYear,
95                      expirationDateHour, expirationDateMinute, neverExpire,
96                      reviewDateMonth, reviewDateDay, reviewDateYear,
97                      reviewDateHour, reviewDateMinute, neverReview, indexable,
98                      articleURL, tagsEntries, addCommunityPermissions,
99                      addGuestPermissions);
100 
101             return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
102         }
103         catch (Exception e) {
104             _log.error(e, e);
105 
106             throw new RemoteException(e.getMessage());
107         }
108     }
109 
110     public static com.liferay.portlet.journal.model.JournalArticleSoap addArticle(
111         java.lang.String articleId, boolean autoArticleId, long plid,
112         java.lang.String title, java.lang.String description,
113         java.lang.String content, java.lang.String type,
114         java.lang.String structureId, java.lang.String templateId,
115         int displayDateMonth, int displayDateDay, int displayDateYear,
116         int displayDateHour, int displayDateMinute, int expirationDateMonth,
117         int expirationDateDay, int expirationDateYear, int expirationDateHour,
118         int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
119         int reviewDateDay, int reviewDateYear, int reviewDateHour,
120         int reviewDateMinute, boolean neverReview, boolean indexable,
121         java.lang.String articleURL, java.lang.String[] tagsEntries,
122         java.lang.String[] communityPermissions,
123         java.lang.String[] guestPermissions) throws RemoteException {
124         try {
125             com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.addArticle(articleId,
126                     autoArticleId, plid, title, description, content, type,
127                     structureId, templateId, displayDateMonth, displayDateDay,
128                     displayDateYear, displayDateHour, displayDateMinute,
129                     expirationDateMonth, expirationDateDay, expirationDateYear,
130                     expirationDateHour, expirationDateMinute, neverExpire,
131                     reviewDateMonth, reviewDateDay, reviewDateYear,
132                     reviewDateHour, reviewDateMinute, neverReview, indexable,
133                     articleURL, tagsEntries, communityPermissions,
134                     guestPermissions);
135 
136             return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
137         }
138         catch (Exception e) {
139             _log.error(e, e);
140 
141             throw new RemoteException(e.getMessage());
142         }
143     }
144 
145     public static com.liferay.portlet.journal.model.JournalArticleSoap copyArticle(
146         long groupId, java.lang.String oldArticleId,
147         java.lang.String newArticleId, boolean autoArticleId, double version)
148         throws RemoteException {
149         try {
150             com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.copyArticle(groupId,
151                     oldArticleId, newArticleId, autoArticleId, version);
152 
153             return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
154         }
155         catch (Exception e) {
156             _log.error(e, e);
157 
158             throw new RemoteException(e.getMessage());
159         }
160     }
161 
162     public static com.liferay.portlet.journal.model.JournalArticleSoap copyArticle(
163         long groupId, java.lang.String oldArticleId,
164         java.lang.String newArticleId, boolean autoArticleId, double version,
165         long plid) throws RemoteException {
166         try {
167             com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.copyArticle(groupId,
168                     oldArticleId, newArticleId, autoArticleId, version, plid);
169 
170             return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
171         }
172         catch (Exception e) {
173             _log.error(e, e);
174 
175             throw new RemoteException(e.getMessage());
176         }
177     }
178 
179     public static com.liferay.portlet.journal.model.JournalArticleSoap getArticle(
180         long groupId, java.lang.String articleId, double version)
181         throws RemoteException {
182         try {
183             com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getArticle(groupId,
184                     articleId, version);
185 
186             return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
187         }
188         catch (Exception e) {
189             _log.error(e, e);
190 
191             throw new RemoteException(e.getMessage());
192         }
193     }
194 
195     public static void removeArticleLocale(long companyId,
196         java.lang.String languageId) throws RemoteException {
197         try {
198             JournalArticleServiceUtil.removeArticleLocale(companyId, languageId);
199         }
200         catch (Exception e) {
201             _log.error(e, e);
202 
203             throw new RemoteException(e.getMessage());
204         }
205     }
206 
207     public static com.liferay.portlet.journal.model.JournalArticleSoap removeArticleLocale(
208         long groupId, java.lang.String articleId, double version,
209         java.lang.String languageId) throws RemoteException {
210         try {
211             com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.removeArticleLocale(groupId,
212                     articleId, version, languageId);
213 
214             return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
215         }
216         catch (Exception e) {
217             _log.error(e, e);
218 
219             throw new RemoteException(e.getMessage());
220         }
221     }
222 
223     public static com.liferay.portlet.journal.model.JournalArticleSoap updateContent(
224         long groupId, java.lang.String articleId, double version,
225         java.lang.String content) throws RemoteException {
226         try {
227             com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.updateContent(groupId,
228                     articleId, version, content);
229 
230             return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
231         }
232         catch (Exception e) {
233             _log.error(e, e);
234 
235             throw new RemoteException(e.getMessage());
236         }
237     }
238 
239     private static Log _log = LogFactoryUtil.getLog(JournalArticleServiceSoap.class);
240 }