|
||||||||||
| 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 techServiceId,
java.lang.String categoryId,
java.lang.String categoryValueId)
Add a category to the given endpoint. |
void |
addCategory(java.lang.String techServiceId,
java.lang.String categoryId,
java.lang.String categoryValue,
java.lang.String categoryDesc)
Add a category to the given endpoint. |
java.lang.String |
createEndpoint(EndpointTO endpointTO)
Add a new endpoint in registry. |
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)
|
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 techServiceId,
java.util.List<java.lang.String> categoryIds)
|
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 |
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 |
setTransfertObjectAssembler(TransfertObjectAssembler transfertObjectAssembler)
|
void |
setUniversalUnifiedDAO(UniversalUnifiedDAO universalUnifiedDAO)
|
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.lang.String createEndpoint(EndpointTO endpointTO)
throws DeploymentException
EndpointManager
createEndpoint in interface EndpointManagerendpointTO - the endpoint to add
DeploymentException - if an error occurs during endpoint creation
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
EndpointTO matching the given ID, can be null
DeploymentException - if an error occurs during endpoint retrieval
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
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)
throws DeploymentException
EndpointManager
getEndpointsByTechService in interface EndpointManagertechServiceId - a tech service IDrequestOptionsTO - sort, pagination and case sensitive parameters
List of all EndpointTO linked to the tech
service matching the given ID, not null, can be empty
DeploymentException - if an error occurs during endpoints retrieval
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 - endpoint to update
DeploymentException - if an error occurs during endpoint updatepublic 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
getCategoriesForEndpoint in interface EndpointManagerDeploymentException
public void removeCategories(java.lang.String techServiceId,
java.util.List<java.lang.String> categoryIds)
removeCategories in interface EndpointManager
public void addCategory(java.lang.String techServiceId,
java.lang.String categoryId,
java.lang.String categoryValueId)
throws DeploymentException
EndpointManager
addCategory in interface EndpointManagertechServiceId - 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 techServiceId,
java.lang.String categoryId,
java.lang.String categoryValue,
java.lang.String categoryDesc)
throws DeploymentException
EndpointManager
addCategory in interface EndpointManagertechServiceId - a Endpoint idcategoryId - a Category idcategoryValue - a category value (UDDI: categoryValue)categoryDesc - a category description (UDDI: categoryName)
DeploymentException - if at least one of the given id doesn't exist in databasepublic void setUniversalUnifiedDAO(UniversalUnifiedDAO universalUnifiedDAO)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||