Class AuditMapper

java.lang.Object
swiss.trustbroker.audit.service.AuditMapper
Direct Known Subclasses:
InboundAuditMapper, OutboundAuditMapper

public abstract class AuditMapper extends Object
Maps DTOs for auditing. Returns this to allow building from multiple sources. This class has a cyclic dependency to saml package, but we live with that (clean on split if need be). For auditing we can consume CPResponse attributes as follows:
  • AttributeName.name (from internal processing and IDM) can be directly consumed as name="value" (no deduplication)
  • AttributeName.fullyQualifiedName (from CP origin mostly) consumed as originName="value (fullyQualifiedName)"
  • If fullyQualifiedName cannot be mapped the part after the last slash is used lastPart="value (fullyQualifiedName)"
If we have colliding AttributeName.name when mapping back from AttributeName.fullyQualifiedName the winner in the map is OK.