|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServiceManager
The service manager is responsible for registering service providers and their services to the registry. As the service manager updates information in the registry it requires a valid username and credential to be supplied.
Method Summary | |
---|---|
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. |
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. |
Method Detail |
---|
Contact createNewContact(java.lang.String name) throws InvalidNameException, InvalidLengthException
name
- The new contacts name
InvalidNameException
InvalidLengthException
Contact createNewContact(java.lang.String name, java.lang.String desc, java.lang.String phone, java.lang.String email) throws InvalidNameException, InvalidLengthException
name
- The contacts name (Can not be blank)desc
- The contacts descriptionphone
- The contacts phone numberemail
- The contacts email
InvalidNameException
InvalidLengthException
ServiceProvider registerServiceProvider(java.lang.String providerName) throws InvalidNameException, InvalidAuthorisationDetailsException, RegistryException
providerName
- The name of the new service provider
InvalidNameException
RegistryException
InvalidAuthorisationDetailsException
ServiceProvider updateServiceProvider(ServiceProvider provider) throws InvalidAuthorisationDetailsException, RegistryException
provider
- The service provider to update
InvalidAuthorisationDetailsException
RegistryException
void deleteServiceProvider(ServiceProvider provider) throws InvalidAuthorisationDetailsException, RegistryException
provider
- The service provider to delete
InvalidAuthorisationDetailsException
RegistryException
void deleteServiceProvider(ServiceProviderInfo providerInfo) throws InvalidAuthorisationDetailsException, RegistryException
providerInfo
- The service provider to delete
InvalidAuthorisationDetailsException
RegistryException
void deleteServiceProvider(java.lang.String id) throws InvalidAuthorisationDetailsException, RegistryException
id
- The id of the service provider to delete
InvalidAuthorisationDetailsException
RegistryException
Service registerService(ServiceProvider provider, java.lang.String serviceName, Protocol protocol, java.lang.String accessPoint) throws InvalidAuthorisationDetailsException, RegistryException, InvalidNameException
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
Service registerService(ServiceProvider provider, java.lang.String serviceName) throws InvalidAuthorisationDetailsException, RegistryException, InvalidNameException
provider
- The business entity to register the service agianstserviceName
- The name of the service being registered
InvalidAuthorisationDetailsException
RegistryException
InvalidNameException
Service updateService(Service service) throws InvalidAuthorisationDetailsException, RegistryException
service
- The service to update
InvalidAuthorisationDetailsException
RegistryException
void deleteService(Service service) throws InvalidAuthorisationDetailsException, RegistryException
service
- The service to delete
InvalidAuthorisationDetailsException
RegistryException
void deleteService(ServiceInfo serviceInfo) throws InvalidAuthorisationDetailsException, RegistryException
serviceInfo
- The service to delete
InvalidAuthorisationDetailsException
RegistryException
void deleteService(java.lang.String id) throws InvalidAuthorisationDetailsException, RegistryException
id
- The id of the service to delete
InvalidAuthorisationDetailsException
RegistryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |