|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Transactional public interface TechServiceManager
A manager of tech services. Provides methods to create, retrieve, delete or update tech services
| 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 iOptions)
Retrieve a list of tech services matching the given criteria for the given properties |
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. |
| Method Detail |
|---|
java.lang.String createTechService(TechnicalServiceTO techServiceTO)
throws DeploymentException
techServiceTO - the tech service to add
DeploymentException - if an error occurs during tech service creation
@Transactional(readOnly=true)
java.util.List<TechnicalServiceTO> getAllTechServices(RequestOptionsTO requestOptionsTO)
throws DeploymentException
requestOptionsTO - 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
@Transactional(readOnly=true)
EndpointTO getEndpoint(java.lang.String techServiceName,
java.lang.String endpointName)
throws DeploymentException
techServiceName - 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
@Transactional(readOnly=true)
TechnicalServiceTO getTechService(java.lang.String techServiceId,
java.lang.String user)
throws DeploymentException
techServiceId - a tech service ID
TechnicalServiceTO matching the given ID, can be null
DeploymentException - if an error occurs during tech service retrieval
@Transactional(readOnly=true)
java.util.List<TechnicalServiceTO> loadServicesFromWSDL(java.lang.String[] servicesId,
RequestOptionsTO requestOptionsTO)
throws DeploymentException
servicesId - 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
void removeTechService(java.lang.String techServiceId)
throws DeploymentException
techServiceId - a tech service ID
DeploymentException - if an error occurs during tech service removal
@Transactional(readOnly=true)
java.util.List<TechnicalServiceTO> searchTechService(java.lang.String searchCriteria,
java.util.List<ServiceSearchProperties> searchedProperties,
RequestOptionsTO iOptions)
throws DeploymentException
searchCriteria - the search criteria (a String containing criteria separated
with whitespaces)searchedProperties - the searched propertiesiOptions - 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 retrieval
java.lang.String updateTechService(TechnicalServiceTO techServiceTO)
throws DeploymentException
techServiceTO - the tech service to update
DeploymentException - if an error occurs during tech service update
java.util.List<SimpleFileTO> getRelatedDocsForTechServ(java.lang.String techServiceId)
throws DeploymentException
List of SimpleFileTO that maps service related
docs
techServiceId - a service id
List of SimpleFileTO that maps service related
docs
DeploymentException - if an error occurs during related docs retrieval
java.util.List<KeyedRefTO> getCategoriesForTechServ(java.lang.String techServiceId)
throws DeploymentException
List of KeyedRefTO that maps service related
categories
techServiceId - a service id
List of KeyedRefTO that maps service related
categories
DeploymentException - if the given service doesn't exist
java.lang.String getRelatedDocContentAsString(java.lang.String relatedDocId)
throws DeploymentException
String
relatedDocId - a document id
String
DeploymentException - if an error occurs during related doc content retrieval
java.io.InputStream getRelatedDocContent(java.lang.String relatedDocId)
throws DeploymentException
InputStream
relatedDocId - a document id
InputStream
DeploymentException - if an error occurs during related doc content retrieval
java.lang.String registerRelatedDoc(java.lang.String serviceId,
java.lang.String mimetype,
byte[] docContent)
throws DeploymentException
serviceId - 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
void removeRelatedDoc(java.lang.String serviceId,
java.lang.String documentId)
documentId - a document identifier
void removeCategories(java.lang.String techServiceId,
java.util.List<java.lang.String> categoryIds)
categoryIds - ids of categories to remove
void addCategory(java.lang.String techServiceId,
java.lang.String categoryId,
java.lang.String categoryValueId)
throws DeploymentException
techServiceId - 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
void addCategory(java.lang.String techServiceId,
java.lang.String categoryId,
java.lang.String categoryValue,
java.lang.String categoryDesc)
throws DeploymentException
techServiceId - 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 databasefloat updateGlobalRating(java.lang.String serviceId)
serviceId - the id of this service.
void updateComments(java.lang.String serviceId,
CommentTO comment)
serviceId - The technical Service ID.comment - The comment to add to this technical Service.java.util.List<TechnicalServiceTO> getTechServicesByTag(java.lang.String tag)
tag - the tag.
void removeTag(java.lang.String tag,
java.lang.String serviceId)
serviceId - The technical Service IDtag - The tag to remove from.
void removeComment(java.lang.String serviceId,
java.lang.String commentId)
serviceId - The technical Service ID.commentID - The EndPoint ID.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||