45 lines
744 B
Java
45 lines
744 B
Java
package org.gcube.datacatalogue.utillibrary.server.cms;
|
|
|
|
/**
|
|
* The Enum ItemStatus.
|
|
*
|
|
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
|
*
|
|
* May 7, 2021
|
|
*/
|
|
public enum ItemStatus {
|
|
PENDING("pending", "Pending"), APPROVED("approved", "Approved"), REJECTED("rejected", "Rejected");
|
|
|
|
private String id;
|
|
private String label;
|
|
|
|
/**
|
|
* Instantiates a new item status.
|
|
*
|
|
* @param id the id
|
|
* @param label the label
|
|
*/
|
|
private ItemStatus(String id, String label) {
|
|
this.id = id;
|
|
this.label = label;
|
|
}
|
|
|
|
/**
|
|
* Gets the id.
|
|
*
|
|
* @return the id
|
|
*/
|
|
public String getId() {
|
|
return id;
|
|
}
|
|
|
|
/**
|
|
* Gets the label.
|
|
*
|
|
* @return the label
|
|
*/
|
|
public String getLabel() {
|
|
return label;
|
|
}
|
|
|
|
} |