com.liferay.portal.service.http
Class RepositoryServiceHttp

java.lang.Object
  extended by com.liferay.portal.service.http.RepositoryServiceHttp

public class RepositoryServiceHttp
extends java.lang.Object

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

Constructor Summary
RepositoryServiceHttp()
           
 
Method Summary
static long addRepository(HttpPrincipal httpPrincipal, long groupId, long classNameId, long parentFolderId, java.lang.String name, java.lang.String description, java.lang.String portletId, com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties, com.liferay.portal.service.ServiceContext serviceContext)
           
static void checkRepository(HttpPrincipal httpPrincipal, long repositoryId)
           
static void deleteRepository(HttpPrincipal httpPrincipal, long repositoryId)
           
static com.liferay.portal.kernel.repository.LocalRepository getLocalRepositoryImpl(HttpPrincipal httpPrincipal, long repositoryId)
           
static com.liferay.portal.kernel.repository.LocalRepository getLocalRepositoryImpl(HttpPrincipal httpPrincipal, long folderId, long fileEntryId, long fileVersionId)
           
static com.liferay.portal.model.Repository getRepository(HttpPrincipal httpPrincipal, long repositoryId)
           
static com.liferay.portal.kernel.repository.Repository getRepositoryImpl(HttpPrincipal httpPrincipal, long repositoryId)
           
static com.liferay.portal.kernel.repository.Repository getRepositoryImpl(HttpPrincipal httpPrincipal, long folderId, long fileEntryId, long fileVersionId)
           
static java.lang.String[] getSupportedConfigurations(HttpPrincipal httpPrincipal, long classNameId)
           
static java.lang.String[] getSupportedParameters(HttpPrincipal httpPrincipal, long classNameId, java.lang.String configuration)
           
static com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties(HttpPrincipal httpPrincipal, long repositoryId)
           
static void updateRepository(HttpPrincipal httpPrincipal, long repositoryId, java.lang.String name, java.lang.String description)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryServiceHttp

public RepositoryServiceHttp()
Method Detail

addRepository

public static long addRepository(HttpPrincipal httpPrincipal,
                                 long groupId,
                                 long classNameId,
                                 long parentFolderId,
                                 java.lang.String name,
                                 java.lang.String description,
                                 java.lang.String portletId,
                                 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
                                 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

checkRepository

public static void checkRepository(HttpPrincipal httpPrincipal,
                                   long repositoryId)
                            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

deleteRepository

public static void deleteRepository(HttpPrincipal httpPrincipal,
                                    long repositoryId)
                             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

getLocalRepositoryImpl

public static com.liferay.portal.kernel.repository.LocalRepository getLocalRepositoryImpl(HttpPrincipal httpPrincipal,
                                                                                          long repositoryId)
                                                                                   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

getLocalRepositoryImpl

public static com.liferay.portal.kernel.repository.LocalRepository getLocalRepositoryImpl(HttpPrincipal httpPrincipal,
                                                                                          long folderId,
                                                                                          long fileEntryId,
                                                                                          long fileVersionId)
                                                                                   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

getRepository

public static com.liferay.portal.model.Repository getRepository(HttpPrincipal httpPrincipal,
                                                                long repositoryId)
                                                         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

getRepositoryImpl

public static com.liferay.portal.kernel.repository.Repository getRepositoryImpl(HttpPrincipal httpPrincipal,
                                                                                long repositoryId)
                                                                         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

getRepositoryImpl

public static com.liferay.portal.kernel.repository.Repository getRepositoryImpl(HttpPrincipal httpPrincipal,
                                                                                long folderId,
                                                                                long fileEntryId,
                                                                                long fileVersionId)
                                                                         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

getSupportedConfigurations

public static java.lang.String[] getSupportedConfigurations(HttpPrincipal httpPrincipal,
                                                            long classNameId)
                                                     throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getSupportedParameters

public static java.lang.String[] getSupportedParameters(HttpPrincipal httpPrincipal,
                                                        long classNameId,
                                                        java.lang.String configuration)
                                                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getTypeSettingsProperties

public static com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties(HttpPrincipal httpPrincipal,
                                                                                         long repositoryId)
                                                                                  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

updateRepository

public static void updateRepository(HttpPrincipal httpPrincipal,
                                    long repositoryId,
                                    java.lang.String name,
                                    java.lang.String description)
                             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