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

com.foilen.infra.api.model.audit.AuditItemWithPagination 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.HashMap;
import java.util.List;
import java.util.Map;

import com.foilen.smalltools.restapi.model.AbstractListResultWithPagination;

public class AuditItemWithPagination extends AbstractListResultWithPagination {

    private Map> validationErrorsByField = new HashMap<>();

    public Map> getValidationErrorsByField() {
        return validationErrorsByField;
    }

    @Override
    public boolean isSuccess() {
        return validationErrorsByField.isEmpty() && super.isSuccess();
    }

    public AuditItemWithPagination setValidationErrorsByField(Map> validationErrorsByField) {
        this.validationErrorsByField = validationErrorsByField;
        return this;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy