argos/dmp-backend/core/src/main/java/eu/eudat/model/persist/SupportiveMaterialPersist.java

45 lines
941 B
Java
Raw Normal View History

2023-10-18 09:31:57 +02:00
package eu.eudat.model.persist;
2023-11-03 12:30:11 +01:00
import eu.eudat.commons.enums.SupportiveMaterialFieldType;
import eu.eudat.commons.validation.ValidEnum;
2023-10-18 09:31:57 +02:00
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
2023-11-03 12:30:11 +01:00
public class SupportiveMaterialPersist {
2023-10-18 09:31:57 +02:00
@NotNull(message = "{validation.empty}")
@NotEmpty(message = "{validation.empty}")
private String name;
2023-11-03 12:30:11 +01:00
@ValidEnum(message = "{validation.empty}")
private SupportiveMaterialFieldType type;
2023-10-18 09:31:57 +02:00
@NotNull(message = "{validation.empty}")
@NotEmpty(message = "{validation.empty}")
private String html;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
2023-11-03 12:30:11 +01:00
public SupportiveMaterialFieldType getType() {
return type;
}
public void setType(SupportiveMaterialFieldType type) {
this.type = type;
}
2023-10-18 09:31:57 +02:00
public String getHtml() {
return html;
}
public void setHtml(String html) {
this.html = html;
}
}