コード例 #1
0
  private AcknowledgementType logSubjectReidentification(
      SubjectReidentificationRequestMessageType message, String direction, String _interface) {
    AcknowledgementType ack = new AcknowledgementType();
    AuditRepositoryLogger auditLogger = new AuditRepositoryLogger();
    LogEventRequestType auditLogMsg = auditLogger.logSubjectReident(message, direction, _interface);

    if (auditLogMsg != null) {
      AuditRepositoryProxyObjectFactory auditRepoFactory = new AuditRepositoryProxyObjectFactory();
      AuditRepositoryProxy proxy = auditRepoFactory.getAuditRepositoryProxy();
      ack = proxy.auditLog(auditLogMsg, message.getAssertion());
    }
    return ack;
  }
コード例 #2
0
  private AcknowledgementType logSubjectResponse(
      NhinSubjectDiscoveryAckMessageType message,
      AssertionType assertion,
      String direction,
      String _interface) {
    AcknowledgementType ack = new AcknowledgementType();
    AuditRepositoryLogger auditLogger = new AuditRepositoryLogger();
    LogEventRequestType auditLogMsg =
        auditLogger.logNhinSubjectDiscoveryAck(message, direction, _interface);

    if (auditLogMsg != null) {
      AuditRepositoryProxyObjectFactory auditRepoFactory = new AuditRepositoryProxyObjectFactory();
      AuditRepositoryProxy proxy = auditRepoFactory.getAuditRepositoryProxy();
      ack = proxy.auditLog(auditLogMsg, assertion);
    }
    return ack;
  }