iheos / iheos-toolkit3

1 stars 0 forks source link

Integration of MHD tabs #136

Open iheos opened 9 years ago

iheos commented 9 years ago

Originally reported by: Diane Azais (Bitbucket: dazais, GitHub: dazais)


I need 2 things to complete the integration of the MHD Validation tab:


iheos commented 9 years ago

Original comment by Diane Azais (Bitbucket: dazais, GitHub: dazais):


MHD validator, "Submit" type of message is done.

Left to do:

iheos commented 9 years ago

Original comment by Diane Azais (Bitbucket: dazais, GitHub: dazais):


Issue #149 was marked as a duplicate of this issue.

iheos commented 9 years ago

Original comment by Diane Azais (Bitbucket: dazais, GitHub: dazais):


The next thing to know is what to do with the Asset.

iheos commented 9 years ago

Original comment by Diane Azais (Bitbucket: dazais, GitHub: dazais):


Found instructions in one of Bill's commits.

Contributes to Issue #136 Added API for performing validation of MHD content. The call is performed by ValidationApi api = new ValidationApi(); Asset a = api.validateRequest(String transactionName, String content);

ValidationApi is in the package gov.nist.hit.ds.simSupport.api

I anticipate supporting the following transactions (by name): drv - Document Reference Validation dmv - Document Manifest Validation pdr - Provide Document Reference Validatin

Provide Document Refererence is the actual transaction. Document Reference and Document Manifest are two object that are part of the transaction, wrapped in an ATOM Feed. All three validations are to be offered.

There is no separate selection for XML vs JSON encoding. Each validation will handle either, sensing which is present from the data offered.

The return value is an Asset. To obtain the assetId, use this code snippet: String id = asset.getId().idString;

To determine whether validation encountered an error: boolean error = asset.getProperty("status").equals("ERROR")

iheos commented 9 years ago

Original comment by Diane Azais (Bitbucket: dazais, GitHub: dazais):


I need the actual API calls to run for:

iheos commented 9 years ago

Original comment by Bill Majurski (Bitbucket: bmajur, GitHub: Unknown):


Recent commits completed this task.