Added status ANY
This commit is contained in:
parent
5c797820ef
commit
54c79bc12c
|
@ -10,7 +10,8 @@ public enum CMItemStatus {
|
||||||
|
|
||||||
PENDING("pending"),
|
PENDING("pending"),
|
||||||
APPROVED("approved"),
|
APPROVED("approved"),
|
||||||
REJECTED("rejected");
|
REJECTED("rejected"),
|
||||||
|
ANY("*");
|
||||||
|
|
||||||
protected static final Map<String,CMItemStatus> CM_ITEM_STATUS_FROM_VALUE;
|
protected static final Map<String,CMItemStatus> CM_ITEM_STATUS_FROM_VALUE;
|
||||||
|
|
||||||
|
@ -27,7 +28,11 @@ public enum CMItemStatus {
|
||||||
|
|
||||||
private CMItemStatus(String value) {
|
private CMItemStatus(String value) {
|
||||||
this.value = 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() {
|
public String getValue() {
|
||||||
|
|
Loading…
Reference in New Issue