2023-12-08 17:05:48 +01:00
|
|
|
package eu.eudat.commons.enums;
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonValue;
|
|
|
|
import eu.eudat.data.converters.enums.DatabaseEnum;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
public enum LockTargetType implements DatabaseEnum<Short> {
|
|
|
|
Dmp((short) 0),
|
2024-03-21 08:46:18 +01:00
|
|
|
Description((short) 1),
|
|
|
|
DmpBlueprint((short) 2),
|
|
|
|
DescriptionTemplate((short) 3);
|
2023-12-08 17:05:48 +01:00
|
|
|
private final Short value;
|
|
|
|
|
|
|
|
LockTargetType(Short value) {
|
|
|
|
this.value = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
@JsonValue
|
|
|
|
public Short getValue() {
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
|
|
|
|
private static final Map<Short, LockTargetType> map = EnumUtils.getEnumValueMap(LockTargetType.class);
|
|
|
|
|
|
|
|
public static LockTargetType of(Short i) {
|
|
|
|
return map.get(i);
|
|
|
|
}
|
|
|
|
}
|