All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netgrif.application.engine.petrinet.web.responsebodies.PetriNetReferenceWithMessageResource Maven / Gradle / Ivy

package com.netgrif.application.engine.petrinet.web.responsebodies;

import com.netgrif.application.engine.petrinet.domain.PetriNet;
import org.springframework.hateoas.CollectionModel;

import java.util.Collections;
import java.util.Locale;

public class PetriNetReferenceWithMessageResource extends CollectionModel {

    public PetriNetReferenceWithMessageResource(PetriNetReferenceWithMessage content) {
        super(Collections.singleton(content));
    }

    public static PetriNetReferenceWithMessageResource successMessage(String msg, PetriNet net, Locale locale) {
        return new PetriNetReferenceWithMessageResource(new PetriNetReferenceWithMessage(msg, net, locale));
    }

    public static PetriNetReferenceWithMessageResource errorMessage(String msg) {
        return new PetriNetReferenceWithMessageResource(new PetriNetReferenceWithMessage(msg));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy