Liferay 6.1.2-ce-ga3

com.liferay.portal.service.http
Class RepositoryServiceHttp

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

public class RepositoryServiceHttp
extends 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.

See Also:
RepositoryServiceSoap, HttpPrincipal, RepositoryServiceUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
RepositoryServiceHttp()
           
 
Method Summary
static long addRepository(HttpPrincipal httpPrincipal, long groupId, long classNameId, long parentFolderId, String name, String description, String portletId, UnicodeProperties typeSettingsProperties, ServiceContext serviceContext)
           
static void checkRepository(HttpPrincipal httpPrincipal, long repositoryId)
           
static void deleteRepository(HttpPrincipal httpPrincipal, long repositoryId)
           
static LocalRepository getLocalRepositoryImpl(HttpPrincipal httpPrincipal, long repositoryId)
           
static LocalRepository getLocalRepositoryImpl(HttpPrincipal httpPrincipal, long folderId, long fileEntryId, long fileVersionId)
           
static Repository getRepository(HttpPrincipal httpPrincipal, long repositoryId)
           
static Repository getRepositoryImpl(HttpPrincipal httpPrincipal, long repositoryId)
           
static Repository getRepositoryImpl(HttpPrincipal httpPrincipal, long folderId, long fileEntryId, long fileVersionId)
           
static String[] getSupportedConfigurations(HttpPrincipal httpPrincipal, long classNameId)
           
static String[] getSupportedParameters(HttpPrincipal httpPrincipal, long classNameId, String configuration)
           
static UnicodeProperties getTypeSettingsProperties(HttpPrincipal httpPrincipal, long repositoryId)
           
static void updateRepository(HttpPrincipal httpPrincipal, long repositoryId, String name, 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,
                                 String name,
                                 String description,
                                 String portletId,
                                 UnicodeProperties typeSettingsProperties,
                                 ServiceContext serviceContext)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

checkRepository

public static void checkRepository(HttpPrincipal httpPrincipal,
                                   long repositoryId)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

deleteRepository

public static void deleteRepository(HttpPrincipal httpPrincipal,
                                    long repositoryId)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

getLocalRepositoryImpl

public static LocalRepository getLocalRepositoryImpl(HttpPrincipal httpPrincipal,
                                                     long repositoryId)
                                              throws PortalException,
                                                     SystemException
Throws:
PortalException
SystemException

getLocalRepositoryImpl

public static LocalRepository getLocalRepositoryImpl(HttpPrincipal httpPrincipal,
                                                     long folderId,
                                                     long fileEntryId,
                                                     long fileVersionId)
                                              throws PortalException,
                                                     SystemException
Throws:
PortalException
SystemException

getRepository

public static Repository getRepository(HttpPrincipal httpPrincipal,
                                       long repositoryId)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

getRepositoryImpl

public static Repository getRepositoryImpl(HttpPrincipal httpPrincipal,
                                           long repositoryId)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

getRepositoryImpl

public static Repository getRepositoryImpl(HttpPrincipal httpPrincipal,
                                           long folderId,
                                           long fileEntryId,
                                           long fileVersionId)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

getSupportedConfigurations

public static String[] getSupportedConfigurations(HttpPrincipal httpPrincipal,
                                                  long classNameId)
                                           throws SystemException
Throws:
SystemException

getSupportedParameters

public static String[] getSupportedParameters(HttpPrincipal httpPrincipal,
                                              long classNameId,
                                              String configuration)
                                       throws SystemException
Throws:
SystemException

getTypeSettingsProperties

public static UnicodeProperties getTypeSettingsProperties(HttpPrincipal httpPrincipal,
                                                          long repositoryId)
                                                   throws PortalException,
                                                          SystemException
Throws:
PortalException
SystemException

updateRepository

public static void updateRepository(HttpPrincipal httpPrincipal,
                                    long repositoryId,
                                    String name,
                                    String description)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

Liferay 6.1.2-ce-ga3