/portal-impl/src/com/liferay/portlet/documentlibrary/service/http/DLFileEntryServiceSoap.java
https://github.com/acs/liferay-portal · Java · 414 lines · 290 code · 68 blank · 56 comment · 0 complexity · 5efec7ec04b855bb989c773b15cd8977 MD5 · raw file
- /**
- * Copyright (c) 2000-2011 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.portlet.documentlibrary.service.http;
- import com.liferay.portal.kernel.log.Log;
- import com.liferay.portal.kernel.log.LogFactoryUtil;
- import com.liferay.portal.kernel.util.ListUtil;
- import com.liferay.portlet.documentlibrary.service.DLFileEntryServiceUtil;
- import java.rmi.RemoteException;
- /**
- * <p>
- * This class provides a SOAP utility for the
- * {@link com.liferay.portlet.documentlibrary.service.DLFileEntryServiceUtil} service utility. The
- * static methods of this class calls the same methods of the service utility.
- * However, the signatures are different because it is difficult for SOAP to
- * support certain types.
- * </p>
- *
- * <p>
- * ServiceBuilder follows certain rules in translating the methods. For example,
- * if the method in the service utility returns a {@link java.util.List}, that
- * is translated to an array of {@link com.liferay.portlet.documentlibrary.model.DLFileEntrySoap}.
- * If the method in the service utility returns a
- * {@link com.liferay.portlet.documentlibrary.model.DLFileEntry}, that is translated to a
- * {@link com.liferay.portlet.documentlibrary.model.DLFileEntrySoap}. Methods that SOAP cannot
- * safely wire are skipped.
- * </p>
- *
- * <p>
- * 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).
- * </p>
- *
- * <p>
- * You can see a list of services at
- * http://localhost:8080/tunnel-web/secure/axis. Set the property
- * <b>tunnel.servlet.hosts.allowed</b> in portal.properties to configure
- * security.
- * </p>
- *
- * <p>
- * The SOAP utility is only generated for remote services.
- * </p>
- *
- * @author Brian Wing Shun Chan
- * @see DLFileEntryServiceHttp
- * @see com.liferay.portlet.documentlibrary.model.DLFileEntrySoap
- * @see com.liferay.portlet.documentlibrary.service.DLFileEntryServiceUtil
- * @generated
- */
- public class DLFileEntryServiceSoap {
- public static void cancelCheckOut(long fileEntryId)
- throws RemoteException {
- try {
- DLFileEntryServiceUtil.cancelCheckOut(fileEntryId);
- }
- catch (Exception e) {
- _log.error(e, e);
- throw new RemoteException(e.getMessage());
- }
- }
- public static void checkInFileEntry(long fileEntryId, boolean major,
- java.lang.String changeLog,
- com.liferay.portal.service.ServiceContext serviceContext)
- throws RemoteException {
- try {
- DLFileEntryServiceUtil.checkInFileEntry(fileEntryId, major,
- changeLog, serviceContext);
- }
- catch (Exception e) {
- _log.error(e, e);
- throw new RemoteException(e.getMessage());
- }
- }
- public static void checkInFileEntry(long fileEntryId,
- java.lang.String lockUuid) throws RemoteException {
- try {
- DLFileEntryServiceUtil.checkInFileEntry(fileEntryId, lockUuid);
- }
- catch (Exception e) {
- _log.error(e, e);
- throw new RemoteException(e.getMessage());
- }
- }
- public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap checkOutFileEntry(
- long fileEntryId) throws RemoteException {
- try {
- com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.checkOutFileEntry(fileEntryId);
- return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
- }
- catch (Exception e) {
- _log.error(e, e);
- throw new RemoteException(e.getMessage());
- }
- }
- public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap checkOutFileEntry(
- long fileEntryId, java.lang.String owner, long expirationTime)
- throws RemoteException {
- try {
- com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.checkOutFileEntry(fileEntryId,
- owner, expirationTime);
- return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
- }
- catch (Exception e) {
- _log.error(e, e);
- throw new RemoteException(e.getMessage());
- }
- }
- public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap copyFileEntry(
- long groupId, long repositoryId, long fileEntryId, long destFolderId,
- com.liferay.portal.service.ServiceContext serviceContext)
- throws RemoteException {
- try {
- com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.copyFileEntry(groupId,
- repositoryId, fileEntryId, destFolderId, serviceContext);
- return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
- }
- catch (Exception e) {
- _log.error(e, e);
- throw new RemoteException(e.getMessage());
- }
- }
- public static void deleteFileEntry(long fileEntryId)
- throws RemoteException {
- try {
- DLFileEntryServiceUtil.deleteFileEntry(fileEntryId);
- }
- catch (Exception e) {
- _log.error(e, e);
- throw new RemoteException(e.getMessage());
- }
- }
- public static void deleteFileEntry(long groupId, long folderId,
- java.lang.String title) throws RemoteException {
- try {
- DLFileEntryServiceUtil.deleteFileEntry(groupId, folderId, title);
- }
- catch (Exception e) {
- _log.error(e, e);
- throw new RemoteException(e.getMessage());
- }
- }
- public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap[] getFileEntries(
- long groupId, long folderId, int start, int end,
- com.liferay.portal.kernel.util.OrderByComparator obc)
- throws RemoteException {
- try {
- java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> returnValue =
- DLFileEntryServiceUtil.getFileEntries(groupId, folderId, start,
- end, obc);
- return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModels(returnValue);
- }
- catch (Exception e) {
- _log.error(e, e);
- throw new RemoteException(e.getMessage());
- }
- }
- public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap[] getFileEntries(
- long groupId, long folderId, long fileEntryTypeId, int start, int end,
- com.liferay.portal.kernel.util.OrderByComparator obc)
- throws RemoteException {
- try {
- java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> returnValue =
- DLFileEntryServiceUtil.getFileEntries(groupId, folderId,
- fileEntryTypeId, start, end, obc);
- return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModels(returnValue);
- }
- catch (Exception e) {
- _log.error(e, e);
- throw new RemoteException(e.getMessage());
- }
- }
- public static int getFileEntriesCount(long groupId, long folderId)
- throws RemoteException {
- try {
- int returnValue = DLFileEntryServiceUtil.getFileEntriesCount(groupId,
- folderId);
- return returnValue;
- }
- catch (Exception e) {
- _log.error(e, e);
- throw new RemoteException(e.getMessage());
- }
- }
- public static int getFileEntriesCount(long groupId, long folderId,
- long fileEntryTypeId) throws RemoteException {
- try {
- int returnValue = DLFileEntryServiceUtil.getFileEntriesCount(groupId,
- folderId, fileEntryTypeId);
- return returnValue;
- }
- catch (Exception e) {
- _log.error(e, e);
- throw new RemoteException(e.getMessage());
- }
- }
- public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap getFileEntry(
- long fileEntryId) throws RemoteException {
- try {
- com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.getFileEntry(fileEntryId);
- return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
- }
- catch (Exception e) {
- _log.error(e, e);
- throw new RemoteException(e.getMessage());
- }
- }
- public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap getFileEntry(
- long groupId, long folderId, java.lang.String title)
- throws RemoteException {
- try {
- com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.getFileEntry(groupId,
- folderId, title);
- return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
- }
- catch (Exception e) {
- _log.error(e, e);
- throw new RemoteException(e.getMessage());
- }
- }
- public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap getFileEntryByUuidAndGroupId(
- java.lang.String uuid, long groupId) throws RemoteException {
- try {
- com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.getFileEntryByUuidAndGroupId(uuid,
- groupId);
- return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
- }
- catch (Exception e) {
- _log.error(e, e);
- throw new RemoteException(e.getMessage());
- }
- }
- public static int getFoldersFileEntriesCount(long groupId,
- Long[] folderIds, int status) throws RemoteException {
- try {
- int returnValue = DLFileEntryServiceUtil.getFoldersFileEntriesCount(groupId,
- ListUtil.toList(folderIds), status);
- return returnValue;
- }
- catch (Exception e) {
- _log.error(e, e);
- throw new RemoteException(e.getMessage());
- }
- }
- public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap[] getGroupFileEntries(
- long groupId, long userId, long rootFolderId, int start, int end,
- com.liferay.portal.kernel.util.OrderByComparator obc)
- throws RemoteException {
- try {
- java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> returnValue =
- DLFileEntryServiceUtil.getGroupFileEntries(groupId, userId,
- rootFolderId, start, end, obc);
- return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModels(returnValue);
- }
- catch (Exception e) {
- _log.error(e, e);
- throw new RemoteException(e.getMessage());
- }
- }
- public static int getGroupFileEntriesCount(long groupId, long userId,
- long rootFolderId) throws RemoteException {
- try {
- int returnValue = DLFileEntryServiceUtil.getGroupFileEntriesCount(groupId,
- userId, rootFolderId);
- return returnValue;
- }
- catch (Exception e) {
- _log.error(e, e);
- throw new RemoteException(e.getMessage());
- }
- }
- public static boolean hasFileEntryLock(long fileEntryId)
- throws RemoteException {
- try {
- boolean returnValue = DLFileEntryServiceUtil.hasFileEntryLock(fileEntryId);
- return returnValue;
- }
- catch (Exception e) {
- _log.error(e, e);
- throw new RemoteException(e.getMessage());
- }
- }
- public static boolean isFileEntryCheckedOut(long fileEntryId)
- throws RemoteException {
- try {
- boolean returnValue = DLFileEntryServiceUtil.isFileEntryCheckedOut(fileEntryId);
- return returnValue;
- }
- catch (Exception e) {
- _log.error(e, e);
- throw new RemoteException(e.getMessage());
- }
- }
- public static com.liferay.portlet.documentlibrary.model.DLFileEntrySoap moveFileEntry(
- long fileEntryId, long newFolderId,
- com.liferay.portal.service.ServiceContext serviceContext)
- throws RemoteException {
- try {
- com.liferay.portlet.documentlibrary.model.DLFileEntry returnValue = DLFileEntryServiceUtil.moveFileEntry(fileEntryId,
- newFolderId, serviceContext);
- return com.liferay.portlet.documentlibrary.model.DLFileEntrySoap.toSoapModel(returnValue);
- }
- catch (Exception e) {
- _log.error(e, e);
- throw new RemoteException(e.getMessage());
- }
- }
- public static void revertFileEntry(long fileEntryId,
- java.lang.String version,
- com.liferay.portal.service.ServiceContext serviceContext)
- throws RemoteException {
- try {
- DLFileEntryServiceUtil.revertFileEntry(fileEntryId, version,
- serviceContext);
- }
- catch (Exception e) {
- _log.error(e, e);
- throw new RemoteException(e.getMessage());
- }
- }
- public static boolean verifyFileEntryCheckOut(long fileEntryId,
- java.lang.String lockUuid) throws RemoteException {
- try {
- boolean returnValue = DLFileEntryServiceUtil.verifyFileEntryCheckOut(fileEntryId,
- lockUuid);
- return returnValue;
- }
- catch (Exception e) {
- _log.error(e, e);
- throw new RemoteException(e.getMessage());
- }
- }
- private static Log _log = LogFactoryUtil.getLog(DLFileEntryServiceSoap.class);
- }