Interface IManageServicesService
- All Known Subinterfaces:
IConfigureServiceUIService
public interface IManageServicesService
This provides functionality to manage services stored on the repository. The content of the
service managed, depends on the configuration of the service user interface which can be defined
through
Statistics:
IConfigureServiceUIService.
Statistics:
- addService
-
Method Summary
Modifier and TypeMethodDescriptionaddService(String info) Method to add a new service to the repository.booleanMethod to determine whether the given user can make changes to a service at the given resource path.editService(String name) Method to obtain the content of the service by the given name for editing.Method to obtain the service configuration.Method to obtain the path at which services are stored on the repository.booleansaveServiceConfiguration(String content) Method to update the service configuration of a service
-
Method Details
-
canChange
Method to determine whether the given user can make changes to a service at the given resource path.- Parameters:
path- the resource path.- Returns:
- true if the resource at the given path can be changed.
- Throws:
Exception- if the operation failed due to an unexpected error.
-
addService
Method to add a new service to the repository.- Parameters:
info- the service details that will be added.- Returns:
- the path of the service..
- Throws:
org.wso2.carbon.registry.core.exceptions.RegistryException- if the operation failed due to an unexpected error.
-
editService
Method to obtain the content of the service by the given name for editing.- Parameters:
name- the name of the service to edit.- Returns:
- the content of the service resource.
- Throws:
org.wso2.carbon.registry.core.exceptions.RegistryException- if the operation failed.
-
getServicePath
Method to obtain the path at which services are stored on the repository.- Returns:
- the path at which services are stored.
- Throws:
org.wso2.carbon.registry.core.exceptions.RegistryException- if the operation failed.
-
getServiceConfiguration
Method to obtain the service configuration.- Returns:
- the string config of the service
- Throws:
org.wso2.carbon.registry.core.exceptions.RegistryException- if the operation failed.
-
saveServiceConfiguration
boolean saveServiceConfiguration(String content) throws org.wso2.carbon.registry.core.exceptions.RegistryException Method to update the service configuration of a service- Parameters:
content- the content of the config- Returns:
- a boolean value
- Throws:
org.wso2.carbon.registry.core.exceptions.RegistryException- if the operation failed.
-