com.netgrif.application.engine.workflow.web.responsebodies.DataFieldsResource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of application-engine Show documentation
Show all versions of application-engine Show documentation
System provides workflow management functions including user, role and data management.
package com.netgrif.application.engine.workflow.web.responsebodies;
import com.netgrif.application.engine.petrinet.domain.dataset.Field;
import org.springframework.hateoas.CollectionModel;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Locale;
import java.util.stream.Collectors;
public class DataFieldsResource extends CollectionModel {
public DataFieldsResource(Collection content, Locale locale) {
super(content.stream()
.map(f -> LocalisedFieldFactory.from(f, locale))
.collect(Collectors.toList()), new ArrayList<>(), null);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy