com.liferay.portal.service.http
Class RepositoryServiceHttp
java.lang.Object
com.liferay.portal.service.http.RepositoryServiceHttp
@ProviderType
public class RepositoryServiceHttp
- extends Object
Provides the 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.
|
Method Summary |
static Repository |
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 Repository |
getRepository(HttpPrincipal httpPrincipal,
long repositoryId)
|
static String[] |
getSupportedConfigurations(HttpPrincipal httpPrincipal,
long classNameId)
|
static String[] |
getSupportedParameters(HttpPrincipal httpPrincipal,
long classNameId,
String configuration)
|
static String[] |
getSupportedParameters(HttpPrincipal httpPrincipal,
String className,
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 |
RepositoryServiceHttp
public RepositoryServiceHttp()
addRepository
public static Repository addRepository(HttpPrincipal httpPrincipal,
long groupId,
long classNameId,
long parentFolderId,
String name,
String description,
String portletId,
UnicodeProperties typeSettingsProperties,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
checkRepository
public static void checkRepository(HttpPrincipal httpPrincipal,
long repositoryId)
throws PortalException
- Throws:
PortalException
deleteRepository
public static void deleteRepository(HttpPrincipal httpPrincipal,
long repositoryId)
throws PortalException
- Throws:
PortalException
getRepository
public static Repository getRepository(HttpPrincipal httpPrincipal,
long repositoryId)
throws PortalException
- Throws:
PortalException
getSupportedConfigurations
public static String[] getSupportedConfigurations(HttpPrincipal httpPrincipal,
long classNameId)
getSupportedParameters
public static String[] getSupportedParameters(HttpPrincipal httpPrincipal,
long classNameId,
String configuration)
getSupportedParameters
public static String[] getSupportedParameters(HttpPrincipal httpPrincipal,
String className,
String configuration)
getTypeSettingsProperties
public static UnicodeProperties getTypeSettingsProperties(HttpPrincipal httpPrincipal,
long repositoryId)
throws PortalException
- Throws:
PortalException
updateRepository
public static void updateRepository(HttpPrincipal httpPrincipal,
long repositoryId,
String name,
String description)
throws PortalException
- Throws:
PortalException