39 lines
810 B
Java
39 lines
810 B
Java
package org.gcube.data_catalogue.grsf_publish_ws.utils.groups;
|
|
|
|
import org.gcube.data_catalogue.grsf_publish_ws.utils.HelperMethods;
|
|
|
|
/**
|
|
* Status Group and sub groups (for both Stock and Fishery)
|
|
* @author Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
|
|
*/
|
|
public enum Status {
|
|
|
|
Pending("Pending"),
|
|
Confirmed("Confirmed");
|
|
|
|
private String subGroupNameOrig;
|
|
private String subGroupNameOnCkan;
|
|
|
|
private Status(String origName) {
|
|
this.subGroupNameOrig = origName;
|
|
this.subGroupNameOnCkan = HelperMethods.getGroupNameOnCkan(origName);
|
|
}
|
|
|
|
/**
|
|
* Return the name the group has on ckan
|
|
* @return
|
|
*/
|
|
public String getNameCkan(){
|
|
return subGroupNameOnCkan;
|
|
}
|
|
|
|
/**
|
|
* Return the original name
|
|
* @return
|
|
*/
|
|
public String getOrigName(){
|
|
return subGroupNameOrig;
|
|
}
|
|
|
|
}
|