EventDTO.java

package com.tradecloud.dto.event;

import com.tradecloud.dto.SelectableDTO;

import java.util.Date;

public class EventDTO implements SelectableDTO {

    private Long id;
    private Date timestamp;
    private String reference;
    private String organisationalUnit;
    private String eventType;
    private String state;
    private String consumerTag;
    private String reinstateUser;
    private Date consumedDate;
    private Long acknowledgeEventId;
    private String notes;
    private Class instanceClass;

    public EventDTO(Long id, Date timestamp, String reference, String organisationalUnit, String eventType, String state, String consumerTag,
                    String reinstateUser, Date consumedDate, Long acknowledgeEventId, String notes) {
        this.id = id;
        this.timestamp = timestamp;
        this.reference = reference;
        this.organisationalUnit = organisationalUnit;
        this.eventType = eventType;
        this.state = state;
        this.consumerTag = consumerTag;
        this.reinstateUser = reinstateUser;
        this.consumedDate = consumedDate;
        this.acknowledgeEventId = acknowledgeEventId;
        this.notes = notes;
    }

    public EventDTO(Long id, Date timestamp, String reference, String organisationalUnit, String eventType, String state, String consumerTag,
                    String reinstateUser, Date consumedDate, Long acknowledgeEventId, String notes, Class instanceClass) {
        this.id = id;
        this.timestamp = timestamp;
        this.reference = reference;
        this.organisationalUnit = organisationalUnit;
        this.eventType = eventType;
        this.state = state;
        this.consumerTag = consumerTag;
        this.reinstateUser = reinstateUser;
        this.consumedDate = consumedDate;
        this.acknowledgeEventId = acknowledgeEventId;
        this.notes = notes;
        this.instanceClass = instanceClass;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Date timestamp) {
        this.timestamp = timestamp;
    }

    public String getReference() {
        return reference;
    }

    public void setReference(String reference) {
        this.reference = reference;
    }

    public String getOrganisationalUnit() {
        return organisationalUnit;
    }

    public void setOrganisationalUnit(String organisationalUnit) {
        this.organisationalUnit = organisationalUnit;
    }

    public String getEventType() {
        return eventType;
    }

    public void setEventType(String eventType) {
        this.eventType = eventType;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getConsumerTag() {
        return consumerTag;
    }

    public void setConsumerTag(String consumerTag) {
        this.consumerTag = consumerTag;
    }

    public String getReinstateUser() {
        return reinstateUser;
    }

    public void setReinstateUser(String reinstateUser) {
        this.reinstateUser = reinstateUser;
    }

    public Date getConsumedDate() {
        return consumedDate;
    }

    public void setConsumedDate(Date consumedDate) {
        this.consumedDate = consumedDate;
    }

    public Long getAcknowledgeEventId() {
        return acknowledgeEventId;
    }

    public void setAcknowledgeEventId(Long acknowledgeEventId) {
        this.acknowledgeEventId = acknowledgeEventId;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public Class getInstanceClass() {
        return instanceClass;
    }

    public void setInstanceClass(Class instanceClass) {
        this.instanceClass = instanceClass;
    }
}