added support for sdg-flag, added Reject Merge status
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/grsf-common-library@164581 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
881e88b722
commit
85333c5c6e
|
@ -31,6 +31,8 @@ public class Constants {
|
||||||
public static final String SHORT_NAME_JSON_KEY = "short_name";
|
public static final String SHORT_NAME_JSON_KEY = "short_name";
|
||||||
public static final String TRACEABILITY_FLAG_CUSTOM_KEY = "Traceability Flag";
|
public static final String TRACEABILITY_FLAG_CUSTOM_KEY = "Traceability Flag";
|
||||||
public static final String TRACEABILITY_FLAG_JSON_KEY = "traceability_flag";
|
public static final String TRACEABILITY_FLAG_JSON_KEY = "traceability_flag";
|
||||||
|
public static final String SDG_FLAG_CUSTOM_KEY = "SDG Flag";
|
||||||
|
public static final String SDG_FLAG_JSON_KEY = "sdg_flag";
|
||||||
public static final String CATCHES_CUSTOM_KEY = "Catches";
|
public static final String CATCHES_CUSTOM_KEY = "Catches";
|
||||||
public static final String CATCHES_JSON_KEY = "catches";
|
public static final String CATCHES_JSON_KEY = "catches";
|
||||||
public static final String LANDINGS_CUSTOM_KEY = "Landings";
|
public static final String LANDINGS_CUSTOM_KEY = "Landings";
|
||||||
|
@ -53,9 +55,6 @@ public class Constants {
|
||||||
// for connected records
|
// for connected records
|
||||||
public static final String CONNECTED_CUSTOM_KEY = "Connected Record";
|
public static final String CONNECTED_CUSTOM_KEY = "Connected Record";
|
||||||
public static final String CONNECTED_JSON_KEY = "connected";
|
public static final String CONNECTED_JSON_KEY = "connected";
|
||||||
// public static final String CONNECTED_RECORD_SEMANTIC_IDENTIFIER_JSON_KEY = "semantic_identifier";
|
|
||||||
// public static final String CONNECTED_RECORD_SHORT_NAME_JSON_KEY = "short_name";
|
|
||||||
// public static final String CONNECTED_RECORD_KNOWLEDGE_BASE_ID_JSON_KEY = "knowledge_base_id";
|
|
||||||
|
|
||||||
// stock record
|
// stock record
|
||||||
public static final String STOCK_NAME_CUSTOM_KEY = "Stock Name";
|
public static final String STOCK_NAME_CUSTOM_KEY = "Stock Name";
|
||||||
|
@ -198,4 +197,8 @@ public class Constants {
|
||||||
public static final String NO_SIMILAR_GRSF_RECORDS = "No Similar Records";
|
public static final String NO_SIMILAR_GRSF_RECORDS = "No Similar Records";
|
||||||
public static final String NO_CONNECTED_RECORDS = "No Connected Records";
|
public static final String NO_CONNECTED_RECORDS = "No Connected Records";
|
||||||
|
|
||||||
|
// groups for traceability and sdg flags
|
||||||
|
public static final String TRACEABILITY_FLAG_GROUP_NAME = "traceability-flag";
|
||||||
|
public static final String SDG_FLAG_GROUP_NAME = "sdg-flag";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,9 @@ public enum Status {
|
||||||
|
|
||||||
Pending("Pending"),
|
Pending("Pending"),
|
||||||
Approved("Approved"),
|
Approved("Approved"),
|
||||||
Rejected("Rejected"),
|
Rejected("Rejected"), // for rejecting a given record
|
||||||
|
Reject_Merge("Reject Merge"), // for rejecting a merge (i.e. current status of the record is
|
||||||
|
// To Be Merged
|
||||||
Archived("Archived"),
|
Archived("Archived"),
|
||||||
Hidden("Hidden"),
|
Hidden("Hidden"),
|
||||||
To_be_Merged("To Be Merged");
|
To_be_Merged("To Be Merged");
|
||||||
|
@ -64,7 +66,6 @@ public enum Status {
|
||||||
return getOrigName();
|
return getOrigName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static Status fromString(String string){
|
public static Status fromString(String string){
|
||||||
if(string == null || string.isEmpty())
|
if(string == null || string.isEmpty())
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue