@Test public void testCleanUpGeneratedEntryIds() throws Exception { initDocumentRedactorWithActualServices(); final String c32WithGeneratedEntryIds = fileReader .readFile("testC32WithGeneratedEntryIds.xml"); final String cleanC32 = documentRedactor .cleanUpGeneratedEntryIds(c32WithGeneratedEntryIds); final Document docWithGeneratedEntryIds = documentXmlConverter .loadDocument(c32WithGeneratedEntryIds); final Document docCleanedUp = documentXmlConverter .loadDocument(cleanC32); final String xPathExpr = " NodeList foundGeneratedEntryIds = documentAccessor.getNodeList( docWithGeneratedEntryIds, xPathExpr); assertTrue(foundGeneratedEntryIds.getLength() > 0); foundGeneratedEntryIds = documentAccessor.getNodeList(docCleanedUp, xPathExpr); assertTrue(foundGeneratedEntryIds.getLength() == 0); }
@Override public String cleanUpGeneratedEntryIds(String document) { final String xPathExprGeneratedEntryId = " return cleanUpElements(document, xPathExprGeneratedEntryId); }
DocumentRedactorImpl implements DocumentRedactor { @Override public String cleanUpGeneratedEntryIds(String document) { final String xPathExprGeneratedEntryId = " return cleanUpElements(document, xPathExprGeneratedEntryId); } }
DocumentRedactorImpl implements DocumentRedactor { @Override public String cleanUpGeneratedEntryIds(String document) { final String xPathExprGeneratedEntryId = " return cleanUpElements(document, xPathExprGeneratedEntryId); } DocumentRedactorImpl(
			SimpleMarshaller marshaller,
			DocumentXmlConverter documentXmlConverter,
			DocumentAccessor documentAccessor,
			Set<AbstractDocumentLevelRedactionHandler> documentLevelRedactionHandlers,
			Set<AbstractObligationLevelRedactionHandler> obligationLevelRedactionHandlers,
			Set<AbstractClinicalFactLevelRedactionHandler> clinicalFactLevelRedactionHandlers,
			Set<AbstractPostRedactionLevelRedactionHandler> postRedactionLevelRedactionHandlers); }
DocumentRedactorImpl implements DocumentRedactor { @Override public String cleanUpGeneratedEntryIds(String document) { final String xPathExprGeneratedEntryId = " return cleanUpElements(document, xPathExprGeneratedEntryId); } DocumentRedactorImpl(
			SimpleMarshaller marshaller,
			DocumentXmlConverter documentXmlConverter,
			DocumentAccessor documentAccessor,
			Set<AbstractDocumentLevelRedactionHandler> documentLevelRedactionHandlers,
			Set<AbstractObligationLevelRedactionHandler> obligationLevelRedactionHandlers,
			Set<AbstractClinicalFactLevelRedactionHandler> clinicalFactLevelRedactionHandlers,
			Set<AbstractPostRedactionLevelRedactionHandler> postRedactionLevelRedactionHandlers); @Override String cleanUpEmbeddedClinicalDocumentFromFactModel(
			String factModelXml); @Override String cleanUpGeneratedEntryIds(String document); @Override String cleanUpGeneratedServiceEventIds(String document); @Override RedactedDocument redactDocument(String document,
			RuleExecutionContainer ruleExecutionContainer, FactModel factModel); }
DocumentRedactorImpl implements DocumentRedactor { @Override public String cleanUpGeneratedEntryIds(String document) { final String xPathExprGeneratedEntryId = " return cleanUpElements(document, xPathExprGeneratedEntryId); } DocumentRedactorImpl(
			SimpleMarshaller marshaller,
			DocumentXmlConverter documentXmlConverter,
			DocumentAccessor documentAccessor,
			Set<AbstractDocumentLevelRedactionHandler> documentLevelRedactionHandlers,
			Set<AbstractObligationLevelRedactionHandler> obligationLevelRedactionHandlers,
			Set<AbstractClinicalFactLevelRedactionHandler> clinicalFactLevelRedactionHandlers,
			Set<AbstractPostRedactionLevelRedactionHandler> postRedactionLevelRedactionHandlers); @Override String cleanUpEmbeddedClinicalDocumentFromFactModel(
			String factModelXml); @Override String cleanUpGeneratedEntryIds(String document); @Override String cleanUpGeneratedServiceEventIds(String document); @Override RedactedDocument redactDocument(String document,
			RuleExecutionContainer ruleExecutionContainer, FactModel factModel);  }