|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServiceProvider
This interface represents the service provider model support for JAFER.
Updates made using this interface will only be made to the registry when the
service provider is updated through the service manager
Note: Be aware that the provider instance represents the details in the
registry at the point in time of retrieval. When an update to the provider is
made the information in the provider will replace any information in the
registry and may cause other instances to no longer be up to date
Service provider instances should be strictly controlled and never cached by
the caller to avoid becoming out of date with the registry. Updating outdated
items will replace any changes made with the old values and may cause
exceptions to be thrown if referenced objects have already been deleted in
the registry
Method Summary | |
---|---|
void |
addCategory(Category category)
Adds a jafer defined category to the service provider if it does not already exist. |
void |
addService(Service service)
This method adds the service to the service provider. |
java.util.List |
getCategories()
This method returns all the categories supported linked to the service provider. |
Contact |
getContact()
Get a COPY of the contact information for the service provider. |
java.lang.String |
getDescription()
Returns the description for the service provider. |
java.lang.String |
getHomePage()
Returns the home page for the service provider. |
java.lang.String |
getId()
Returns the uniquie id of this service provider. |
java.lang.String |
getName()
Returns the name of the service provider. |
java.util.List |
getServices()
This method returns all the know services for the service provider at the time of retrieval. |
void |
removeAllCategories()
Removes all the categories from the service provider. |
void |
removeAllServices()
This method removes all the services. |
void |
removeCategory(Category category)
Removes the category from the service provider if it exists. |
void |
removeContact()
Removes the contact information for the service provider. |
void |
removeService(Service service)
This method removes the service from the service provider. |
void |
removeService(ServiceInfo serviceInfo)
This method removes the service from the service provider. |
void |
setContact(Contact contact)
Set the contact information for the service provider. |
void |
setDescription(java.lang.String description)
Sets the description for the service provider. |
void |
setHomePage(java.lang.String url)
Sets the home page for the service provider. |
void |
setName(java.lang.String name)
Sets the name of the service provider. |
Method Detail |
---|
java.lang.String getId()
java.lang.String getName()
void setName(java.lang.String name) throws InvalidNameException, InvalidLengthException
name
- The name to set
InvalidNameException
InvalidLengthException
java.lang.String getDescription()
void setDescription(java.lang.String description) throws InvalidLengthException
description
- The description to set
InvalidLengthException
java.lang.String getHomePage()
void setHomePage(java.lang.String url) throws InvalidLengthException
url
- The url string to the home page
InvalidLengthException
Contact getContact()
void setContact(Contact contact)
contact
- The contact informationvoid removeContact()
java.util.List getCategories()
void addCategory(Category category)
category
- The category to addvoid removeCategory(Category category) throws CategoryDoesNotExistException
category
- The category to delete
CategoryDoesNotExistException
void removeAllCategories()
java.util.List getServices()
void addService(Service service)
service
- The service to addvoid removeService(Service service) throws ServiceDoesNotExistException
service
- the service to remove
ServiceDoesNotExistException
void removeService(ServiceInfo serviceInfo) throws ServiceDoesNotExistException
serviceInfo
- the serviceinfo of the service to remove
ServiceDoesNotExistException
void removeAllServices()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |