package com.iqser.red.service.persistence.service.v1.api.shared.model.annotations.entitymapped;

import java.util.ArrayList;
import java.util.List;

import com.iqser.red.service.persistence.service.v1.api.shared.model.annotations.Rectangle;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class ManualResizeRedaction extends BaseAnnotation {

    private String value;
    private List<Rectangle> positions = new ArrayList<>();
    private String textBefore;
    private String textAfter;
    private Boolean updateDictionary;
    private boolean addToAllDossiers;


    @Override
    public boolean isLocal() {

        return !(updateDictionary || addToAllDossiers);
    }

}
