net.nemerosa.ontrack.model.support.ApplicationInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ontrack-model Show documentation
Show all versions of ontrack-model Show documentation
Ontrack module: ontrack-model
package net.nemerosa.ontrack.model.support;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Data;
@Data
@AllArgsConstructor(access = AccessLevel.PROTECTED)
public class ApplicationInfo {
private final ApplicationInfoType type;
private final String message;
public static ApplicationInfo success(String message) {
return new ApplicationInfo(ApplicationInfoType.SUCCESS, message);
}
public static ApplicationInfo info(String message) {
return new ApplicationInfo(ApplicationInfoType.INFO, message);
}
public static ApplicationInfo warning(String message) {
return new ApplicationInfo(ApplicationInfoType.WARNING, message);
}
public static ApplicationInfo error(String message) {
return new ApplicationInfo(ApplicationInfoType.ERROR, message);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy