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

    private boolean removeFromDictionary;
    private boolean removeFromAllDossiers;


    @Override
    public boolean isLocal() {

        return !(removeFromDictionary || removeFromAllDossiers);
    }

}
