|
||||||||||
| 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, add or remove related docs, categories. Method arguments must be non null, unless the contrary is explicitly specified.
| 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 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)
requestOptionsTO - sort, pagination and case sensitive parameters , could be null
List of all TechnicalServiceTO in the
registry, not null, can be empty
@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 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
@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 no service found for the given techService id
@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), mustn't be emptysearchedProperties - the searched properties as a list of
ServiceSearchProperties, mustn't be emptyiOptions - 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
criteria
java.lang.String updateTechService(TechnicalServiceTO techServiceTO)
throws DeploymentException
techServiceTO - the tech service to update
DeploymentException - if no service found for the given techServ id to 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 no document found for the given id or if the document
content can't be loaded
java.lang.String registerRelatedDoc(java.lang.String serviceId,
java.lang.String mimetype,
byte[] docContent,
java.lang.String fileName)
throws DeploymentException
serviceId - 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
void removeRelatedDoc(java.lang.String serviceId,
java.lang.String documentId)
throws DeploymentException
serviceId - a service identifierdocumentId - a document identifier
DeploymentException - if no service or document found for the given ids
void removeCategories(java.lang.String techServiceId,
java.util.List<java.lang.String> categoryIds)
throws DeploymentException
techServiceId - 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 ids
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 or
if you try to add the same category twice
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). 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 twicefloat 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 | |||||||||