com.netgrif.application.engine.workflow.web.responsebodies.TaskResourceAssembler 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.workflow.domain.Task;
import org.springframework.hateoas.server.RepresentationModelAssembler;
import java.util.Locale;
public class TaskResourceAssembler implements RepresentationModelAssembler {
private Locale locale;
public TaskResourceAssembler(Locale locale) {
this.locale = locale;
}
@Override
public LocalisedTaskResource toModel(com.netgrif.application.engine.workflow.domain.Task task) {
return new LocalisedTaskResource(new com.netgrif.application.engine.workflow.web.responsebodies.Task(task, locale));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy