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

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 ManualRecategorization extends BaseAnnotation {

    private String type;
    private String legalBasis;
    private boolean addToDictionary;
    private boolean addToAllDossiers;
    private String section;
    private String value;


    @Override
    public boolean isLocal() {

        return !(addToDictionary || addToAllDossiers);
    }

}
