public class RegistryUtils extends Object
| Constructor and Description |
|---|
RegistryUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getAbsoluteRegistryPath(String registryPath,
String basePath)
Calculate and return the absolute path of a resource
|
static String |
getEventReceiverEndpoint()
Returns the endpoint URL of the AutoCheckoutService
|
static String |
subscribeForRegistryEvents(org.wso2.carbon.registry.core.session.UserRegistry registry,
String absolutePath,
String endpoint)
Subscribe for events on a given registry collection
|
static boolean |
unsubscribeForRegistryEvents(String subscriptionId,
int tenantId)
Unsubscribe from registry events
|
public static String getAbsoluteRegistryPath(String registryPath, String basePath)
registryPath - The relative path of the resourcebasePath - Base path of the registry partitionpublic static String subscribeForRegistryEvents(org.wso2.carbon.registry.core.session.UserRegistry registry, String absolutePath, String endpoint) throws DeploymentSynchronizerException
registry - Registry space in which the target collection residesabsolutePath - Absolute path of the collectionendpoint - The endpoint which should receive the eventsDeploymentSynchronizerException - If the subscription operation failspublic static boolean unsubscribeForRegistryEvents(String subscriptionId, int tenantId)
subscriptionId - ID of an existing subscriptiontenantId - Current tenant IDpublic static String getEventReceiverEndpoint()
Copyright © 2015 WSO2. All rights reserved.