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| Constructor and Description |
|---|
RepositoryServiceHttp() |
| Modifier and Type | Method and Description |
|---|---|
static Repository |
addRepository(HttpPrincipal httpPrincipal,
long groupId,
long classNameId,
long parentFolderId,
java.lang.String name,
java.lang.String description,
java.lang.String portletId,
UnicodeProperties typeSettingsUnicodeProperties,
ServiceContext serviceContext) |
static void |
checkRepository(HttpPrincipal httpPrincipal,
long repositoryId) |
static void |
deleteRepository(HttpPrincipal httpPrincipal,
long repositoryId) |
static Repository |
getRepository(HttpPrincipal httpPrincipal,
long repositoryId) |
static Repository |
getRepository(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String portletId) |
static UnicodeProperties |
getTypeSettingsProperties(HttpPrincipal httpPrincipal,
long repositoryId) |
static void |
updateRepository(HttpPrincipal httpPrincipal,
long repositoryId,
java.lang.String name,
java.lang.String description) |
public static Repository addRepository(HttpPrincipal httpPrincipal, long groupId, long classNameId, long parentFolderId, java.lang.String name, java.lang.String description, java.lang.String portletId, UnicodeProperties typeSettingsUnicodeProperties, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic static void checkRepository(HttpPrincipal httpPrincipal, long repositoryId) throws PortalException
PortalExceptionpublic static void deleteRepository(HttpPrincipal httpPrincipal, long repositoryId) throws PortalException
PortalExceptionpublic static Repository getRepository(HttpPrincipal httpPrincipal, long repositoryId) throws PortalException
PortalExceptionpublic static Repository getRepository(HttpPrincipal httpPrincipal, long groupId, java.lang.String portletId) throws PortalException
PortalExceptionpublic static UnicodeProperties getTypeSettingsProperties(HttpPrincipal httpPrincipal, long repositoryId) throws PortalException
PortalExceptionpublic static void updateRepository(HttpPrincipal httpPrincipal, long repositoryId, java.lang.String name, java.lang.String description) throws PortalException
PortalException