|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jafer.registry.uddi.model.BusinessEntity
public class BusinessEntity
This class implements a service provider for a UDDI registry. This Class should never be directly instantiated. Updates made using this class will only be made to the uddi registry when the service provider is updated through the service manager
Field Summary | |
---|---|
private org.uddi4j.datatype.business.BusinessEntity |
businessEntity
Stores a reference to the underlying business entity object |
private static java.lang.String |
HOMEPAGE
Stores a reference to the HOMEPAGE use type for discovery urls |
private static int |
MAX_DESCRIPTION_LENGTH
Stores a reference to the maximumn number of characters for the description field |
private static int |
MAX_HOMEPAGE_LENGTH
Stores a reference to the maximumn number of characters for the home page field |
private static int |
MAX_NAME_LENGTH
Stores a reference to the maximumn number of characters for the name field |
private TModelManager |
tModelManager
Stores a reference to the TModelManager that loads and initialises all the required TModels. |
Constructor Summary | |
---|---|
BusinessEntity(TModelManager tModelManager,
org.uddi4j.datatype.business.BusinessEntity entity)
Constructor of the business entity |
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. |
org.uddi4j.datatype.business.BusinessEntity |
getUDDIBusinessEntity()
Returns the UDDI business entity object. |
void |
removeAllCategories()
Removes all the categories from the service provider. |
void |
removeAllServices()
This method removes all the services. |
void |
removeAnyBadServiceKeys()
If a service is not owned directly by the provider and has been deleted then the relationship to this provider is left in an invlid state. |
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 newContact)
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 newUrl)
Sets the home page for the service provider. |
void |
setName(java.lang.String name)
Sets the name for the service provider. |
void |
setUDDIBusinessEntity(org.uddi4j.datatype.business.BusinessEntity businessEntity)
Sets the UDDI business entity object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final int MAX_NAME_LENGTH
private static final int MAX_HOMEPAGE_LENGTH
private static final int MAX_DESCRIPTION_LENGTH
private TModelManager tModelManager
private static final java.lang.String HOMEPAGE
private org.uddi4j.datatype.business.BusinessEntity businessEntity
Constructor Detail |
---|
public BusinessEntity(TModelManager tModelManager, org.uddi4j.datatype.business.BusinessEntity entity)
tModelManager
- The tmodel manager for the registry being accessed
by this providerentity
- The actual UDDI Business EntityMethod Detail |
---|
public java.lang.String getId()
getId
in interface ServiceProvider
public org.uddi4j.datatype.business.BusinessEntity getUDDIBusinessEntity()
public void setUDDIBusinessEntity(org.uddi4j.datatype.business.BusinessEntity businessEntity)
businessEntity
- The businessEntity to set.public java.lang.String getName()
getName
in interface ServiceProvider
public void setName(java.lang.String name) throws InvalidNameException, InvalidLengthException
setName
in interface ServiceProvider
name
- The name to set
InvalidNameException
InvalidLengthException
public java.lang.String getDescription()
getDescription
in interface ServiceProvider
public void setDescription(java.lang.String description) throws InvalidLengthException
setDescription
in interface ServiceProvider
description
- The description to set
InvalidLengthException
public java.lang.String getHomePage()
getHomePage
in interface ServiceProvider
public void setHomePage(java.lang.String newUrl) throws InvalidLengthException
setHomePage
in interface ServiceProvider
newUrl
- The url string to the home page
InvalidLengthException
public Contact getContact()
getContact
in interface ServiceProvider
public void setContact(Contact newContact)
setContact
in interface ServiceProvider
newContact
- The contact informationpublic void removeContact()
removeContact
in interface ServiceProvider
public java.util.List getCategories()
getCategories
in interface ServiceProvider
public void addCategory(Category category)
addCategory
in interface ServiceProvider
category
- The category to addpublic void removeCategory(Category category) throws CategoryDoesNotExistException
removeCategory
in interface ServiceProvider
category
- The category to delete
CategoryDoesNotExistException
public void removeAllCategories()
removeAllCategories
in interface ServiceProvider
public java.util.List getServices()
getServices
in interface ServiceProvider
public void addService(Service service)
addService
in interface ServiceProvider
service
- The service to addpublic void removeService(Service service) throws ServiceDoesNotExistException
removeService
in interface ServiceProvider
service
- the service to remove
ServiceDoesNotExistException
public void removeService(ServiceInfo serviceInfo) throws ServiceDoesNotExistException
removeService
in interface ServiceProvider
serviceInfo
- the serviceinfo of the service to remove
ServiceDoesNotExistException
public void removeAllServices()
removeAllServices
in interface ServiceProvider
public void removeAnyBadServiceKeys() throws ServiceDoesNotExistException
ServiceDoesNotExistException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |