public class CommonUtil extends Object
| Constructor and Description |
|---|
CommonUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
addDefaultHandlersIfNotAvailable(org.wso2.carbon.registry.core.Registry configSystemRegistry) |
static boolean |
addHandler(org.wso2.carbon.registry.core.Registry configSystemRegistry,
String payload) |
static boolean |
deleteHandler(org.wso2.carbon.registry.core.Registry configSystemRegistry,
String name) |
static HandlerConfigurationBean |
deserializeHandlerConfiguration(org.apache.axiom.om.OMElement configurationElement) |
static boolean |
generateHandler(org.wso2.carbon.registry.core.Registry configSystemRegistry,
String resourceFullPath) |
static String |
getContextRoot() |
static String |
getHandlerConfiguration(org.wso2.carbon.registry.core.Registry configSystemRegistry,
String name) |
static String[] |
getHandlerList(org.wso2.carbon.registry.core.Registry configSystemRegistry) |
static org.wso2.carbon.registry.core.service.RegistryService |
getRegistryService() |
static SimulationResponse |
getSimulationResponse() |
static org.wso2.carbon.registry.core.service.SimulationService |
getSimulationService() |
static boolean |
handlerExists(org.wso2.carbon.registry.core.Registry configSystemRegistry,
String name) |
static boolean |
isHandlerNameInUse(String name) |
static boolean |
removeHandler(org.wso2.carbon.registry.core.Registry configSystemRegistry,
String handlerName) |
static org.apache.axiom.om.OMElement |
serializeHandlerConfiguration(HandlerConfigurationBean bean) |
static void |
setContextRoot(String contextRoot) |
static void |
setRegistryService(org.wso2.carbon.registry.core.service.RegistryService service) |
static void |
setSimulationService(org.wso2.carbon.registry.core.service.SimulationService simulationService) |
static void |
simulateRegistryOperation(org.wso2.carbon.registry.core.Registry rootRegistry,
SimulationRequest simulationRequest)
Simulates a configSystemRegistry operation.
|
static boolean |
updateHandler(org.wso2.carbon.registry.core.Registry configSystemRegistry,
String oldName,
String payload) |
public static void setRegistryService(org.wso2.carbon.registry.core.service.RegistryService service)
public static org.wso2.carbon.registry.core.service.RegistryService getRegistryService()
public static void simulateRegistryOperation(org.wso2.carbon.registry.core.Registry rootRegistry,
SimulationRequest simulationRequest)
throws Exception
simulationRequest - the simulation request.Exception - if an exception occurs while executing any operation, or if an invalid
parameter was entered.public static SimulationResponse getSimulationResponse()
public static boolean updateHandler(org.wso2.carbon.registry.core.Registry configSystemRegistry,
String oldName,
String payload)
throws org.wso2.carbon.registry.core.exceptions.RegistryException,
XMLStreamException
org.wso2.carbon.registry.core.exceptions.RegistryExceptionXMLStreamExceptionpublic static boolean addHandler(org.wso2.carbon.registry.core.Registry configSystemRegistry,
String payload)
throws org.wso2.carbon.registry.core.exceptions.RegistryException,
XMLStreamException
org.wso2.carbon.registry.core.exceptions.RegistryExceptionXMLStreamExceptionpublic static boolean handlerExists(org.wso2.carbon.registry.core.Registry configSystemRegistry,
String name)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.registry.core.exceptions.RegistryExceptionpublic static boolean deleteHandler(org.wso2.carbon.registry.core.Registry configSystemRegistry,
String name)
throws org.wso2.carbon.registry.core.exceptions.RegistryException,
XMLStreamException
org.wso2.carbon.registry.core.exceptions.RegistryExceptionXMLStreamExceptionpublic static String getHandlerConfiguration(org.wso2.carbon.registry.core.Registry configSystemRegistry, String name) throws org.wso2.carbon.registry.core.exceptions.RegistryException, XMLStreamException
org.wso2.carbon.registry.core.exceptions.RegistryExceptionXMLStreamExceptionpublic static String[] getHandlerList(org.wso2.carbon.registry.core.Registry configSystemRegistry) throws org.wso2.carbon.registry.core.exceptions.RegistryException
org.wso2.carbon.registry.core.exceptions.RegistryExceptionpublic static String getContextRoot()
public static void setContextRoot(String contextRoot)
public static boolean generateHandler(org.wso2.carbon.registry.core.Registry configSystemRegistry,
String resourceFullPath)
throws org.wso2.carbon.registry.core.exceptions.RegistryException,
XMLStreamException
org.wso2.carbon.registry.core.exceptions.RegistryExceptionXMLStreamExceptionpublic static boolean removeHandler(org.wso2.carbon.registry.core.Registry configSystemRegistry,
String handlerName)
throws org.wso2.carbon.registry.core.exceptions.RegistryException,
XMLStreamException
org.wso2.carbon.registry.core.exceptions.RegistryExceptionXMLStreamExceptionpublic static boolean isHandlerNameInUse(String name) throws org.wso2.carbon.registry.core.exceptions.RegistryException, XMLStreamException
org.wso2.carbon.registry.core.exceptions.RegistryExceptionXMLStreamExceptionpublic static boolean addDefaultHandlersIfNotAvailable(org.wso2.carbon.registry.core.Registry configSystemRegistry)
throws org.wso2.carbon.registry.core.exceptions.RegistryException,
FileNotFoundException,
XMLStreamException
org.wso2.carbon.registry.core.exceptions.RegistryExceptionFileNotFoundExceptionXMLStreamExceptionpublic static org.wso2.carbon.registry.core.service.SimulationService getSimulationService()
public static void setSimulationService(org.wso2.carbon.registry.core.service.SimulationService simulationService)
public static HandlerConfigurationBean deserializeHandlerConfiguration(org.apache.axiom.om.OMElement configurationElement)
public static org.apache.axiom.om.OMElement serializeHandlerConfiguration(HandlerConfigurationBean bean)
Copyright © 2015 WSO2. All rights reserved.