public class WSO2Registry
extends org.apache.synapse.registry.AbstractRegistry
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_REGISTRY_PREFIX |
static String |
GOVERNANCE_REGISTRY_PREFIX |
static String |
LOCAL_REGISTRY_PREFIX |
Constructor and Description |
---|
WSO2Registry() |
Modifier and Type | Method and Description |
---|---|
void |
delete(String key) |
org.apache.synapse.registry.RegistryEntry[] |
getChildren(org.apache.synapse.registry.RegistryEntry entry) |
org.apache.synapse.registry.RegistryEntry[] |
getDescendants(org.apache.synapse.registry.RegistryEntry entry) |
org.apache.synapse.registry.RegistryEntry |
getRegistryEntry(String entryKey) |
org.wso2.carbon.registry.core.Resource |
getResource(String path) |
Properties |
getResourceProperties(String entryKey)
Returns all resource properties for a given registry resource
|
void |
init(Properties properties) |
boolean |
isResourceExists(String path) |
org.apache.axiom.om.OMNode |
lookup(String key) |
org.apache.axiom.om.OMNode |
lookupFormat(String key) |
void |
newNonEmptyResource(String key,
boolean isDirectory,
String mediaType,
String content,
String propertyName) |
void |
newResource(String key,
boolean isDirectory) |
void |
updateRegistryEntry(org.apache.synapse.registry.RegistryEntry entry) |
void |
updateResource(String path,
Object value)
Updates the content of a resource in the given path with given content
|
public static final String CONFIG_REGISTRY_PREFIX
public static final String GOVERNANCE_REGISTRY_PREFIX
public static final String LOCAL_REGISTRY_PREFIX
public void init(Properties properties)
init
in interface org.apache.synapse.registry.Registry
init
in class org.apache.synapse.registry.AbstractRegistry
public org.apache.axiom.om.OMNode lookup(String key)
public org.apache.axiom.om.OMNode lookupFormat(String key)
public void delete(String key)
public void newResource(String key, boolean isDirectory)
public void newNonEmptyResource(String key, boolean isDirectory, String mediaType, String content, String propertyName)
public void updateResource(String path, Object value)
path
- The resource pathvalue
- The resource content to be setpublic void updateRegistryEntry(org.apache.synapse.registry.RegistryEntry entry)
public org.apache.synapse.registry.RegistryEntry getRegistryEntry(String entryKey)
public org.apache.synapse.registry.RegistryEntry[] getChildren(org.apache.synapse.registry.RegistryEntry entry)
public org.apache.synapse.registry.RegistryEntry[] getDescendants(org.apache.synapse.registry.RegistryEntry entry)
public org.wso2.carbon.registry.core.Resource getResource(String path)
public Properties getResourceProperties(String entryKey)
getResourceProperties
in interface org.apache.synapse.registry.Registry
getResourceProperties
in class org.apache.synapse.registry.AbstractRegistry
entryKey
- - Registry path of the resourcepublic boolean isResourceExists(String path)
Copyright © 2022 WSO2. All rights reserved.