com.liferay.portlet.documentlibrary.service.http
Class DLSyncServiceHttp

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.service.http.DLSyncServiceHttp

public class DLSyncServiceHttp
extends java.lang.Object

This class provides a HTTP utility for the DLSyncServiceUtil 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 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 Also:
DLSyncServiceSoap, HttpPrincipal, DLSyncServiceUtil
Generated:

Constructor Summary
DLSyncServiceHttp()
           
 
Method Summary
static com.liferay.portlet.documentlibrary.model.DLSyncUpdate getDLSyncUpdate(HttpPrincipal httpPrincipal, long companyId, long repositoryId, java.util.Date lastAccessDate)
           
static java.io.InputStream getFileDeltaAsStream(HttpPrincipal httpPrincipal, long fileEntryId, java.lang.String sourceVersion, java.lang.String destinationVersion)
           
static com.liferay.portal.kernel.repository.model.FileEntry 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.InputStream deltaInputStream, long size, com.liferay.portal.service.ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLSyncServiceHttp

public DLSyncServiceHttp()
Method Detail

getDLSyncUpdate

public static com.liferay.portlet.documentlibrary.model.DLSyncUpdate getDLSyncUpdate(HttpPrincipal httpPrincipal,
                                                                                     long companyId,
                                                                                     long repositoryId,
                                                                                     java.util.Date lastAccessDate)
                                                                              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getFileDeltaAsStream

public static java.io.InputStream getFileDeltaAsStream(HttpPrincipal httpPrincipal,
                                                       long fileEntryId,
                                                       java.lang.String sourceVersion,
                                                       java.lang.String destinationVersion)
                                                throws com.liferay.portal.kernel.exception.PortalException,
                                                       com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateFileEntry

public static com.liferay.portal.kernel.repository.model.FileEntry 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.InputStream deltaInputStream,
                                                                                   long size,
                                                                                   com.liferay.portal.service.ServiceContext serviceContext)
                                                                            throws com.liferay.portal.kernel.exception.PortalException,
                                                                                   com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException