Package org.wijiscommons.cdcl.gatepoint

Examples of org.wijiscommons.cdcl.gatepoint.Provenance


     * @param gatepointResponse Response received from a CDCL Gatepoint.
     * @return An updated SSAF document containing a payload that has gone through disclosure control.
     */
    static Node createDisclosureControlProvenanceNode(Document ssafDocument, DisclosureProblemOutputMessage gatepointResponse)
    {
        Provenance gatepointProvenance = gatepointResponse.getOutputMessageMetaData().getProvenance();
       
        Node disclosureControlGatepointURI = ssafDocument.createElementNS(CDCL_NAMESPACE, GATEPOINT_URI_ELEMENT_L_NAME);
        Node disclosureControlGatepointURIValue = ssafDocument.createTextNode(gatepointProvenance.getGatePointURI());
        disclosureControlGatepointURI.appendChild(disclosureControlGatepointURIValue);
       
        Node disclosureControlTimeStamp = ssafDocument.createElementNS(CDCL_NAMESPACE, GATEPOIN_PROCESS_TIMESTAMP_ELEMENT_L_NAME);
        // TODO(Jan 29, 2009): Replace deprecated method below - Pattabi Doraiswamy.
        Node disclosureControlTimeStampValue = ssafDocument.createTextNode(gatepointProvenance.getGatepointProcessTimeStamp().toGMTString());
        disclosureControlTimeStamp.appendChild(disclosureControlTimeStampValue);
       
        Node disclosureControlProvenanceRecordURL = ssafDocument.createElementNS(CDCL_NAMESPACE, PROVENANCE_RECORD_URL_ELEMENT_L_NAME);
        Node disclosureControlProvenanceRecordURLValue = ssafDocument.createTextNode(gatepointProvenance.getRecordURL());
        disclosureControlProvenanceRecordURL.appendChild(disclosureControlProvenanceRecordURLValue);
       
        Node disclosureControlProvenance = ssafDocument.createElementNS(CDCL_NAMESPACE, DISCLOSURE_CONTROL_PROVENANCE_ELEMENT_L_NAME);
        disclosureControlProvenance.appendChild(disclosureControlGatepointURI);
        disclosureControlProvenance.appendChild(disclosureControlTimeStamp);
View Full Code Here

TOP

Related Classes of org.wijiscommons.cdcl.gatepoint.Provenance

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.