1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.journal.service.http;
24  
25  import com.liferay.portal.kernel.log.Log;
26  import com.liferay.portal.kernel.log.LogFactoryUtil;
27  
28  import com.liferay.portlet.journal.service.JournalArticleServiceUtil;
29  
30  import java.rmi.RemoteException;
31  
32  /**
33   * <a href="JournalArticleServiceSoap.java.html"><b><i>View Source</i></b></a>
34   *
35   * <p>
36   * ServiceBuilder generated this class. Modifications in this class will be
37   * overwritten the next time is generated.
38   * </p>
39   *
40   * <p>
41   * This class provides a SOAP utility for the
42   * {@link com.liferay.portlet.journal.service.JournalArticleServiceUtil} service utility. The
43   * static methods of this class calls the same methods of the service utility.
44   * However, the signatures are different because it is difficult for SOAP to
45   * support certain types.
46   * </p>
47   *
48   * <p>
49   * ServiceBuilder follows certain rules in translating the methods. For example,
50   * if the method in the service utility returns a {@link java.util.List}, that
51   * is translated to an array of {@link com.liferay.portlet.journal.model.JournalArticleSoap}.
52   * If the method in the service utility returns a
53   * {@link com.liferay.portlet.journal.model.JournalArticle}, that is translated to a
54   * {@link com.liferay.portlet.journal.model.JournalArticleSoap}. Methods that SOAP cannot
55   * safely wire are skipped.
56   * </p>
57   *
58   * <p>
59   * The benefits of using the SOAP utility is that it is cross platform
60   * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and
61   * even Perl, to call the generated services. One drawback of SOAP is that it is
62   * slow because it needs to serialize all calls into a text format (XML).
63   * </p>
64   *
65   * <p>
66   * You can see a list of services at
67   * http://localhost:8080/tunnel-web/secure/axis. Set the property
68   * <b>tunnel.servlet.hosts.allowed</b> in portal.properties to configure
69   * security.
70   * </p>
71   *
72   * <p>
73   * The SOAP utility is only generated for remote services.
74   * </p>
75   *
76   * @author    Brian Wing Shun Chan
77   * @see       JournalArticleServiceHttp
78   * @see       com.liferay.portlet.journal.model.JournalArticleSoap
79   * @see       com.liferay.portlet.journal.service.JournalArticleServiceUtil
80   * @generated
81   */
82  public class JournalArticleServiceSoap {
83      public static com.liferay.portlet.journal.model.JournalArticleSoap addArticle(
84          java.lang.String articleId, boolean autoArticleId, long plid,
85          java.lang.String title, java.lang.String description,
86          java.lang.String content, java.lang.String type,
87          java.lang.String structureId, java.lang.String templateId,
88          int displayDateMonth, int displayDateDay, int displayDateYear,
89          int displayDateHour, int displayDateMinute, int expirationDateMonth,
90          int expirationDateDay, int expirationDateYear, int expirationDateHour,
91          int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
92          int reviewDateDay, int reviewDateYear, int reviewDateHour,
93          int reviewDateMinute, boolean neverReview, boolean indexable,
94          java.lang.String articleURL, java.lang.String[] tagsEntries,
95          boolean addCommunityPermissions, boolean addGuestPermissions)
96          throws RemoteException {
97          try {
98              com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.addArticle(articleId,
99                      autoArticleId, plid, title, description, content, type,
100                     structureId, templateId, displayDateMonth, displayDateDay,
101                     displayDateYear, displayDateHour, displayDateMinute,
102                     expirationDateMonth, expirationDateDay, expirationDateYear,
103                     expirationDateHour, expirationDateMinute, neverExpire,
104                     reviewDateMonth, reviewDateDay, reviewDateYear,
105                     reviewDateHour, reviewDateMinute, neverReview, indexable,
106                     articleURL, tagsEntries, addCommunityPermissions,
107                     addGuestPermissions);
108 
109             return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
110         }
111         catch (Exception e) {
112             _log.error(e, e);
113 
114             throw new RemoteException(e.getMessage());
115         }
116     }
117 
118     public static com.liferay.portlet.journal.model.JournalArticleSoap addArticle(
119         java.lang.String articleId, boolean autoArticleId, long plid,
120         java.lang.String title, java.lang.String description,
121         java.lang.String content, java.lang.String type,
122         java.lang.String structureId, java.lang.String templateId,
123         int displayDateMonth, int displayDateDay, int displayDateYear,
124         int displayDateHour, int displayDateMinute, int expirationDateMonth,
125         int expirationDateDay, int expirationDateYear, int expirationDateHour,
126         int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
127         int reviewDateDay, int reviewDateYear, int reviewDateHour,
128         int reviewDateMinute, boolean neverReview, boolean indexable,
129         java.lang.String articleURL, java.lang.String[] tagsEntries,
130         java.lang.String[] communityPermissions,
131         java.lang.String[] guestPermissions) throws RemoteException {
132         try {
133             com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.addArticle(articleId,
134                     autoArticleId, plid, title, description, content, type,
135                     structureId, templateId, displayDateMonth, displayDateDay,
136                     displayDateYear, displayDateHour, displayDateMinute,
137                     expirationDateMonth, expirationDateDay, expirationDateYear,
138                     expirationDateHour, expirationDateMinute, neverExpire,
139                     reviewDateMonth, reviewDateDay, reviewDateYear,
140                     reviewDateHour, reviewDateMinute, neverReview, indexable,
141                     articleURL, tagsEntries, communityPermissions,
142                     guestPermissions);
143 
144             return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
145         }
146         catch (Exception e) {
147             _log.error(e, e);
148 
149             throw new RemoteException(e.getMessage());
150         }
151     }
152 
153     public static com.liferay.portlet.journal.model.JournalArticleSoap copyArticle(
154         long groupId, java.lang.String oldArticleId,
155         java.lang.String newArticleId, boolean autoArticleId, double version)
156         throws RemoteException {
157         try {
158             com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.copyArticle(groupId,
159                     oldArticleId, newArticleId, autoArticleId, version);
160 
161             return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
162         }
163         catch (Exception e) {
164             _log.error(e, e);
165 
166             throw new RemoteException(e.getMessage());
167         }
168     }
169 
170     public static com.liferay.portlet.journal.model.JournalArticleSoap copyArticle(
171         long groupId, java.lang.String oldArticleId,
172         java.lang.String newArticleId, boolean autoArticleId, double version,
173         long plid) throws RemoteException {
174         try {
175             com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.copyArticle(groupId,
176                     oldArticleId, newArticleId, autoArticleId, version, plid);
177 
178             return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
179         }
180         catch (Exception e) {
181             _log.error(e, e);
182 
183             throw new RemoteException(e.getMessage());
184         }
185     }
186 
187     public static com.liferay.portlet.journal.model.JournalArticleSoap getArticle(
188         long groupId, java.lang.String articleId, double version)
189         throws RemoteException {
190         try {
191             com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.getArticle(groupId,
192                     articleId, version);
193 
194             return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
195         }
196         catch (Exception e) {
197             _log.error(e, e);
198 
199             throw new RemoteException(e.getMessage());
200         }
201     }
202 
203     public static void removeArticleLocale(long companyId,
204         java.lang.String languageId) throws RemoteException {
205         try {
206             JournalArticleServiceUtil.removeArticleLocale(companyId, languageId);
207         }
208         catch (Exception e) {
209             _log.error(e, e);
210 
211             throw new RemoteException(e.getMessage());
212         }
213     }
214 
215     public static com.liferay.portlet.journal.model.JournalArticleSoap removeArticleLocale(
216         long groupId, java.lang.String articleId, double version,
217         java.lang.String languageId) throws RemoteException {
218         try {
219             com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.removeArticleLocale(groupId,
220                     articleId, version, languageId);
221 
222             return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
223         }
224         catch (Exception e) {
225             _log.error(e, e);
226 
227             throw new RemoteException(e.getMessage());
228         }
229     }
230 
231     public static com.liferay.portlet.journal.model.JournalArticleSoap updateContent(
232         long groupId, java.lang.String articleId, double version,
233         java.lang.String content) throws RemoteException {
234         try {
235             com.liferay.portlet.journal.model.JournalArticle returnValue = JournalArticleServiceUtil.updateContent(groupId,
236                     articleId, version, content);
237 
238             return com.liferay.portlet.journal.model.JournalArticleSoap.toSoapModel(returnValue);
239         }
240         catch (Exception e) {
241             _log.error(e, e);
242 
243             throw new RemoteException(e.getMessage());
244         }
245     }
246 
247     private static Log _log = LogFactoryUtil.getLog(JournalArticleServiceSoap.class);
248 }