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

org.hisp.dhis.request.orgunit.OrgUnitMergeRequest Maven / Gradle / Ivy

There is a newer version: 2.0.4
Show newest version
package org.hisp.dhis.request.orgunit;

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

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import com.fasterxml.jackson.annotation.JsonProperty;

@Getter
@Setter
@Accessors( chain = true )
public class OrgUnitMergeRequest
{
    @JsonProperty
    private List sources = new ArrayList<>();

    @JsonProperty
    private String target;

    @JsonProperty
    private DataMergeStrategy dataValueMergeStrategy;

    @JsonProperty
    private DataMergeStrategy dataApprovalMergeStrategy;

    @JsonProperty
    private Boolean deleteSources;

    public OrgUnitMergeRequest addSource( String source )
    {
        this.sources.add( source );
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy