public class RepositoryServiceHttp
extends java.lang.Object
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.
RepositoryServiceSoap,
HttpPrincipal,
RepositoryServiceUtil| Constructor and Description |
|---|
RepositoryServiceHttp() |
| Modifier and Type | Method and Description |
|---|---|
static com.liferay.portal.model.Repository |
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) |
public static com.liferay.portal.model.Repository 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
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static void checkRepository(HttpPrincipal httpPrincipal, long repositoryId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static void deleteRepository(HttpPrincipal httpPrincipal, long repositoryId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic 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
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic 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
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portal.model.Repository getRepository(HttpPrincipal httpPrincipal, long repositoryId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic 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
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic 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
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static java.lang.String[] getSupportedConfigurations(HttpPrincipal httpPrincipal, long classNameId) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static java.lang.String[] getSupportedParameters(HttpPrincipal httpPrincipal, long classNameId, java.lang.String configuration) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic 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
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic 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
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemException