|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jafer.registry.uddi.ServiceManager
public class ServiceManager
This class maps the service manager interface onto the UDDI registry.
Field Summary | |
---|---|
java.lang.String |
credential
Stores a reference to the credential for logging on to publish service |
protected static java.util.logging.Logger |
logger
Stores a reference to the Logger |
private org.uddi4j.client.UDDIProxy |
registryConnection
Stores a reference to the UDDI4J Proxy manager that communicates with the registry |
private TModelManager |
tModelManager
Stores a reference to the TModelManager that loads and initialises all the required TModels. |
java.lang.String |
username
Stores a reference to the username for logging on to publish service |
Constructor Summary | |
---|---|
ServiceManager(org.uddi4j.client.UDDIProxy registryConnection,
TModelManager tModelManager,
java.lang.String username,
java.lang.String credential)
Constructor for the service manger. |
Method Summary | |
---|---|
static org.uddi4j.datatype.binding.BindingTemplate |
createBindingTemplate(TModelManager tModelManager,
java.lang.String serviceKey,
Protocol protocol,
java.lang.String accessPointURL,
java.lang.String accessPointType)
static function that creates a Binding Template ready for registering with the UBR. |
private org.uddi4j.datatype.binding.BindingTemplate |
createBindingTemplateForAccessPoint(java.lang.String serviceKey,
Protocol protocol,
java.lang.String accessPointURL,
java.lang.String accessPointType)
This method creates a binding template object in the registry so that it can be attached to the service |
Contact |
createNewContact(java.lang.String name)
Creates a new service provider contact. |
Contact |
createNewContact(java.lang.String name,
java.lang.String desc,
java.lang.String phone,
java.lang.String email)
Creates a new contact object specifying all the contacts details. |
void |
deleteService(Service service)
Deletes the specified service from the registry. |
void |
deleteService(ServiceInfo serviceInfo)
Deletes the specified service from the registry. |
void |
deleteService(java.lang.String id)
Deletes the specified service from the registry. |
void |
deleteServiceProvider(ServiceProvider provider)
Deletes the service provider details in the registry. |
void |
deleteServiceProvider(ServiceProviderInfo providerInfo)
Deletes the service provider details in the registry. |
void |
deleteServiceProvider(java.lang.String id)
Deletes the service provider details in the registry. |
private void |
discardAuthorisationToken(java.lang.String token)
Discard authorisation token |
private java.lang.String |
getAuthorisationToken()
Obtain a new authorisation token |
Service |
registerService(ServiceProvider provider,
java.lang.String serviceName)
This method registers a new service against a service provider. |
Service |
registerService(ServiceProvider provider,
java.lang.String serviceName,
Protocol protocol,
java.lang.String accessPoint)
This method registers a new service against a service provider. |
ServiceProvider |
registerServiceProvider(java.lang.String providerName)
This method registers a new Service Provider to the registry. |
Service |
updateService(Service service)
Updates the specified service in the registry. |
ServiceProvider |
updateServiceProvider(ServiceProvider provider)
Updates the service provider details to the registry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private TModelManager tModelManager
public java.lang.String username
public java.lang.String credential
private org.uddi4j.client.UDDIProxy registryConnection
protected static java.util.logging.Logger logger
Constructor Detail |
---|
public ServiceManager(org.uddi4j.client.UDDIProxy registryConnection, TModelManager tModelManager, java.lang.String username, java.lang.String credential) throws RegistryException, InvalidAuthorisationDetailsException
registryConnection
- The connection to the UDDI registrytModelManager
- The tmodel manager for the registry being accessed
by this managerusername
- The username of the user using the registry.credential
- The credential required to authenticate user
RegistryException
InvalidAuthorisationDetailsException
Method Detail |
---|
private java.lang.String getAuthorisationToken() throws RegistryException, InvalidAuthorisationDetailsException
RegistryException
InvalidAuthorisationDetailsException
private void discardAuthorisationToken(java.lang.String token) throws RegistryException
token
- the token to discard
RegistryExceptionImpl
RegistryException
public Contact createNewContact(java.lang.String name) throws InvalidNameException, InvalidLengthException
createNewContact
in interface ServiceManager
name
- The new contacts name
InvalidNameException
InvalidLengthException
public Contact createNewContact(java.lang.String name, java.lang.String desc, java.lang.String phone, java.lang.String email) throws InvalidNameException, InvalidLengthException
createNewContact
in interface ServiceManager
name
- The contacts name (Can not be blank)desc
- The contacts descriptionphone
- The contacts phone numberemail
- The contacts email
InvalidNameException
InvalidLengthException
public ServiceProvider registerServiceProvider(java.lang.String providerName) throws InvalidNameException, InvalidAuthorisationDetailsException, RegistryException
registerServiceProvider
in interface ServiceManager
providerName
- The name of the new service provider
InvalidNameException
RegistryException
InvalidAuthorisationDetailsException
public ServiceProvider updateServiceProvider(ServiceProvider provider) throws InvalidAuthorisationDetailsException, RegistryException
updateServiceProvider
in interface ServiceManager
provider
- The service provider to update
InvalidAuthorisationDetailsException
RegistryException
public void deleteServiceProvider(ServiceProvider provider) throws InvalidAuthorisationDetailsException, RegistryException
deleteServiceProvider
in interface ServiceManager
provider
- The service provider to delete
InvalidAuthorisationDetailsException
RegistryException
public void deleteServiceProvider(ServiceProviderInfo providerInfo) throws InvalidAuthorisationDetailsException, RegistryException
deleteServiceProvider
in interface ServiceManager
providerInfo
- The service provider to delete
InvalidAuthorisationDetailsException
RegistryException
public void deleteServiceProvider(java.lang.String id) throws InvalidAuthorisationDetailsException, RegistryException
deleteServiceProvider
in interface ServiceManager
id
- The id of the service provider to delete
InvalidAuthorisationDetailsException
RegistryException
public Service registerService(ServiceProvider provider, java.lang.String serviceName, Protocol protocol, java.lang.String accessPoint) throws InvalidAuthorisationDetailsException, RegistryException, InvalidNameException
registerService
in interface ServiceManager
provider
- The business entity to register the service agianstserviceName
- The name of the service being registeredprotocol
- The protocol type for the access point (eg Z3950 or SRW)accessPoint
- The access point for the service. This can not be an
empty string
InvalidAuthorisationDetailsException
RegistryException
InvalidNameException
public Service registerService(ServiceProvider provider, java.lang.String serviceName) throws InvalidAuthorisationDetailsException, RegistryException, InvalidNameException
registerService
in interface ServiceManager
provider
- The business entity to register the service agianstserviceName
- The name of the service being registered
InvalidAuthorisationDetailsException
RegistryException
InvalidNameException
public Service updateService(Service service) throws InvalidAuthorisationDetailsException, RegistryException
updateService
in interface ServiceManager
service
- The service to update
InvalidAuthorisationDetailsException
RegistryException
public void deleteService(Service service) throws InvalidAuthorisationDetailsException, RegistryException
deleteService
in interface ServiceManager
service
- The service to delete
InvalidAuthorisationDetailsException
RegistryException
public void deleteService(ServiceInfo serviceInfo) throws InvalidAuthorisationDetailsException, RegistryException
deleteService
in interface ServiceManager
serviceInfo
- The service to delete
InvalidAuthorisationDetailsException
RegistryException
public void deleteService(java.lang.String id) throws InvalidAuthorisationDetailsException, RegistryException
deleteService
in interface ServiceManager
id
- The id of the service to delete
InvalidAuthorisationDetailsException
RegistryException
private org.uddi4j.datatype.binding.BindingTemplate createBindingTemplateForAccessPoint(java.lang.String serviceKey, Protocol protocol, java.lang.String accessPointURL, java.lang.String accessPointType) throws InvalidAuthorisationDetailsException, RegistryException
serviceKey
- The service to attach the binding template toprotocol
- The protocol type Z3950, SRW for tmodelsaccessPointURL
- The url to the access pointaccessPointType
- The type of access point endpoint or wsdl file
InvalidAuthorisationDetailsException
RegistryException
public static org.uddi4j.datatype.binding.BindingTemplate createBindingTemplate(TModelManager tModelManager, java.lang.String serviceKey, Protocol protocol, java.lang.String accessPointURL, java.lang.String accessPointType) throws RegistryException
serviceKey
- The service to attach the binding template toprotocol
- The protocol type Z3950, SRW for tmodelsaccessPointURL
- The url to the access pointaccessPointType
- The type of access point endpoint or wsdl file
RegistryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |