* @throws SearchException the search exception
*/
public String getMetadataText(String uuid, String catalogUri)
throws SearchException {
if(uuid == null || "".equals(uuid)) {
throw new SearchException("UUID given for document requested is either null"
+ " or empty");
}
ASearchEngine dao = this.getSearchDao();
try {
if(catalogUri != null){
dao.setConnectionUri(new URI(catalogUri));
}
return dao.getMetadataAsText(uuid);
} catch (URISyntaxException e) {
throw new SearchException
("Invalid Search URL given for catalog "+ catalogUri + " "
+ e.getMessage() , e);
}
}