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

com.netgrif.application.engine.workflow.web.responsebodies.MessageResource Maven / Gradle / Ivy

Go to download

System provides workflow management functions including user, role and data management.

There is a newer version: 6.3.3
Show newest version
package com.netgrif.application.engine.workflow.web.responsebodies;


import org.springframework.hateoas.EntityModel;
import org.springframework.hateoas.Link;

import java.util.ArrayList;

public class MessageResource extends EntityModel {

    public MessageResource(ResponseMessage content) {
        super(content, new ArrayList());
    }

    public static MessageResource successMessage(String msg) {
        return new MessageResource(ResponseMessage.createSuccessMessage(msg));
    }

    public static MessageResource successMessage(String msg, String data) {
        return new MessageResource(ResponseMessage.createSuccessMessageWithData(msg, data));
    }

    public static MessageResource errorMessage(String msg) {
        return new MessageResource(ResponseMessage.createErrorMessage(msg));
    }

    public static MessageResource errorMessage(String msg, String data) {
        return new MessageResource(ResponseMessage.createErrorMessageWithData(msg, data));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy