|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.dragon.service.deployment.TechServiceManagerImpl
public class TechServiceManagerImpl
| Constructor Summary | |
|---|---|
TechServiceManagerImpl()
|
|
| Method Summary | |
|---|---|
void |
addCategory(java.lang.String techServiceId,
java.lang.String categoryId,
java.lang.String categoryValueId)
Add a category to the given tech service. |
void |
addCategory(java.lang.String techServiceId,
java.lang.String categoryId,
java.lang.String categoryValue,
java.lang.String categoryDesc)
Add a category to the given tech service. |
java.lang.String |
createTechService(TechnicalServiceTO techServiceTO)
Add a new tech service in registry. |
java.util.List<TechnicalServiceTO> |
getAllTechServices(RequestOptionsTO requestOptionsTO)
Return the list of all tech services in the registry |
java.util.List<KeyedRefTO> |
getCategoriesForTechServ(java.lang.String techServiceId)
Return a List of KeyedRefTO that maps service related
categories |
EndpointTO |
getEndpoint(java.lang.String techServiceName,
java.lang.String endpointName)
Retrieve the endpoint with the given name, which is part of the tech service with the given name. |
java.io.InputStream |
getRelatedDocContent(java.lang.String relatedDocId)
Return the content of the specified related document as an InputStream |
java.lang.String |
getRelatedDocContentAsString(java.lang.String relatedDocId)
Return the content of the specified related document as a String |
java.util.List<SimpleFileTO> |
getRelatedDocsForTechServ(java.lang.String techServiceId)
Return a List of SimpleFileTO that maps service related
docs |
TechnicalServiceTO |
getTechService(java.lang.String techServiceId,
java.lang.String user)
Retrieve an technical service matching the given ID |
java.util.List<TechnicalServiceTO> |
getTechServicesByTag(java.lang.String tag)
Get all Technical Services tagged by the String tag. |
java.util.List<TechnicalServiceTO> |
loadServicesFromWSDL(java.lang.String[] servicesId,
RequestOptionsTO requestOptionsTO)
Retrieve a list of tech services matching the given IDs |
java.lang.String |
registerRelatedDoc(java.lang.String serviceId,
java.lang.String mimetype,
byte[] docContent)
Registers a new document in the registry (supported types are: DOC, PDF, XML, HTML). |
void |
removeCategories(java.lang.String techServiceId,
java.util.List<java.lang.String> categoryIds)
Remove the selected categories linked to a technical service |
void |
removeComment(java.lang.String serviceId,
java.lang.String commentId)
Remove a Comment from the endpoint. |
void |
removeRelatedDoc(java.lang.String serviceId,
java.lang.String documentId)
Remove a related document from the registry. |
void |
removeTag(java.lang.String tag,
java.lang.String serviceId)
Remove a String tag from the Technical Service. |
void |
removeTechService(java.lang.String techServiceId)
Remove the tech services matching the given ID from the registry |
java.util.List<TechnicalServiceTO> |
searchTechService(java.lang.String searchCriteria,
java.util.List<ServiceSearchProperties> searchedProperties,
RequestOptionsTO options)
Retrieve a list of tech services matching the given criteria for the given properties |
void |
setBindingDAO(BindingDAO bindingDAO)
|
void |
setCommentDAO(CommentDAO commentDAO)
|
void |
setMetadataService(MetadataService metadataService)
|
void |
setServiceInterfaceDAO(ServiceInterfaceDAO serviceInterfaceDAO)
|
void |
setServiceSpecificationDAO(ServiceSpecificationDAO serviceSpecificationDAO)
|
void |
setTechnicalServiceUnifiedDAO(GenericUnifiedDAO<TechnicalService,java.lang.String> technicalServiceUnifiedDAO)
|
void |
setTransfertObjectAssembler(TransfertObjectAssembler transfertObjectAssembler)
|
void |
setUniversalUnifiedDAO(UniversalUnifiedDAO universalUnifiedDAO)
|
void |
updateComments(java.lang.String serviceId,
CommentTO comment)
Update the Comments of a techService. |
float |
updateGlobalRating(java.lang.String serviceId)
Calculate the global rating of a technical service. |
java.lang.String |
updateTechService(TechnicalServiceTO techServiceTO)
Update the tech service in the registry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TechServiceManagerImpl()
| Method Detail |
|---|
public void setCommentDAO(CommentDAO commentDAO)
public java.lang.String createTechService(TechnicalServiceTO techServiceTO)
throws DeploymentException
TechServiceManager
createTechService in interface TechServiceManagertechServiceTO - the tech service to add
DeploymentException - if an error occurs during tech service creation
public java.util.List<TechnicalServiceTO> getAllTechServices(RequestOptionsTO requestOptionsTO)
throws DeploymentException
TechServiceManager
getAllTechServices in interface TechServiceManagerrequestOptionsTO - sort, pagination and case sensitive parameters
List of all TechnicalServiceTO in the
registry, not null, can be empty
DeploymentException - if an error occurs during tech services retrieval
public EndpointTO getEndpoint(java.lang.String techServiceName,
java.lang.String endpointName)
throws DeploymentException
TechServiceManager
getEndpoint in interface TechServiceManagertechServiceName - A tech service nameendpointName - An endpoint name
EndpointTO with the given name, which is part of the
tech service with the given name. Can be null
DeploymentException - if an error occurs during endpoint retrieval
public TechnicalServiceTO getTechService(java.lang.String techServiceId,
java.lang.String user)
throws DeploymentException
TechServiceManager
getTechService in interface TechServiceManagertechServiceId - a tech service ID
TechnicalServiceTO matching the given ID, can be null
DeploymentException - if an error occurs during tech service retrieval
public java.util.List<TechnicalServiceTO> loadServicesFromWSDL(java.lang.String[] servicesId,
RequestOptionsTO requestOptionsTO)
throws DeploymentException
TechServiceManager
loadServicesFromWSDL in interface TechServiceManagerservicesId - a List of String service IDsrequestOptionsTO - sort, pagination and case sensitive parameters
List of TechnicalServiceTO matching the given
IDs
DeploymentException - if an error occurs during tech services retrieval
public void removeTechService(java.lang.String techServiceId)
throws DeploymentException
TechServiceManager
removeTechService in interface TechServiceManagertechServiceId - a tech service ID
DeploymentException - if an error occurs during tech service removal
public java.util.List<TechnicalServiceTO> searchTechService(java.lang.String searchCriteria,
java.util.List<ServiceSearchProperties> searchedProperties,
RequestOptionsTO options)
throws DeploymentException
TechServiceManager
searchTechService in interface TechServiceManagersearchCriteria - the search criteria (a String containing criteria separated
with whitespaces)searchedProperties - the searched propertiesoptions - sort, pagination and case sensitive parameters
List of TechnicalServiceTO matching the given
criteria for the given properties
DeploymentException - if an error occurs during tech services retrievalpublic void setBindingDAO(BindingDAO bindingDAO)
public void setMetadataService(MetadataService metadataService)
public void setServiceInterfaceDAO(ServiceInterfaceDAO serviceInterfaceDAO)
public void setServiceSpecificationDAO(ServiceSpecificationDAO serviceSpecificationDAO)
public void setTechnicalServiceUnifiedDAO(GenericUnifiedDAO<TechnicalService,java.lang.String> technicalServiceUnifiedDAO)
public void setTransfertObjectAssembler(TransfertObjectAssembler transfertObjectAssembler)
public java.lang.String updateTechService(TechnicalServiceTO techServiceTO)
throws DeploymentException
TechServiceManager
updateTechService in interface TechServiceManagertechServiceTO - the tech service to update
DeploymentException - if an error occurs during tech service update
public java.lang.String getRelatedDocContentAsString(java.lang.String relatedDocId)
throws DeploymentException
TechServiceManagerString
getRelatedDocContentAsString in interface TechServiceManagerrelatedDocId - a document id
String
DeploymentException - if an error occurs during related doc content retrieval
public java.io.InputStream getRelatedDocContent(java.lang.String relatedDocId)
throws DeploymentException
TechServiceManagerInputStream
getRelatedDocContent in interface TechServiceManagerrelatedDocId - a document id
InputStream
DeploymentException - if an error occurs during related doc content retrieval
public java.util.List<SimpleFileTO> getRelatedDocsForTechServ(java.lang.String techServiceId)
throws DeploymentException
TechServiceManagerList of SimpleFileTO that maps service related
docs
getRelatedDocsForTechServ in interface TechServiceManagertechServiceId - a service id
List of SimpleFileTO that maps service related
docs
DeploymentException - if an error occurs during related docs retrieval
public java.lang.String registerRelatedDoc(java.lang.String serviceId,
java.lang.String mimetype,
byte[] docContent)
throws DeploymentException
TechServiceManager
registerRelatedDoc in interface TechServiceManagerserviceId - a service identifier.mimetype - a mimetype (supported Mimetypes are : application/msword,
application/pdf, text/html, text/xml)docContent - the content of the document as a byte array.
DeploymentException
public void removeRelatedDoc(java.lang.String serviceId,
java.lang.String documentId)
TechServiceManager
removeRelatedDoc in interface TechServiceManagerdocumentId - a document identifier
public void addCategory(java.lang.String techServiceId,
java.lang.String categoryId,
java.lang.String categoryValue,
java.lang.String categoryDesc)
throws DeploymentException
TechServiceManager
addCategory in interface TechServiceManagertechServiceId - a TechnicalService 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 database
public void addCategory(java.lang.String techServiceId,
java.lang.String categoryId,
java.lang.String categoryValueId)
throws DeploymentException
TechServiceManager
addCategory in interface TechServiceManagertechServiceId - a TechnicalService 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 removeCategories(java.lang.String techServiceId,
java.util.List<java.lang.String> categoryIds)
TechServiceManager
removeCategories in interface TechServiceManagercategoryIds - ids of categories to removepublic float updateGlobalRating(java.lang.String serviceId)
TechServiceManager
updateGlobalRating in interface TechServiceManagerserviceId - the id of this service.
public void updateComments(java.lang.String serviceId,
CommentTO comment)
TechServiceManager
updateComments in interface TechServiceManagerserviceId - The technical Service ID.comment - The comment to add to this technical Service.public java.util.List<TechnicalServiceTO> getTechServicesByTag(java.lang.String tag)
TechServiceManager
getTechServicesByTag in interface TechServiceManagertag - the tag.
public void removeTag(java.lang.String tag,
java.lang.String serviceId)
TechServiceManager
removeTag in interface TechServiceManagertag - The tag to remove from.serviceId - The technical Service ID
public void removeComment(java.lang.String serviceId,
java.lang.String commentId)
TechServiceManager
removeComment in interface TechServiceManagerserviceId - The technical Service ID.public void setUniversalUnifiedDAO(UniversalUnifiedDAO universalUnifiedDAO)
public java.util.List<KeyedRefTO> getCategoriesForTechServ(java.lang.String techServiceId)
throws DeploymentException
TechServiceManagerList of KeyedRefTO that maps service related
categories
getCategoriesForTechServ in interface TechServiceManagertechServiceId - a service id
List of KeyedRefTO that maps service related
categories
DeploymentException - if the given service doesn't exist
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||