Added status ANY

This commit is contained in:
Luca Frosini 2022-04-21 15:33:57 +02:00
parent 5c797820ef
commit 54c79bc12c
1 changed files with 7 additions and 2 deletions

View File

@ -10,7 +10,8 @@ public enum CMItemStatus {
PENDING("pending"),
APPROVED("approved"),
REJECTED("rejected");
REJECTED("rejected"),
ANY("*");
protected static final Map<String,CMItemStatus> CM_ITEM_STATUS_FROM_VALUE;
@ -27,7 +28,11 @@ public enum CMItemStatus {
private CMItemStatus(String value) {
this.value = value;
this.fancyValue = Character.toUpperCase(value.charAt(0)) + value.substring(1);
if(this.value.length()>1) {
this.fancyValue = Character.toUpperCase(value.charAt(0)) + value.substring(1);
}else {
this.fancyValue = this.value;
}
}
public String getValue() {