Sample urls to invoke the servlet after the app is deployed: /** * Saves the given doc via the handler used for the specified spec. * * @param filePath * The file name of the input document. * @param spec * e.g. 'MSTV','CL1_1', 'TTV' * @return ttv id of the root asset in the given doc. */ http://localhost:8081/consumer/invoke?method=save&filePath=D:\test\input\Package.xml&spec=MSTV /** * Validates the given document as per the spec and writes the errors in a * file with the filepath provided. * * @param filePath * filePath which contains the input document that needs to be * validated. * @param spec * e.g. 'MSTV','CL1_1', 'TTV'. The document will be run against * the validator(s) known to this spec handler. * @param locale * Comma separated list of 2 letter language code followed by * optional country code. e.g. 'en,US'; 'en' Currently only * english language is supported. * @throws IOException */ http://localhost:8081/consumer/invoke?method=validate&filePath=D:\test\input\Package.xml&spec=MSTV&locale=en,US /** * Searches for an asset given a TTV asset id. * * @param id * ttv asset id to look for * @return a TTV document. If this asset is a group, it will build the * complete tree. * @throws TranslationException * @throws SearchException * @throws MetadataException * @throws IOException */ http://localhost:8081/consumer/invoke?method=get&id=757 /** * Searches for an asset given a TTV asset id and a given version. * * @param id * ttv asset id to look for * @param version * ttv asset version to look for * @return a TTV document. If this asset is a group, it will build the * complete tree. * @throws TranslationException * @throws SearchException * @throws MetadataException * @throws IOException */ http://localhost:8081/consumer/invoke?method=get&id=757&version=1 /** * Retrieves the list of versions that an asset with the given TTV ID has. * * @param id * ttv asset id to look for * @return a list of versions * @throws TranslationException * @throws SearchException * @throws MetadataException * @throws IOException */ http://localhost:8081/consumer/invoke?method=getVersions&id=757 /** * Rollsback an asset with a given TTV ID to a given version * * @param id * ttv asset id to look for * @param version * ttv asset version to look for * @return a TTV document. If this asset is a group, it will build the * complete tree. * @throws TranslationException * @throws SearchException * @throws MetadataException * @throws IOException */ http://localhost:8081/consumer/invoke?method=rollback&id=757&version=1 /** * Searches for an asset which has the given providerId and assetId. The * spec is used only to map the providerId and assetId xpaths to appropriate * TTV Xpaths. * * @param providerId * providerId to match with * @param assetId * assetId to match with * @param spec * supported values are 'MSTV' and 'CL1_1' * * @return Document in the format defined by the specified spec. If this * asset is a group asset, it builds the complete tree. * @throws TranslationException * @throws SearchException * @throws MetadataException * @throws IOException */ http://localhost:8081/consumer/invoke?method=search&spec=CL1_1&providerId=TVN.COM&assetId=TVNX0003820800890411 /** * Deletes the asset with the given ttv id. * * @param id * ttv id for the asset that needs to be deleted. * @return true if the asset was successfully deleted. This is to done * because testing tools e.g. WebLOAD may be waiting for some * response. */ http://localhost:8081/consumer/invoke?method=delete&id=757 /** * Deletes all the assets given the ttv id list. * * @param ids * comma separated list of ttv ids of the assets to be deleted * @return comma separated list of ttv ids of the deleted assets */ http://localhost:8081/consumer/invoke?method=deleteAll&ids=757,758 /** * Deletes the asset which has the given providerId and assetId. The spec is * used only to map the providerId and assetId xpaths to appropriate. * * @param providerId * providerId to match with assetId to match with * @param spec * supported values are 'MSTV' and 'CL1_1' * @throws SearchException */ http://localhost:8081/consumer/invoke?method=deleteAsset&spec=MSTV&providerId=TVN.COM&assetId=TVNX0003820800890411 /* * Method which starts a transaction, adds 2 groups directly via metadata manager interface (not spec handler) * and throws an exception to verify that changes are not committed until the transaction is committed. * This is one way to verify if metadata manager dao participates in an existing transaction and is * meant to be used only by QA. Note that this is not a complete/accurate way of verifying the behavior. * May be it will be well tested when client applications use various methods with a transaction * they started. */ http://localhost:8080/consumer/invoke?method=checkTransaction