use of edu.stanford.bmir.protege.web.shared.form.SetFormDataResult in project webprotege by protegeproject.
the class SetFormDataActionHandler method execute.
@Nonnull
@Override
public SetFormDataResult execute(@Nonnull SetFormDataAction action, @Nonnull ExecutionContext executionContext) {
FormData formData = action.getFormData();
CollectionItemData data = null;
if (formData.isEmpty()) {
data = new CollectionItemData(action.getCollectionId(), action.getElementId());
} else {
data = new CollectionItemData(action.getCollectionId(), action.getElementId(), formData);
}
repository.save(data);
return new SetFormDataResult();
}
Aggregations