|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jafer.registry.uddi.model.BusinessService
public class BusinessService
This class implements a service 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.service.BusinessService |
businessService
Stores a reference to the underlying business service object |
static java.lang.String |
END_POINT
Stores a reference to the binding template endpoint access type. |
private static int |
MAX_DESCRIPTION_LENGTH
Stores a reference to the maximumn number of characters for the description field |
private static int |
MAX_NAME_LENGTH
Stores a reference to the maximumn number of characters for the name field |
private static int |
MAX_URL_LENGTH
Stores a reference to the maximumn number of characters for the url field |
private TModelManager |
tModelManager
Stores a reference to the TModelManager that loads and initialises all the required TModels. |
static java.lang.String |
WSDL_POINT
Stores a reference to the binding template wsdl access type. |
Constructor Summary | |
---|---|
BusinessService(TModelManager tModelManager,
org.uddi4j.datatype.service.BusinessService service)
Constructor of the business service |
Method Summary | |
---|---|
void |
addCategory(Category category)
Adds a jafer defined category to the service if it does not already exist. |
void |
addToServicesList(java.util.List uddiBusinessServices)
Adds the service to the list of uddi4j business services. |
static java.util.List |
extractBusinessServiceInfos(TModelManager tModelManager,
java.util.List uddiBusinessServices)
This method returns all the business services for the business entity. |
private java.lang.String |
getAccessPointURL(Protocol protocol,
java.lang.String accessPointType)
Returns the URL for the specified protocol access point |
java.lang.String |
getAccessUrl(Protocol protocol)
Returns the access url for the service. |
java.util.List |
getCategories()
This method returns all the categories supported linked to the service. |
java.lang.String |
getDescription()
Returns the description of the service. |
java.lang.String |
getId()
Returns the uniquie id of this service. |
java.lang.String |
getName()
Returns the name of this service. |
java.lang.String |
getServiceProviderId()
Returns the ID of the service provider that owns this service |
org.uddi4j.datatype.service.BusinessService |
getUDDIBusinessService()
Returns the UDDI business service object. |
java.lang.String |
getWSDLUrl(Protocol protocol)
Returns the WSDL file for the service. |
private boolean |
isAccessPointType(org.uddi4j.datatype.binding.BindingTemplate template,
Protocol protocol,
java.lang.String accessPointType)
This method checks the template to see if it describes the specified access point type. |
void |
removeAllCategories()
Removes all the categories from the service provider. |
void |
removeCategory(Category category)
Removes the category from the service if it exists. |
void |
removeFromServicesList(java.util.List uddiBusinessServices)
Removes the service from the list of uddi4j business services. |
private void |
setAccessPointURL(Protocol protocol,
java.lang.String accessPointType,
java.lang.String url)
sets the URL for the specified protocol access point |
void |
setAccessUrl(Protocol protocol,
java.lang.String url)
Sets the access url for the service. |
void |
setDescription(java.lang.String description)
Sets the description of th service. |
void |
setName(java.lang.String name)
Sets the name of this service. |
void |
setUDDIBusinessService(org.uddi4j.datatype.service.BusinessService businessService)
Sets the UDDI business service object. |
void |
setWSDLUrl(Protocol protocol,
java.lang.String url)
Sets the WSDL file for the service. |
private boolean |
supportsProtocol(org.uddi4j.datatype.binding.BindingTemplate template,
Protocol protocol)
This method checks the template to see if it supports the specified protocol |
boolean |
supportsProtocol(Protocol protocol)
This method checks the service to see if it supports the specified protocol |
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_URL_LENGTH
private static final int MAX_DESCRIPTION_LENGTH
private TModelManager tModelManager
public static final java.lang.String END_POINT
public static final java.lang.String WSDL_POINT
private org.uddi4j.datatype.service.BusinessService businessService
Constructor Detail |
---|
public BusinessService(TModelManager tModelManager, org.uddi4j.datatype.service.BusinessService service)
tModelManager
- The tmodel manager for the registry being accessed
by this serviceservice
- The actual UDDI Business ServiceMethod Detail |
---|
public org.uddi4j.datatype.service.BusinessService getUDDIBusinessService()
public void setUDDIBusinessService(org.uddi4j.datatype.service.BusinessService businessService)
businessService
- The businessService to set.public java.lang.String getId()
getId
in interface Service
public java.lang.String getServiceProviderId()
getServiceProviderId
in interface Service
public java.lang.String getName()
getName
in interface Service
public void setName(java.lang.String name) throws InvalidNameException, InvalidLengthException
setName
in interface Service
name
- The name to set
InvalidNameException
InvalidLengthException
public java.lang.String getDescription()
getDescription
in interface Service
public void setDescription(java.lang.String description) throws InvalidLengthException
setDescription
in interface Service
description
- The description to set
InvalidLengthException
public java.util.List getCategories()
getCategories
in interface Service
public void addCategory(Category category)
addCategory
in interface Service
category
- The category to addpublic void removeCategory(Category category) throws CategoryDoesNotExistException
removeCategory
in interface Service
category
- The category to delete
CategoryDoesNotExistException
public void removeAllCategories()
removeAllCategories
in interface Service
public java.lang.String getAccessUrl(Protocol protocol) throws RegistryException
getAccessUrl
in interface Service
protocol
- The protocol type of the accesspoint to find
RegistryException
public void setAccessUrl(Protocol protocol, java.lang.String url) throws RegistryException, InvalidLengthException
setAccessUrl
in interface Service
protocol
- The protocol type of the accesspoint to seturl
- The url to the access point
RegistryException
InvalidLengthException
public java.lang.String getWSDLUrl(Protocol protocol) throws RegistryException
getWSDLUrl
in interface Service
protocol
- The protocol type of the accesspoint to find
RegistryException
RegistryException
public void setWSDLUrl(Protocol protocol, java.lang.String url) throws RegistryException, InvalidLengthException
setWSDLUrl
in interface Service
url
- The url to the access point to setprotocol
- The protocol type of the accesspoint
InvalidLengthException
RegistryException
public boolean supportsProtocol(Protocol protocol) throws RegistryException
supportsProtocol
in interface Service
protocol
- The protocol type of the accesspoint to set
RegistryException
public static java.util.List extractBusinessServiceInfos(TModelManager tModelManager, java.util.List uddiBusinessServices)
tModelManager
- The tmodel manager for the registry being accessed
by this serviceuddiBusinessServices
- A list of uddi business service descriptions
public void addToServicesList(java.util.List uddiBusinessServices)
uddiBusinessServices
- the list of uddi4j business services to add
topublic void removeFromServicesList(java.util.List uddiBusinessServices) throws ServiceDoesNotExistException
uddiBusinessServices
- The list of uddi services to remove from
ServiceDoesNotExistException
private java.lang.String getAccessPointURL(Protocol protocol, java.lang.String accessPointType) throws RegistryException
protocol
- the protocol to search underaccessPointType
- The type of access point looking for
RegistryException
private void setAccessPointURL(Protocol protocol, java.lang.String accessPointType, java.lang.String url) throws RegistryException
protocol
- the protocol to search underaccessPointType
- The type of access point looking to set URL onurl
- The URL to set
RegistryException
private boolean isAccessPointType(org.uddi4j.datatype.binding.BindingTemplate template, Protocol protocol, java.lang.String accessPointType) throws RegistryException
template
- The template to checkprotocol
- The protocol type of the accesspoint to setaccessPointType
- The access point type to check for
RegistryException
private boolean supportsProtocol(org.uddi4j.datatype.binding.BindingTemplate template, Protocol protocol) throws RegistryException
template
- The template to checkprotocol
- The protocol type of the accesspoint to set
RegistryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |