changed status enum
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/grsf-common-library@157741 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
7e97284fb4
commit
e7c2e77010
|
@ -62,4 +62,16 @@ public enum Status {
|
|||
public String toString() {
|
||||
return getOrigName();
|
||||
}
|
||||
|
||||
|
||||
public static Status fromString(String string){
|
||||
if(string == null || string.isEmpty())
|
||||
return null;
|
||||
|
||||
for(Status value: Status.values())
|
||||
if(value.toString().equalsIgnoreCase(string))
|
||||
return value;
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue