com.netgrif.application.engine.workflow.web.responsebodies.MessageResource 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 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