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

com.liferay.sync.service.http.SyncDLObjectServiceHttp Maven / Gradle / Ivy

The 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.sync.service.http;

import aQute.bnd.annotation.ProviderType;

import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.security.auth.HttpPrincipal;
import com.liferay.portal.kernel.service.http.TunnelUtil;
import com.liferay.portal.kernel.util.MethodHandler;
import com.liferay.portal.kernel.util.MethodKey;

import com.liferay.sync.service.SyncDLObjectServiceUtil;

/**
 * Provides the HTTP utility for the
 * {@link SyncDLObjectServiceUtil} service utility. The
 * static methods of this class calls the same methods of the service utility.
 * However, the signatures are different because it requires an additional
 * {@link HttpPrincipal} parameter.
 *
 * 

* The benefits of using the HTTP utility is that it is fast and allows for * tunneling without the cost of serializing to text. The drawback is that it * only works with Java. *

* *

* Set the property tunnel.servlet.hosts.allowed in portal.properties to * configure security. *

* *

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

* * @author Brian Wing Shun Chan * @see SyncDLObjectServiceSoap * @see HttpPrincipal * @see SyncDLObjectServiceUtil * @generated */ @ProviderType public class SyncDLObjectServiceHttp { public static com.liferay.sync.model.SyncDLObject addFileEntry( HttpPrincipal httpPrincipal, long repositoryId, long folderId, java.lang.String sourceFileName, java.lang.String mimeType, java.lang.String title, java.lang.String description, java.lang.String changeLog, java.io.File file, java.lang.String checksum, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "addFileEntry", _addFileEntryParameterTypes0); MethodHandler methodHandler = new MethodHandler(methodKey, repositoryId, folderId, sourceFileName, mimeType, title, description, changeLog, file, checksum, serviceContext); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (com.liferay.sync.model.SyncDLObject)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.sync.model.SyncDLObject addFolder( HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId, java.lang.String name, java.lang.String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "addFolder", _addFolderParameterTypes1); MethodHandler methodHandler = new MethodHandler(methodKey, repositoryId, parentFolderId, name, description, serviceContext); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (com.liferay.sync.model.SyncDLObject)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.sync.model.SyncDLObject cancelCheckOut( HttpPrincipal httpPrincipal, long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "cancelCheckOut", _cancelCheckOutParameterTypes2); MethodHandler methodHandler = new MethodHandler(methodKey, fileEntryId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (com.liferay.sync.model.SyncDLObject)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.sync.model.SyncDLObject checkInFileEntry( HttpPrincipal httpPrincipal, long fileEntryId, boolean majorVersion, java.lang.String changeLog, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "checkInFileEntry", _checkInFileEntryParameterTypes3); MethodHandler methodHandler = new MethodHandler(methodKey, fileEntryId, majorVersion, changeLog, serviceContext); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (com.liferay.sync.model.SyncDLObject)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.sync.model.SyncDLObject checkOutFileEntry( HttpPrincipal httpPrincipal, long fileEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "checkOutFileEntry", _checkOutFileEntryParameterTypes4); MethodHandler methodHandler = new MethodHandler(methodKey, fileEntryId, serviceContext); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (com.liferay.sync.model.SyncDLObject)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.sync.model.SyncDLObject checkOutFileEntry( HttpPrincipal httpPrincipal, long fileEntryId, java.lang.String owner, long expirationTime, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "checkOutFileEntry", _checkOutFileEntryParameterTypes5); MethodHandler methodHandler = new MethodHandler(methodKey, fileEntryId, owner, expirationTime, serviceContext); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (com.liferay.sync.model.SyncDLObject)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.sync.model.SyncDLObject copyFileEntry( HttpPrincipal httpPrincipal, long sourceFileEntryId, long repositoryId, long folderId, java.lang.String sourceFileName, java.lang.String title, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "copyFileEntry", _copyFileEntryParameterTypes6); MethodHandler methodHandler = new MethodHandler(methodKey, sourceFileEntryId, repositoryId, folderId, sourceFileName, title, serviceContext); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (com.liferay.sync.model.SyncDLObject)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static java.util.List getAllFolderSyncDLObjects( HttpPrincipal httpPrincipal, long repositoryId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "getAllFolderSyncDLObjects", _getAllFolderSyncDLObjectsParameterTypes7); MethodHandler methodHandler = new MethodHandler(methodKey, repositoryId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (java.util.List)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.sync.model.SyncDLObject getFileEntrySyncDLObject( HttpPrincipal httpPrincipal, long repositoryId, long folderId, java.lang.String title) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "getFileEntrySyncDLObject", _getFileEntrySyncDLObjectParameterTypes8); MethodHandler methodHandler = new MethodHandler(methodKey, repositoryId, folderId, title); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (com.liferay.sync.model.SyncDLObject)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static java.util.List getFileEntrySyncDLObjects( HttpPrincipal httpPrincipal, long repositoryId, long folderId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "getFileEntrySyncDLObjects", _getFileEntrySyncDLObjectsParameterTypes9); MethodHandler methodHandler = new MethodHandler(methodKey, repositoryId, folderId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (java.util.List)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.sync.model.SyncDLObject getFolderSyncDLObject( HttpPrincipal httpPrincipal, long folderId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "getFolderSyncDLObject", _getFolderSyncDLObjectParameterTypes10); MethodHandler methodHandler = new MethodHandler(methodKey, folderId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (com.liferay.sync.model.SyncDLObject)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.sync.model.SyncDLObject getFolderSyncDLObject( HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId, java.lang.String name) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "getFolderSyncDLObject", _getFolderSyncDLObjectParameterTypes11); MethodHandler methodHandler = new MethodHandler(methodKey, repositoryId, parentFolderId, name); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (com.liferay.sync.model.SyncDLObject)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static java.util.List getFolderSyncDLObjects( HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "getFolderSyncDLObjects", _getFolderSyncDLObjectsParameterTypes12); MethodHandler methodHandler = new MethodHandler(methodKey, repositoryId, parentFolderId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (java.util.List)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.portal.kernel.model.Group getGroup( HttpPrincipal httpPrincipal, long groupId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "getGroup", _getGroupParameterTypes13); MethodHandler methodHandler = new MethodHandler(methodKey, groupId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (com.liferay.portal.kernel.model.Group)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static long getLatestModifiedTime(HttpPrincipal httpPrincipal) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "getLatestModifiedTime", _getLatestModifiedTimeParameterTypes14); MethodHandler methodHandler = new MethodHandler(methodKey); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return ((Long)returnObj).longValue(); } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static java.lang.Object getSyncContext(HttpPrincipal httpPrincipal) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "getSyncContext", _getSyncContextParameterTypes15); MethodHandler methodHandler = new MethodHandler(methodKey); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static java.lang.String getSyncDLObjectUpdate( HttpPrincipal httpPrincipal, long repositoryId, long lastAccessTime, int max) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "getSyncDLObjectUpdate", _getSyncDLObjectUpdateParameterTypes16); MethodHandler methodHandler = new MethodHandler(methodKey, repositoryId, lastAccessTime, max); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (java.lang.String)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static java.lang.String getSyncDLObjectUpdate( HttpPrincipal httpPrincipal, long repositoryId, long lastAccessTime, int max, boolean retrieveFromCache) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "getSyncDLObjectUpdate", _getSyncDLObjectUpdateParameterTypes17); MethodHandler methodHandler = new MethodHandler(methodKey, repositoryId, lastAccessTime, max, retrieveFromCache); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (java.lang.String)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static java.lang.String getSyncDLObjectUpdate( HttpPrincipal httpPrincipal, long repositoryId, long parentFolderId, long lastAccessTime) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "getSyncDLObjectUpdate", _getSyncDLObjectUpdateParameterTypes18); MethodHandler methodHandler = new MethodHandler(methodKey, repositoryId, parentFolderId, lastAccessTime); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (java.lang.String)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static java.util.List getUserSitesGroups( HttpPrincipal httpPrincipal) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "getUserSitesGroups", _getUserSitesGroupsParameterTypes19); MethodHandler methodHandler = new MethodHandler(methodKey); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (java.util.List)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.sync.model.SyncDLObject moveFileEntry( HttpPrincipal httpPrincipal, long fileEntryId, long newFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "moveFileEntry", _moveFileEntryParameterTypes20); MethodHandler methodHandler = new MethodHandler(methodKey, fileEntryId, newFolderId, serviceContext); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (com.liferay.sync.model.SyncDLObject)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.sync.model.SyncDLObject moveFileEntryToTrash( HttpPrincipal httpPrincipal, long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "moveFileEntryToTrash", _moveFileEntryToTrashParameterTypes21); MethodHandler methodHandler = new MethodHandler(methodKey, fileEntryId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (com.liferay.sync.model.SyncDLObject)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.sync.model.SyncDLObject moveFolder( HttpPrincipal httpPrincipal, long folderId, long parentFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "moveFolder", _moveFolderParameterTypes22); MethodHandler methodHandler = new MethodHandler(methodKey, folderId, parentFolderId, serviceContext); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (com.liferay.sync.model.SyncDLObject)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.sync.model.SyncDLObject moveFolderToTrash( HttpPrincipal httpPrincipal, long folderId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "moveFolderToTrash", _moveFolderToTrashParameterTypes23); MethodHandler methodHandler = new MethodHandler(methodKey, folderId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (com.liferay.sync.model.SyncDLObject)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.sync.model.SyncDLObject patchFileEntry( HttpPrincipal httpPrincipal, long fileEntryId, long sourceVersionId, java.lang.String sourceFileName, java.lang.String mimeType, java.lang.String title, java.lang.String description, java.lang.String changeLog, boolean majorVersion, java.io.File deltaFile, java.lang.String checksum, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "patchFileEntry", _patchFileEntryParameterTypes24); MethodHandler methodHandler = new MethodHandler(methodKey, fileEntryId, sourceVersionId, sourceFileName, mimeType, title, description, changeLog, majorVersion, deltaFile, checksum, serviceContext); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (com.liferay.sync.model.SyncDLObject)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.sync.model.SyncDLObject restoreFileEntryFromTrash( HttpPrincipal httpPrincipal, long fileEntryId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "restoreFileEntryFromTrash", _restoreFileEntryFromTrashParameterTypes25); MethodHandler methodHandler = new MethodHandler(methodKey, fileEntryId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (com.liferay.sync.model.SyncDLObject)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.sync.model.SyncDLObject restoreFolderFromTrash( HttpPrincipal httpPrincipal, long folderId) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "restoreFolderFromTrash", _restoreFolderFromTrashParameterTypes26); MethodHandler methodHandler = new MethodHandler(methodKey, folderId); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (com.liferay.sync.model.SyncDLObject)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static java.util.Map updateFileEntries( HttpPrincipal httpPrincipal, java.io.File zipFile) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "updateFileEntries", _updateFileEntriesParameterTypes27); MethodHandler methodHandler = new MethodHandler(methodKey, zipFile); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (java.util.Map)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.sync.model.SyncDLObject updateFileEntry( HttpPrincipal httpPrincipal, long fileEntryId, java.lang.String sourceFileName, java.lang.String mimeType, java.lang.String title, java.lang.String description, java.lang.String changeLog, boolean majorVersion, java.io.File file, java.lang.String checksum, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "updateFileEntry", _updateFileEntryParameterTypes28); MethodHandler methodHandler = new MethodHandler(methodKey, fileEntryId, sourceFileName, mimeType, title, description, changeLog, majorVersion, file, checksum, serviceContext); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (com.liferay.sync.model.SyncDLObject)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } public static com.liferay.sync.model.SyncDLObject updateFolder( HttpPrincipal httpPrincipal, long folderId, java.lang.String name, java.lang.String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { try { MethodKey methodKey = new MethodKey(SyncDLObjectServiceUtil.class, "updateFolder", _updateFolderParameterTypes29); MethodHandler methodHandler = new MethodHandler(methodKey, folderId, name, description, serviceContext); Object returnObj = null; try { returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler); } catch (Exception e) { if (e instanceof com.liferay.portal.kernel.exception.PortalException) { throw (com.liferay.portal.kernel.exception.PortalException)e; } throw new com.liferay.portal.kernel.exception.SystemException(e); } return (com.liferay.sync.model.SyncDLObject)returnObj; } catch (com.liferay.portal.kernel.exception.SystemException se) { _log.error(se, se); throw se; } } private static Log _log = LogFactoryUtil.getLog(SyncDLObjectServiceHttp.class); private static final Class[] _addFileEntryParameterTypes0 = new Class[] { long.class, long.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.io.File.class, java.lang.String.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _addFolderParameterTypes1 = new Class[] { long.class, long.class, java.lang.String.class, java.lang.String.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _cancelCheckOutParameterTypes2 = new Class[] { long.class }; private static final Class[] _checkInFileEntryParameterTypes3 = new Class[] { long.class, boolean.class, java.lang.String.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _checkOutFileEntryParameterTypes4 = new Class[] { long.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _checkOutFileEntryParameterTypes5 = new Class[] { long.class, java.lang.String.class, long.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _copyFileEntryParameterTypes6 = new Class[] { long.class, long.class, long.class, java.lang.String.class, java.lang.String.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _getAllFolderSyncDLObjectsParameterTypes7 = new Class[] { long.class }; private static final Class[] _getFileEntrySyncDLObjectParameterTypes8 = new Class[] { long.class, long.class, java.lang.String.class }; private static final Class[] _getFileEntrySyncDLObjectsParameterTypes9 = new Class[] { long.class, long.class }; private static final Class[] _getFolderSyncDLObjectParameterTypes10 = new Class[] { long.class }; private static final Class[] _getFolderSyncDLObjectParameterTypes11 = new Class[] { long.class, long.class, java.lang.String.class }; private static final Class[] _getFolderSyncDLObjectsParameterTypes12 = new Class[] { long.class, long.class }; private static final Class[] _getGroupParameterTypes13 = new Class[] { long.class }; private static final Class[] _getLatestModifiedTimeParameterTypes14 = new Class[] { }; private static final Class[] _getSyncContextParameterTypes15 = new Class[] { }; private static final Class[] _getSyncDLObjectUpdateParameterTypes16 = new Class[] { long.class, long.class, int.class }; private static final Class[] _getSyncDLObjectUpdateParameterTypes17 = new Class[] { long.class, long.class, int.class, boolean.class }; private static final Class[] _getSyncDLObjectUpdateParameterTypes18 = new Class[] { long.class, long.class, long.class }; private static final Class[] _getUserSitesGroupsParameterTypes19 = new Class[] { }; private static final Class[] _moveFileEntryParameterTypes20 = new Class[] { long.class, long.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _moveFileEntryToTrashParameterTypes21 = new Class[] { long.class }; private static final Class[] _moveFolderParameterTypes22 = new Class[] { long.class, long.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _moveFolderToTrashParameterTypes23 = new Class[] { long.class }; private static final Class[] _patchFileEntryParameterTypes24 = new Class[] { long.class, long.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, boolean.class, java.io.File.class, java.lang.String.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _restoreFileEntryFromTrashParameterTypes25 = new Class[] { long.class }; private static final Class[] _restoreFolderFromTrashParameterTypes26 = new Class[] { long.class }; private static final Class[] _updateFileEntriesParameterTypes27 = new Class[] { java.io.File.class }; private static final Class[] _updateFileEntryParameterTypes28 = new Class[] { long.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, boolean.class, java.io.File.class, java.lang.String.class, com.liferay.portal.kernel.service.ServiceContext.class }; private static final Class[] _updateFolderParameterTypes29 = new Class[] { long.class, java.lang.String.class, java.lang.String.class, com.liferay.portal.kernel.service.ServiceContext.class }; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy