org.hisp.dhis.model.OrgUnit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dhis2-java-client Show documentation
Show all versions of dhis2-java-client Show documentation
DHIS 2 API client for Java.
package org.hisp.dhis.model;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;
import com.fasterxml.jackson.annotation.JsonProperty;
@Getter
@Setter
public class OrgUnit
extends NameableObject
{
@JsonProperty
private String path;
@JsonProperty
private Integer level;
@Setter
@JsonProperty
private OrgUnit parent;
@Setter
@JsonProperty
private Date openingDate;
@Setter
@JsonProperty
private Date closedDate;
@Setter
@JsonProperty
private String comment;
@Setter
@JsonProperty
private String url;
@Setter
@JsonProperty
private String contactPerson;
@Setter
@JsonProperty
private String address;
@Setter
@JsonProperty
private String email;
@Setter
@JsonProperty
private String phoneNumber;
public OrgUnit()
{
}
public OrgUnit( String id, String name )
{
this.id = id;
this.name = name;
}
public OrgUnit( String id, String name, String shortName )
{
this( id, name );
this.shortName = shortName;
}
public OrgUnit( String id, String name, String shortName, OrgUnit parent )
{
this( id, name, shortName );
this.parent = parent;
}
public OrgUnit( String id, String name, String shortName, OrgUnit parent, Date openingDate )
{
this( id, name, shortName, parent );
this.openingDate = openingDate;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy