All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.gov.di.ipv.cri.common.library.domain.AuditEventContext Maven / Gradle / Ivy

There is a newer version: 3.7.0
Show newest version
package uk.gov.di.ipv.cri.common.library.domain;

import uk.gov.di.ipv.cri.common.library.domain.personidentity.PersonIdentityDetailed;
import uk.gov.di.ipv.cri.common.library.persistence.item.SessionItem;

import java.util.Map;

public class AuditEventContext {
    private final PersonIdentityDetailed personIdentity;
    private final Map requestHeaders;
    private final SessionItem sessionItem;

    public AuditEventContext(
            PersonIdentityDetailed personIdentity,
            Map requestHeaders,
            SessionItem sessionItem) {
        this.personIdentity = personIdentity;
        this.requestHeaders = requestHeaders;
        this.sessionItem = sessionItem;
    }

    public AuditEventContext(Map requestHeaders, SessionItem sessionItem) {
        this(null, requestHeaders, sessionItem);
    }

    public PersonIdentityDetailed getPersonIdentity() {
        return personIdentity;
    }

    public Map getRequestHeaders() {
        return requestHeaders;
    }

    public SessionItem getSessionItem() {
        return sessionItem;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy