private Integer id = 0;
- NomenclaturalStatusType type;
+ private NomenclaturalStatusType type;
- Reference citation;
+ private String ruleConsidered;
- NomenclaturalCodeEdition codeEdition;
+ private NomenclaturalCodeEdition codeEdition;
- String citationMicroReference;
+ private Reference citation;
- String ruleConsidered;
+ private String citationMicroReference;
public static NomenclaturalStatusDTO from(NomenclaturalStatus nomStatus) {
return new NomenclaturalStatusDTO(nomStatus.getId(), nomStatus.getType(), nomStatus.getCitation(),
nomStatus.getCitationMicroReference(), nomStatus.getRuleConsidered(), nomStatus.getCodeEdition());
-
}
public static NomenclaturalStatusDTO newInstance() {
return new NomenclaturalStatusDTO();
}
-
/**
* Update an existing or create a new {@link NomenclaturalStatus} for this
* DTO.
}
nomStatus.setCodeEdition(codeEdition);
return nomStatus;
-
}
public NomenclaturalStatusDTO(Integer id, NomenclaturalStatusType type, Reference citation,
this.codeEdition = codeEdition;
}
- /**
- *
- */
public NomenclaturalStatusDTO() {
// TODO Auto-generated constructor stub
}
* The fieldname must match the properties of the SpecimenTypeDesignationDTO
*/
NativeSelect type = new NativeSelect();
- ToOneRelatedEntityCombobox<Reference> citation = new ToOneRelatedEntityCombobox<Reference>(null, Reference.class);
+ ToOneRelatedEntityCombobox<Reference> citation = new ToOneRelatedEntityCombobox<>(null, Reference.class);
TextField citationMicroReference = new TextFieldNFix();
TextField ruleConsidered = new TextFieldNFix();
NativeSelect codeEdition = new NativeSelect();
return visibleFields;
}
- /**
- * {@inheritDoc}
- */
@Override
public void updateRowItemsEnablement() {
// nothing to do
import java.util.UUID;
import org.apache.commons.lang3.StringUtils;
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.Logger;
import org.hibernate.criterion.Restrictions;
import org.springframework.context.annotation.Scope;
import org.vaadin.spring.events.annotation.EventBusListenerMethod;
private static final long serialVersionUID = -3538980627079389221L;
- private static final Logger logger = LogManager.getLogger();
-
private static final EnumSet<CRUD> SUB_EDITOR_CRUD = EnumSet.of(CRUD.UPDATE, CRUD.DELETE);
private static final List<String> RELATED_NAME_INIT_STRATEGY = Arrays.asList("$", "nomenclaturalSource.annotations",
public NomenclaturalStatusRow create() {
NomenclaturalStatusRow row = new NomenclaturalStatusRow();
+ //type
BeanItemContainer<DefinedTermBase> statusTypeItemContainer = cdmBeanItemContainerFactory.buildTermItemContainer(
RegistrationTermLists.NOMENCLATURAL_STATUS_TYPE_UUIDS()
);
row.type.setContainerDataSource(statusTypeItemContainer);
row.type.setItemCaptionMode(ItemCaptionMode.EXPLICIT);
- for (DefinedTermBase term : statusTypeItemContainer.getItemIds()) {
+ for (DefinedTermBase<?> term : statusTypeItemContainer.getItemIds()) {
row.type.setItemCaption(term,
term.getPreferredRepresentation(Language.DEFAULT()).getAbbreviatedLabel());
}