All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.wiki.service.http.WikiPageServiceSoap Maven / Gradle / Ivy

There is a newer version: 5.0.84
Show newest version
/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.liferay.wiki.service.http;

import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.util.LocaleUtil;
import com.liferay.wiki.service.WikiPageServiceUtil;

import java.rmi.RemoteException;

/**
 * Provides the SOAP utility for the
 * WikiPageServiceUtil service
 * utility. The static methods of this class call the same methods of the
 * service utility. However, the signatures are different because it is
 * difficult for SOAP to support certain types.
 *
 * 

* ServiceBuilder follows certain rules in translating the methods. For example, * if the method in the service utility returns a java.util.List, * that is translated to an array of * com.liferay.wiki.model.WikiPageSoap. If the method in the * service utility returns a * com.liferay.wiki.model.WikiPage, that is translated to a * com.liferay.wiki.model.WikiPageSoap. Methods that SOAP * cannot safely wire are skipped. *

* *

* The benefits of using the SOAP utility is that it is cross platform * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and * even Perl, to call the generated services. One drawback of SOAP is that it is * slow because it needs to serialize all calls into a text format (XML). *

* *

* You can see a list of services at http://localhost:8080/api/axis. Set the * property axis.servlet.hosts.allowed in portal.properties to configure * security. *

* *

* The SOAP utility is only generated for remote services. *

* * @author Brian Wing Shun Chan * @see WikiPageServiceHttp * @generated */ public class WikiPageServiceSoap { public static com.liferay.wiki.model.WikiPageSoap addPage( long nodeId, String title, String content, String summary, boolean minorEdit, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws RemoteException { try { com.liferay.wiki.model.WikiPage returnValue = WikiPageServiceUtil.addPage( nodeId, title, content, summary, minorEdit, serviceContext); return com.liferay.wiki.model.WikiPageSoap.toSoapModel(returnValue); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static com.liferay.wiki.model.WikiPageSoap addPage( long nodeId, String title, String content, String summary, boolean minorEdit, String format, String parentTitle, String redirectTitle, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws RemoteException { try { com.liferay.wiki.model.WikiPage returnValue = WikiPageServiceUtil.addPage( nodeId, title, content, summary, minorEdit, format, parentTitle, redirectTitle, serviceContext); return com.liferay.wiki.model.WikiPageSoap.toSoapModel(returnValue); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static com.liferay.portal.kernel.repository.model.FileEntrySoap[] addPageAttachments( long nodeId, String title, java.util.List > inputStreamOVPs) throws RemoteException { try { java.util.List returnValue = WikiPageServiceUtil.addPageAttachments( nodeId, title, inputStreamOVPs); return com.liferay.portal.kernel.repository.model.FileEntrySoap. toSoapModels(returnValue); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static void changeParent( long nodeId, String title, String newParentTitle, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws RemoteException { try { WikiPageServiceUtil.changeParent( nodeId, title, newParentTitle, serviceContext); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static void copyPageAttachments( long templateNodeId, String templateTitle, long nodeId, String title) throws RemoteException { try { WikiPageServiceUtil.copyPageAttachments( templateNodeId, templateTitle, nodeId, title); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static void deletePage(long nodeId, String title) throws RemoteException { try { WikiPageServiceUtil.deletePage(nodeId, title); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static void deletePageAttachment( long nodeId, String title, String fileName) throws RemoteException { try { WikiPageServiceUtil.deletePageAttachment(nodeId, title, fileName); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static void deletePageAttachments(long nodeId, String title) throws RemoteException { try { WikiPageServiceUtil.deletePageAttachments(nodeId, title); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static void deleteTempFileEntry( long nodeId, String folderName, String fileName) throws RemoteException { try { WikiPageServiceUtil.deleteTempFileEntry( nodeId, folderName, fileName); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static void deleteTrashPageAttachments(long nodeId, String title) throws RemoteException { try { WikiPageServiceUtil.deleteTrashPageAttachments(nodeId, title); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static void discardDraft(long nodeId, String title, double version) throws RemoteException { try { WikiPageServiceUtil.discardDraft(nodeId, title, version); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static com.liferay.wiki.model.WikiPageSoap fetchPage( long nodeId, String title, double version) throws RemoteException { try { com.liferay.wiki.model.WikiPage returnValue = WikiPageServiceUtil.fetchPage(nodeId, title, version); return com.liferay.wiki.model.WikiPageSoap.toSoapModel(returnValue); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static com.liferay.wiki.model.WikiPageSoap[] getChildren( long groupId, long nodeId, boolean head, String parentTitle) throws RemoteException { try { java.util.List returnValue = WikiPageServiceUtil.getChildren( groupId, nodeId, head, parentTitle); return com.liferay.wiki.model.WikiPageSoap.toSoapModels( returnValue); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static com.liferay.wiki.model.WikiPageSoap getDraftPage( long nodeId, String title) throws RemoteException { try { com.liferay.wiki.model.WikiPage returnValue = WikiPageServiceUtil.getDraftPage(nodeId, title); return com.liferay.wiki.model.WikiPageSoap.toSoapModel(returnValue); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static com.liferay.wiki.model.WikiPageSoap[] getNodePages( long nodeId, int max) throws RemoteException { try { java.util.List returnValue = WikiPageServiceUtil.getNodePages(nodeId, max); return com.liferay.wiki.model.WikiPageSoap.toSoapModels( returnValue); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static String getNodePagesRSS( long nodeId, int max, String type, double version, String displayStyle, String feedURL, String entryURL, String attachmentURLPrefix) throws RemoteException { try { String returnValue = WikiPageServiceUtil.getNodePagesRSS( nodeId, max, type, version, displayStyle, feedURL, entryURL, attachmentURLPrefix); return returnValue; } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static com.liferay.wiki.model.WikiPageSoap[] getOrphans( com.liferay.wiki.model.WikiNodeSoap node) throws RemoteException { try { java.util.List returnValue = WikiPageServiceUtil.getOrphans( com.liferay.wiki.model.impl.WikiNodeModelImpl.toModel( node)); return com.liferay.wiki.model.WikiPageSoap.toSoapModels( returnValue); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static com.liferay.wiki.model.WikiPageSoap getPage(long pageId) throws RemoteException { try { com.liferay.wiki.model.WikiPage returnValue = WikiPageServiceUtil.getPage(pageId); return com.liferay.wiki.model.WikiPageSoap.toSoapModel(returnValue); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static com.liferay.wiki.model.WikiPageSoap getPage( long groupId, long nodeId, String title) throws RemoteException { try { com.liferay.wiki.model.WikiPage returnValue = WikiPageServiceUtil.getPage(groupId, nodeId, title); return com.liferay.wiki.model.WikiPageSoap.toSoapModel(returnValue); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static com.liferay.wiki.model.WikiPageSoap getPage( long nodeId, String title) throws RemoteException { try { com.liferay.wiki.model.WikiPage returnValue = WikiPageServiceUtil.getPage(nodeId, title); return com.liferay.wiki.model.WikiPageSoap.toSoapModel(returnValue); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static com.liferay.wiki.model.WikiPageSoap getPage( long nodeId, String title, Boolean head) throws RemoteException { try { com.liferay.wiki.model.WikiPage returnValue = WikiPageServiceUtil.getPage(nodeId, title, head); return com.liferay.wiki.model.WikiPageSoap.toSoapModel(returnValue); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static com.liferay.wiki.model.WikiPageSoap getPage( long nodeId, String title, double version) throws RemoteException { try { com.liferay.wiki.model.WikiPage returnValue = WikiPageServiceUtil.getPage(nodeId, title, version); return com.liferay.wiki.model.WikiPageSoap.toSoapModel(returnValue); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static com.liferay.wiki.model.WikiPageSoap[] getPages( long groupId, long nodeId, boolean head, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc) throws RemoteException { try { java.util.List returnValue = WikiPageServiceUtil.getPages( groupId, nodeId, head, status, start, end, obc); return com.liferay.wiki.model.WikiPageSoap.toSoapModels( returnValue); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static com.liferay.wiki.model.WikiPageSoap[] getPages( long groupId, long nodeId, boolean head, long userId, boolean includeOwner, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc) throws RemoteException { try { java.util.List returnValue = WikiPageServiceUtil.getPages( groupId, nodeId, head, userId, includeOwner, status, start, end, obc); return com.liferay.wiki.model.WikiPageSoap.toSoapModels( returnValue); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static com.liferay.wiki.model.WikiPageSoap[] getPages( long groupId, long userId, long nodeId, int status, int start, int end) throws RemoteException { try { java.util.List returnValue = WikiPageServiceUtil.getPages( groupId, userId, nodeId, status, start, end); return com.liferay.wiki.model.WikiPageSoap.toSoapModels( returnValue); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static int getPagesCount(long groupId, long nodeId, boolean head) throws RemoteException { try { int returnValue = WikiPageServiceUtil.getPagesCount( groupId, nodeId, head); return returnValue; } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static int getPagesCount( long groupId, long nodeId, boolean head, long userId, boolean includeOwner, int status) throws RemoteException { try { int returnValue = WikiPageServiceUtil.getPagesCount( groupId, nodeId, head, userId, includeOwner, status); return returnValue; } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static int getPagesCount( long groupId, long userId, long nodeId, int status) throws RemoteException { try { int returnValue = WikiPageServiceUtil.getPagesCount( groupId, userId, nodeId, status); return returnValue; } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static String getPagesRSS( long nodeId, String title, int max, String type, double version, String displayStyle, String feedURL, String entryURL, String attachmentURLPrefix, String locale) throws RemoteException { try { String returnValue = WikiPageServiceUtil.getPagesRSS( nodeId, title, max, type, version, displayStyle, feedURL, entryURL, attachmentURLPrefix, LocaleUtil.fromLanguageId(locale)); return returnValue; } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static com.liferay.wiki.model.WikiPageSoap[] getRecentChanges( long groupId, long nodeId, int start, int end) throws RemoteException { try { java.util.List returnValue = WikiPageServiceUtil.getRecentChanges( groupId, nodeId, start, end); return com.liferay.wiki.model.WikiPageSoap.toSoapModels( returnValue); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static int getRecentChangesCount(long groupId, long nodeId) throws RemoteException { try { int returnValue = WikiPageServiceUtil.getRecentChangesCount( groupId, nodeId); return returnValue; } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static String[] getTempFileNames(long nodeId, String folderName) throws RemoteException { try { String[] returnValue = WikiPageServiceUtil.getTempFileNames( nodeId, folderName); return returnValue; } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static com.liferay.portal.kernel.repository.model.FileEntrySoap movePageAttachmentToTrash( long nodeId, String title, String fileName) throws RemoteException { try { com.liferay.portal.kernel.repository.model.FileEntry returnValue = WikiPageServiceUtil.movePageAttachmentToTrash( nodeId, title, fileName); return com.liferay.portal.kernel.repository.model.FileEntrySoap. toSoapModel(returnValue); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static com.liferay.wiki.model.WikiPageSoap movePageToTrash( long nodeId, String title) throws RemoteException { try { com.liferay.wiki.model.WikiPage returnValue = WikiPageServiceUtil.movePageToTrash(nodeId, title); return com.liferay.wiki.model.WikiPageSoap.toSoapModel(returnValue); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static com.liferay.wiki.model.WikiPageSoap movePageToTrash( long nodeId, String title, double version) throws RemoteException { try { com.liferay.wiki.model.WikiPage returnValue = WikiPageServiceUtil.movePageToTrash(nodeId, title, version); return com.liferay.wiki.model.WikiPageSoap.toSoapModel(returnValue); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static void renamePage( long nodeId, String title, String newTitle, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws RemoteException { try { WikiPageServiceUtil.renamePage( nodeId, title, newTitle, serviceContext); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static void restorePageAttachmentFromTrash( long nodeId, String title, String fileName) throws RemoteException { try { WikiPageServiceUtil.restorePageAttachmentFromTrash( nodeId, title, fileName); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static void restorePageFromTrash(long resourcePrimKey) throws RemoteException { try { WikiPageServiceUtil.restorePageFromTrash(resourcePrimKey); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static com.liferay.wiki.model.WikiPageSoap revertPage( long nodeId, String title, double version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws RemoteException { try { com.liferay.wiki.model.WikiPage returnValue = WikiPageServiceUtil.revertPage( nodeId, title, version, serviceContext); return com.liferay.wiki.model.WikiPageSoap.toSoapModel(returnValue); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static void subscribePage(long nodeId, String title) throws RemoteException { try { WikiPageServiceUtil.subscribePage(nodeId, title); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static void unsubscribePage(long nodeId, String title) throws RemoteException { try { WikiPageServiceUtil.unsubscribePage(nodeId, title); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } public static com.liferay.wiki.model.WikiPageSoap updatePage( long nodeId, String title, double version, String content, String summary, boolean minorEdit, String format, String parentTitle, String redirectTitle, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws RemoteException { try { com.liferay.wiki.model.WikiPage returnValue = WikiPageServiceUtil.updatePage( nodeId, title, version, content, summary, minorEdit, format, parentTitle, redirectTitle, serviceContext); return com.liferay.wiki.model.WikiPageSoap.toSoapModel(returnValue); } catch (Exception exception) { _log.error(exception, exception); throw new RemoteException(exception.getMessage()); } } private static Log _log = LogFactoryUtil.getLog(WikiPageServiceSoap.class); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy