55 lines
1.1 KiB
Java
55 lines
1.1 KiB
Java
package eu.dnetlib.uoaadmintools.entities;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
import org.springframework.data.annotation.Id;
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
public class CommunityEntity {
|
|
|
|
@Id
|
|
@JsonProperty("_id")
|
|
private String id;
|
|
|
|
private String pid;
|
|
private String name;
|
|
private Boolean isEnabled;
|
|
|
|
public CommunityEntity() {}
|
|
|
|
public CommunityEntity(Entity entity) {
|
|
this.setId(entity.getId());
|
|
this.setPid(entity.getPid());
|
|
this.setName(entity.getName());
|
|
this.setIsEnabled(true);
|
|
}
|
|
|
|
public String getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(String id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getPid() {
|
|
return pid;
|
|
}
|
|
|
|
public void setPid(String pid) { this.pid = pid; }
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public Boolean getIsEnabled() { return isEnabled; }
|
|
|
|
public void setIsEnabled(Boolean isEnabled) { this.isEnabled = isEnabled; }
|
|
}
|