public class MicroRegistryManager extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
MicroRegistryManager.MicroRegistryManagerException
Custom exception for exceptions related for MicroRegistryManager
|
| Constructor and Description |
|---|
MicroRegistryManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(String filePath,
String sourcePath,
String propertyName,
String value)
Function to add resource to the Micro Registry
|
void |
addResource(String resourcePath,
String sourcePath)
Function to add resource to the Micro Registry
|
boolean |
checkResourceExist(String sourcePath,
String resourcePath,
String filename)
Function is to check if the registry resources are exist in filepath
|
String |
getProperty(String collectionPath,
String resourceName,
String propertyName)
Function to update existing property from the Micro Registry
|
void |
restoreOriginalResources()
Function to restore backed up resources by this utility
|
void |
updateProperty(String collectionPath,
String resourceName,
String propertyName,
String value,
boolean backupOriginal)
Function to update existing property from the Micro Registry
|
void |
updateResource(String resourcePath,
String sourcePath,
boolean backupOriginal)
Function to update existing resource from the Micro Registry
|
public void addResource(String resourcePath, String sourcePath) throws MicroRegistryManager.MicroRegistryManagerException
resourcePath - resource path in WSO2 registry path stylesourcePath - source fileMicroRegistryManager.MicroRegistryManagerException - if error occurred while updating resourcepublic void addProperty(String filePath, String sourcePath, String propertyName, String value) throws MicroRegistryManager.MicroRegistryManagerException
filePath - resource path in WSO2 registry path stylesourcePath - source filepropertyName - source filevalue - property valueMicroRegistryManager.MicroRegistryManagerException - if error occurred while updating resourcepublic void updateResource(String resourcePath, String sourcePath, boolean backupOriginal) throws MicroRegistryManager.MicroRegistryManagerException
resourcePath - resource path in WSO2 registry path stylesourcePath - source filebackupOriginal - bool to indicate whether to backup the original resource if existsMicroRegistryManager.MicroRegistryManagerException - if error occurred while updating resourcepublic boolean checkResourceExist(String sourcePath, String resourcePath, String filename) throws Exception
sourcePath - path to registry resourceresourcePath - path to resource file path from registry resourcefilename - registry filenameExceptionpublic void updateProperty(String collectionPath, String resourceName, String propertyName, String value, boolean backupOriginal) throws MicroRegistryManager.MicroRegistryManagerException
collectionPath - resource path in WSO2 registry path styleresourceName - resource path in WSO2 registry path stylepropertyName - source filevalue - property valuebackupOriginal - bool to indicate whether to backup the original resource if existsMicroRegistryManager.MicroRegistryManagerException - if error occurred while updating resourcepublic String getProperty(String collectionPath, String resourceName, String propertyName) throws MicroRegistryManager.MicroRegistryManagerException
collectionPath - resource path in WSO2 registry path styleresourceName - resource path in WSO2 registry path stylepropertyName - source fileMicroRegistryManager.MicroRegistryManagerException - if error occurred while updating resourcepublic void restoreOriginalResources()
throws MicroRegistryManager.MicroRegistryManagerException
Copyright © 2019 WSO2. All rights reserved.