|
||||||||||
| 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,
java.lang.String fileName)
Registers a new document in the registry (supported types are: DOC, PDF, XML, HTML, XLS, PPT, TXT, RTF, ODT, ODS, ODP). |
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 associate to the given service. |
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 |
setEndpointDAO(EndpointDAO endpointDAO)
|
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 creationpublic java.util.List<TechnicalServiceTO> getAllTechServices(RequestOptionsTO requestOptionsTO)
TechServiceManager
getAllTechServices in interface TechServiceManagerrequestOptionsTO - sort, pagination and case sensitive parameters , could be null
List of all TechnicalServiceTO in the
registry, not null, can be empty
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 IDuser - a user login. Will be used to retrieve related rating for this
service. Can be null
TechnicalServiceTO matching the given ID
DeploymentException - if no TechnicalService can be found for the given Id
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 no service found for the given techService id
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), mustn't be emptysearchedProperties - the searched properties as a list of
ServiceSearchProperties, mustn't be emptyoptions - sort, pagination and case sensitive parameters. Could be null
List of TechnicalServiceTO matching the given
criteria for the given properties
DeploymentException - if you try to search services without specifying search
criteriapublic 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 no service found for the given techServ id to 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 no document found for the given id or if the document
content can't be loaded
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,
java.lang.String fileName)
throws DeploymentException
TechServiceManager
registerRelatedDoc in interface TechServiceManagerserviceId - a TechnicalService identifiermimetype - a mimetype (supported Mimetypes are : application/msword,
application/pdf, text/html, text/xml,
application/vnd.ms-excel, application/vnd.ms-powerpoint,
text/plain, application/rtf,
application/vnd.oasis.opendocument.text,
application/vnd.oasis.opendocument.spreadsheet,
application/vnd.oasis.opendocument.presentation). See
ContentType for supported content typesdocContent - the content of the document as a byte array.fileName - the file name, could be null
DeploymentException - if no TechnicalService found for the given serviceId
or if the document can't be registered or indexed
public void removeRelatedDoc(java.lang.String serviceId,
java.lang.String documentId)
throws DeploymentException
TechServiceManager
removeRelatedDoc in interface TechServiceManagerserviceId - a service identifierdocumentId - a document identifier
DeploymentException - if no service or document found for the given ids
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). Could be null
DeploymentException - if at least one of the given id doesn't exist in database or
if you try to add the same category twice
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 or
if you try to add the same category twice
public void removeCategories(java.lang.String techServiceId,
java.util.List<java.lang.String> categoryIds)
throws DeploymentException
TechServiceManager
removeCategories in interface TechServiceManagertechServiceId - a service identifiercategoryIds - ids of categories to remove, can be empty
DeploymentException - if no service found for the given id or if no category found
for the given idspublic 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 existpublic void setEndpointDAO(EndpointDAO endpointDAO)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||