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

com.foilen.infra.api.model.audit.AuditItem Maven / Gradle / Ivy

The newest version!
/*
    Foilen Infra API
    https://github.com/foilen/foilen-infra-api
    Copyright (c) 2017-2021 Foilen (https://foilen.com)

    The MIT License
    http://opensource.org/licenses/MIT

 */
package com.foilen.infra.api.model.audit;

import java.util.Date;

import com.foilen.infra.api.model.resource.ResourceDetails;
import com.foilen.smalltools.restapi.model.AbstractApiBase;
import com.foilen.smalltools.tools.DateTools;

public class AuditItem extends AbstractApiBase {

    private String id;

    private Date timestamp;

    private String txId;
    private boolean explicitChange;

    private AuditType type;
    private AuditAction action;

    private String userType;
    private String userName;

    private String impersonatorUserType;
    private String impersonatorUserName;

    // Resources
    private ResourceDetails resourceFirst;
    private ResourceDetails resourceSecond;

    private String linkType;
    private String tagName;

    // Other
    private String documentType;
    private String documentId;
    private Object documentFrom;
    private Object documentTo;

    public AuditAction getAction() {
        return action;
    }

    public Object getDocumentFrom() {
        return documentFrom;
    }

    public String getDocumentId() {
        return documentId;
    }

    public Object getDocumentTo() {
        return documentTo;
    }

    public String getDocumentType() {
        return documentType;
    }

    public String getId() {
        return id;
    }

    public String getImpersonatorUserName() {
        return impersonatorUserName;
    }

    public String getImpersonatorUserType() {
        return impersonatorUserType;
    }

    public String getLinkType() {
        return linkType;
    }

    public ResourceDetails getResourceFirst() {
        return resourceFirst;
    }

    public ResourceDetails getResourceSecond() {
        return resourceSecond;
    }

    public String getTagName() {
        return tagName;
    }

    public Date getTimestamp() {
        return timestamp;
    }

    public String getTimestampText() {
        return DateTools.formatFull(timestamp);
    }

    public String getTxId() {
        return txId;
    }

    public AuditType getType() {
        return type;
    }

    public String getUserName() {
        return userName;
    }

    public String getUserType() {
        return userType;
    }

    public boolean isExplicitChange() {
        return explicitChange;
    }

    public void setAction(AuditAction action) {
        this.action = action;
    }

    public void setDocumentFrom(Object documentFrom) {
        this.documentFrom = documentFrom;
    }

    public void setDocumentId(String documentId) {
        this.documentId = documentId;
    }

    public void setDocumentTo(Object documentTo) {
        this.documentTo = documentTo;
    }

    public void setDocumentType(String documentType) {
        this.documentType = documentType;
    }

    public void setExplicitChange(boolean explicitChange) {
        this.explicitChange = explicitChange;
    }

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

    public void setImpersonatorUserName(String impersonatorUserName) {
        this.impersonatorUserName = impersonatorUserName;
    }

    public void setImpersonatorUserType(String impersonatorUserType) {
        this.impersonatorUserType = impersonatorUserType;
    }

    public void setLinkType(String linkType) {
        this.linkType = linkType;
    }

    public void setResourceFirst(ResourceDetails resourceFirst) {
        this.resourceFirst = resourceFirst;
    }

    public void setResourceSecond(ResourceDetails resourceSecond) {
        this.resourceSecond = resourceSecond;
    }

    public void setTagName(String tagName) {
        this.tagName = tagName;
    }

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

    public void setTxId(String txId) {
        this.txId = txId;
    }

    public void setType(AuditType type) {
        this.type = type;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy