public class ServiceManager extends Object
| Modifier | Constructor and Description |
|---|---|
|
ServiceManager(org.wso2.carbon.registry.core.Registry registry)
Constructor accepting an instance of the registry to use.
|
protected |
ServiceManager(org.wso2.carbon.registry.core.Registry registry,
String mediaType)
Constructor accepting an instance of the registry, and also details on the type of manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addService(Service service)
Adds the given service artifact to the registry.
|
Service[] |
findServices(ServiceFilter criteria)
Finds all service artifacts matching the given filter criteria.
|
String[] |
getAllServiceIds()
Finds all identifiers of the service artifacts on the registry.
|
String[] |
getAllServicePaths()
Finds all the service path and used to list services
|
Service[] |
getAllServices()
Finds all service artifacts on the registry.
|
Service[] |
getAllServicesByLifecycle(String lcName)
Retrieve all Services which associated with the given lifecycle
|
Service[] |
getAllServicesByLifecycleStatus(String lcName,
String lcState)
Retrieve all Services which associated with the given lifecycle in the given lifecycle state
|
Service |
getService(String serviceId)
Fetches the given service artifact on the registry.
|
Service |
newService(org.apache.axiom.om.OMElement content)
Creates a new service artifact from the given content.
|
Service |
newService(QName qName)
Creates a new service artifact from the given qualified name.
|
void |
removeService(String serviceId)
Removes the given service artifact from the registry.
|
void |
updateService(Service service)
Updates the given service artifact on the registry.
|
public ServiceManager(org.wso2.carbon.registry.core.Registry registry)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
registry - the instance of the registry.org.wso2.carbon.registry.core.exceptions.RegistryExceptionprotected ServiceManager(org.wso2.carbon.registry.core.Registry registry,
String mediaType)
throws org.wso2.carbon.registry.core.exceptions.RegistryException
registry - the instance of the registry.mediaType - the media type of resources being saved or fetched.org.wso2.carbon.registry.core.exceptions.RegistryExceptionpublic Service newService(QName qName) throws GovernanceException
qName - the qualified name of this service.GovernanceException - if the operation failed.public Service newService(org.apache.axiom.om.OMElement content) throws GovernanceException
content - the service content.GovernanceException - if the operation failed.public void addService(Service service) throws GovernanceException
service - the service artifact.GovernanceException - if the operation failed.public void updateService(Service service) throws GovernanceException
service - the service artifact.GovernanceException - if the operation failed.public Service getService(String serviceId) throws GovernanceException
serviceId - the identifier of the service artifact.GovernanceException - if the operation failed.public void removeService(String serviceId) throws GovernanceException
serviceId - the identifier of the service artifact.GovernanceException - if the operation failed.public Service[] findServices(ServiceFilter criteria) throws GovernanceException
criteria - the filter criteria to be matched.GovernanceException - if the operation failed.public String[] getAllServicePaths() throws GovernanceException
GovernanceException - if the operation failedpublic Service[] getAllServices() throws GovernanceException
GovernanceException - if the operation failed.public String[] getAllServiceIds() throws GovernanceException
GovernanceException - if the operation failed.public Service[] getAllServicesByLifecycle(String lcName) throws GovernanceException
lcName - Name of the lifecycleGovernanceException - if the operation failed.public Service[] getAllServicesByLifecycleStatus(String lcName, String lcState) throws GovernanceException
lcName - Name of the lifecyclelcState - Name of the current lifecycle stateGovernanceException - if the operation failed.Copyright © 2017 WSO2. All rights reserved.