|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.dragon.service.deployment.EndpointManagerImpl
public class EndpointManagerImpl
| Constructor Summary | |
|---|---|
EndpointManagerImpl()
|
|
| Method Summary | |
|---|---|
void |
addCategory(java.lang.String endpointId,
java.lang.String categoryId,
java.lang.String categoryValueId)
Add a category to the given endpoint. |
void |
addCategory(java.lang.String endpointId,
java.lang.String categoryId,
java.lang.String categoryValue,
java.lang.String categoryDesc)
Add a category to the given endpoint. |
java.lang.String |
addServiceDefFile(org.w3c.dom.Document wsdlDoc,
java.lang.String wsdlFileName,
java.lang.String endpointId,
boolean storeEntities)
|
java.lang.String |
addServiceDefFile(java.net.URI wsdlURI,
java.lang.String wsdlFileName,
java.lang.String endpointId,
boolean storeEntities)
|
java.lang.String |
createEndpoint(java.lang.String epName,
java.lang.String epAddress,
java.lang.String servId)
Add a new endpoint to the registry linked to the specified service |
java.util.List<EndpointTO> |
getAllEndpoints(RequestOptionsTO requestOptionsTO)
Return the list of all endpoints in the registry. |
java.util.List<KeyedRefTO> |
getCategoriesForEndpoint(java.lang.String endpointId)
Return the list of categories related to the endpoint matching the given id |
EndpointTO |
getEndpoint(java.lang.String endpointId,
java.lang.String user)
Retrieve an endpoint matching the given ID |
java.util.List<EndpointTO> |
getEndpointsByBinding(java.lang.String bindingId,
RequestOptionsTO requestOptionsTO)
Return the list of all endpoints linked to the binding matching the given ID. |
java.util.List<EndpointTO> |
getEndpointsByTag(java.lang.String tag)
Get all Endpoints tagged by the String tag. |
java.util.List<EndpointTO> |
getEndpointsByTechService(java.lang.String techServiceId,
RequestOptionsTO requestOptionsTO)
Return the list of all endpoints linked to the technical service matching the given ID. |
void |
removeCategories(java.lang.String endpointId,
java.util.List<java.lang.String> categoryIds)
Remove the selected categories linked to a technical service |
void |
removeComment(java.lang.String endpointId,
java.lang.String commentId)
Remove a Comment from the endpoint. |
void |
removeEndpoint(java.lang.String endpointId)
Remove the endpoint matching the given ID from the registry |
void |
removeServiceSpec(java.lang.String endpointId,
java.lang.String serviceSpecificationId)
|
void |
removeTag(java.lang.String tag,
java.lang.String endpointId)
Remove a String tag from the endpoint. |
void |
setCommentDAO(CommentDAO commentDAO)
|
void |
setEndpointDAO(EndpointDAO endpointDAO)
|
void |
setMetadataService(MetadataService metadataService)
|
void |
setServiceSpecificationDAO(ServiceSpecificationDAO serviceSpecificationDAO)
|
void |
setTechnicalServiceDAO(TechnicalServiceDAO technicalServiceDAO)
|
void |
setTransfertObjectAssembler(TransfertObjectAssembler transfertObjectAssembler)
|
void |
setUniversalUnifiedDAO(UniversalUnifiedDAO universalUnifiedDAO)
|
void |
setWsdlManager(WSDLManager wsdlManager)
|
void |
updateComments(java.lang.String endpointId,
CommentTO comment)
Update the Comments of an Endpoint. |
java.lang.String |
updateEndpoint(EndpointTO endpointTO)
Update the endpoint in the registry. |
float |
updateGlobalRating(java.lang.String endpointId)
Calculate the global rating of a technical service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EndpointManagerImpl()
| Method Detail |
|---|
public void setCommentDAO(CommentDAO commentDAO)
public java.util.List<EndpointTO> getAllEndpoints(RequestOptionsTO requestOptionsTO)
throws DeploymentException
EndpointManager
getAllEndpoints in interface EndpointManagerrequestOptionsTO - sort, pagination and case sensitive parameters. Could be null.
List of all EndpointTO in the registry, not
null, can be empty
DeploymentException - if an error occurs during endpoints retrieval
public EndpointTO getEndpoint(java.lang.String endpointId,
java.lang.String user)
throws DeploymentException
EndpointManager
getEndpoint in interface EndpointManagerendpointId - an endpoint IDuser - a user login, could be null
EndpointTO matching the given ID, can be null
DeploymentException - if no Endpoint found matching the given id
public java.lang.String createEndpoint(java.lang.String epName,
java.lang.String epAddress,
java.lang.String servId)
throws DeploymentException
EndpointManager
createEndpoint in interface EndpointManagerepName - the endpoint nameepAddress - the enpoint network address. Could be null or emptyservId - the parent service id
DeploymentException - if an endpoint already exist with the given name linked to
the given service or the ep name is empty or the service id
is empty or the given service doesn't exist into the registry
public java.util.List<EndpointTO> getEndpointsByBinding(java.lang.String bindingId,
RequestOptionsTO requestOptionsTO)
throws DeploymentException
EndpointManager
getEndpointsByBinding in interface EndpointManagerbindingId - a binding IDrequestOptionsTO - sort, pagination and case sensitive parameters, could be null
List of all EndpointTO linked to the binding
matching the given ID, not null, can be empty
DeploymentException - if an error occurs during endpoints retrieval
public java.util.List<EndpointTO> getEndpointsByTechService(java.lang.String techServiceId,
RequestOptionsTO requestOptionsTO)
EndpointManager
getEndpointsByTechService in interface EndpointManagertechServiceId - a tech service IDrequestOptionsTO - sort, pagination and case sensitive parameters, could be null
List of all EndpointTO linked to the tech
service matching the given ID, not null, can be empty
public void removeEndpoint(java.lang.String endpointId)
throws DeploymentException
EndpointManager
removeEndpoint in interface EndpointManagerendpointId - an endpoint ID
DeploymentException - if an error occurs during endpoint removalpublic void setEndpointDAO(EndpointDAO endpointDAO)
public void setTransfertObjectAssembler(TransfertObjectAssembler transfertObjectAssembler)
public java.lang.String updateEndpoint(EndpointTO endpointTO)
throws DeploymentException
EndpointManager
updateEndpoint in interface EndpointManagerendpointTO - EndpointTO to update
DeploymentException - if no Endpoint found for the given techServ id to
update or if an endpoint already exist with the given name
linked to the given service or the ep name is null or empty
or the service name is null or empty or the given service
doesn't exist into the registrypublic float updateGlobalRating(java.lang.String endpointId)
EndpointManager
updateGlobalRating in interface EndpointManagerendpointId - the id of this endpoint.
public void updateComments(java.lang.String endpointId,
CommentTO comment)
EndpointManager
updateComments in interface EndpointManagerendpointId - The endpoint IDcomment - The comment to add to this endpoint.public java.util.List<EndpointTO> getEndpointsByTag(java.lang.String tag)
EndpointManager
getEndpointsByTag in interface EndpointManagertag - the tag.
public void removeTag(java.lang.String tag,
java.lang.String endpointId)
EndpointManager
removeTag in interface EndpointManagertag - The tag to remove from.endpointId - The endpoint ID
public void removeComment(java.lang.String endpointId,
java.lang.String commentId)
EndpointManager
removeComment in interface EndpointManagercommentId - The comment ID.
public java.util.List<KeyedRefTO> getCategoriesForEndpoint(java.lang.String endpointId)
throws DeploymentException
EndpointManager
getCategoriesForEndpoint in interface EndpointManagerendpointId - an Endpoint identifier
KeyedRefTO related to the
endpoint matching the given id
DeploymentException - if no Endpoint found for the given id
public void removeCategories(java.lang.String endpointId,
java.util.List<java.lang.String> categoryIds)
throws DeploymentException
EndpointManager
removeCategories in interface EndpointManagerendpointId - an Endpoint identifiercategoryIds - ids of categories to remove, can be empty
DeploymentException - if no endpoint found for the given id or if no category found
for the given ids
public void addCategory(java.lang.String endpointId,
java.lang.String categoryId,
java.lang.String categoryValueId)
throws DeploymentException
EndpointManager
addCategory in interface EndpointManagerendpointId - a Endpoint idcategoryId - a Category idcategoryValueId - an identifier of a CategoryValue containing category
info to add.
DeploymentException - if at least one of the given id doesn't exist in database
public void addCategory(java.lang.String endpointId,
java.lang.String categoryId,
java.lang.String categoryValue,
java.lang.String categoryDesc)
throws DeploymentException
EndpointManager
addCategory in interface EndpointManagerendpointId - a Endpoint idcategoryId - a Category idcategoryValue - a category value (UDDI: categoryValue)categoryDesc - a category description (UDDI: categoryName), could be null
DeploymentException - if at least one of the given id doesn't exist in database or
if value is null or empty
public java.lang.String addServiceDefFile(java.net.URI wsdlURI,
java.lang.String wsdlFileName,
java.lang.String endpointId,
boolean storeEntities)
throws DeploymentException,
java.util.concurrent.TimeoutException
addServiceDefFile in interface EndpointManagerDeploymentException
java.util.concurrent.TimeoutException
public java.lang.String addServiceDefFile(org.w3c.dom.Document wsdlDoc,
java.lang.String wsdlFileName,
java.lang.String endpointId,
boolean storeEntities)
throws DeploymentException,
java.util.concurrent.TimeoutException
addServiceDefFile in interface EndpointManagerDeploymentException
java.util.concurrent.TimeoutException
public void removeServiceSpec(java.lang.String endpointId,
java.lang.String serviceSpecificationId)
throws DeploymentException
removeServiceSpec in interface EndpointManagerDeploymentExceptionpublic void setUniversalUnifiedDAO(UniversalUnifiedDAO universalUnifiedDAO)
public void setMetadataService(MetadataService metadataService)
metadataService - the metadataService to setpublic void setTechnicalServiceDAO(TechnicalServiceDAO technicalServiceDAO)
technicalServiceDAO - the technicalServiceDAO to setpublic void setServiceSpecificationDAO(ServiceSpecificationDAO serviceSpecificationDAO)
serviceSpecificationDAO - the serviceSpecificationDAO to setpublic void setWsdlManager(WSDLManager wsdlManager)
wsdlManager - the wsdlManager to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||