Class WSO2Registry
- java.lang.Object
-
- org.apache.synapse.registry.AbstractRegistry
-
- org.wso2.carbon.mediation.registry.WSO2Registry
-
- All Implemented Interfaces:
org.apache.synapse.registry.Registry
public class WSO2Registry extends org.apache.synapse.registry.AbstractRegistry
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFIG_REGISTRY_PREFIX
static String
GOVERNANCE_REGISTRY_PREFIX
static String
LOCAL_REGISTRY_PREFIX
-
Constructor Summary
Constructors Constructor Description WSO2Registry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 resourcevoid
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
-
-
-
Field Detail
-
CONFIG_REGISTRY_PREFIX
public static final String CONFIG_REGISTRY_PREFIX
- See Also:
- Constant Field Values
-
GOVERNANCE_REGISTRY_PREFIX
public static final String GOVERNANCE_REGISTRY_PREFIX
- See Also:
- Constant Field Values
-
LOCAL_REGISTRY_PREFIX
public static final String LOCAL_REGISTRY_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(Properties properties)
- Specified by:
init
in interfaceorg.apache.synapse.registry.Registry
- Overrides:
init
in classorg.apache.synapse.registry.AbstractRegistry
-
lookup
public org.apache.axiom.om.OMNode lookup(String key)
-
lookupFormat
public org.apache.axiom.om.OMNode lookupFormat(String key)
-
delete
public void delete(String key)
-
newResource
public void newResource(String key, boolean isDirectory)
-
newNonEmptyResource
public void newNonEmptyResource(String key, boolean isDirectory, String mediaType, String content, String propertyName)
-
updateResource
public void updateResource(String path, Object value)
Updates the content of a resource in the given path with given content- Parameters:
path
- The resource pathvalue
- The resource content to be set
-
updateRegistryEntry
public void updateRegistryEntry(org.apache.synapse.registry.RegistryEntry entry)
-
getRegistryEntry
public org.apache.synapse.registry.RegistryEntry getRegistryEntry(String entryKey)
-
getChildren
public org.apache.synapse.registry.RegistryEntry[] getChildren(org.apache.synapse.registry.RegistryEntry entry)
-
getDescendants
public org.apache.synapse.registry.RegistryEntry[] getDescendants(org.apache.synapse.registry.RegistryEntry entry)
-
getResource
public org.wso2.carbon.registry.core.Resource getResource(String path)
-
getResourceProperties
public Properties getResourceProperties(String entryKey)
Returns all resource properties for a given registry resource- Specified by:
getResourceProperties
in interfaceorg.apache.synapse.registry.Registry
- Overrides:
getResourceProperties
in classorg.apache.synapse.registry.AbstractRegistry
- Parameters:
entryKey
- - Registry path of the resource- Returns:
- Map of resource properties
-
isResourceExists
public boolean isResourceExists(String path)
-
-