Class WSO2Registry

  • All Implemented Interfaces:
    org.apache.synapse.registry.Registry

    public class WSO2Registry
    extends org.apache.synapse.registry.AbstractRegistry
    • Constructor Detail

      • WSO2Registry

        public WSO2Registry()
    • Method Detail

      • init

        public void init​(Properties properties)
        Specified by:
        init in interface org.apache.synapse.registry.Registry
        Overrides:
        init in class org.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 path
        value - 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 interface org.apache.synapse.registry.Registry
        Overrides:
        getResourceProperties in class org.apache.synapse.registry.AbstractRegistry
        Parameters:
        entryKey - - Registry path of the resource
        Returns:
        Map of resource properties
      • isResourceExists

        public boolean isResourceExists​(String path)